]> git.corax.cc Git - corax/commitdiff
Add uid_t and gid_t types, and definitions for UID_ROOT and GID_ROOT
authorMatthias Kruk <m@m10k.eu>
Mon, 4 Nov 2019 09:28:55 +0000 (18:28 +0900)
committerMatthias Kruk <m@m10k.eu>
Mon, 4 Nov 2019 09:28:55 +0000 (18:28 +0900)
include/corax/types.h

index 68222646efd40111514a371910bdec730211f3f1..a44015fc04955a4cecfa8dc045dc137e4cc862a0 100644 (file)
@@ -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 */