From 4e7269063d2884374f95f1e83023006e42296533 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 1 Dec 2014 19:31:53 -0500 Subject: treewide: introduce UID_INVALID (and friends) as macro for (uid_t) -1 Signed-off-by: Anthony G. Basile --- src/shared/macro.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared/macro.h') 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" -- cgit v1.2.3-54-g00ecf