X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Futil.h;fp=src%2Fshared%2Futil.h;h=abb36dfef5e9dce159c2f271812167f4a9903e44;hp=014e61c2e6f5807cb783a565b63a0a8f66edd056;hb=ad0a762293c307fa9a4bb71afe63168496a4dbb8;hpb=dbf4628bfa9e71926abc3d8805f3015b4072d6ad diff --git a/src/shared/util.h b/src/shared/util.h index 014e61c2e..abb36dfef 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -816,6 +816,13 @@ int open_tmpfile(const char *path, int flags); int fd_warn_permissions(const char *path, int fd); +#ifndef PERSONALITY_INVALID +/* personality(7) documents that 0xffffffffUL is used for querying the + * current personality, hence let's use that here as error + * indicator. */ +#define PERSONALITY_INVALID 0xffffffffLU +#endif + unsigned long personality_from_string(const char *p); const char *personality_to_string(unsigned long);