diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-28 20:51:01 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-11-28 20:55:04 +0100 |
commit | fed1e721fd0c81e60c77120539f34e16c2585634 (patch) | |
tree | a0bb21b49530bc896dcd2c540a582e324c6d7785 /src/shared/macro.h | |
parent | 36afca67b67984520c5c9a6ce14af51a68c7c8cf (diff) |
treewide: introduce UID_INVALID (and friends) as macro for (uid_t) -1
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 6d4712c30d..9f5e4552b4 100644 --- a/src/shared/macro.h +++ b/src/shared/macro.h @@ -423,4 +423,8 @@ do { \ #endif #endif +#define UID_INVALID ((uid_t) -1) +#define GID_INVALID ((gid_t) -1) +#define MODE_INVALID ((mode_t) -1) + #include "log.h" |