From: Matthias Kruk Date: Mon, 4 Nov 2019 09:28:55 +0000 (+0900) Subject: Add uid_t and gid_t types, and definitions for UID_ROOT and GID_ROOT X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=d8d3f27014da1ee1239b511950525d0a147cc9cb;p=corax Add uid_t and gid_t types, and definitions for UID_ROOT and GID_ROOT --- diff --git a/include/corax/types.h b/include/corax/types.h index 6822264..a44015f 100644 --- a/include/corax/types.h +++ b/include/corax/types.h @@ -34,7 +34,11 @@ typedef signed long long int i64_t; #define TRUE (!FALSE) typedef u32_t pid_t; +typedef u32_t uid_t; +typedef u32_t gid_t; -#define PID_ANY ((pid_t)-1) +#define PID_ANY ((pid_t)-1) +#define UID_ROOT ((uid_t)0) +#define GID_ROOT ((gid_t)0) #endif /* __TYPES_H */