diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-01 19:31:53 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-12-01 19:31:53 -0500 |
commit | 4e7269063d2884374f95f1e83023006e42296533 (patch) | |
tree | b12957ed11dae36121b7569b19340374a649dd1a /src/shared/macro.h | |
parent | f460aa149c21c920e1a3090a16877937c49b4813 (diff) |
treewide: introduce UID_INVALID (and friends) as macro for (uid_t) -1
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/macro.h')
-rw-r--r-- | src/shared/macro.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/macro.h b/src/shared/macro.h index cea13182ec..e2c519cf89 100644 --- a/src/shared/macro.h +++ b/src/shared/macro.h @@ -236,4 +236,8 @@ static inline size_t IOVEC_INCREMENT(struct iovec *i, unsigned n, size_t k) { #endif #endif +#define UID_INVALID ((uid_t) -1) +#define GID_INVALID ((gid_t) -1) +#define MODE_INVALID ((mode_t) -1) + #include "log.h" |