From d8d3f27014da1ee1239b511950525d0a147cc9cb Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Mon, 4 Nov 2019 18:28:55 +0900 Subject: [PATCH] Add uid_t and gid_t types, and definitions for UID_ROOT and GID_ROOT --- include/corax/types.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 */ -- 2.47.3