stddef: make uid_t and gid_t signed

POSIX describes uid_t and gid_t as SIGNED integer types.
They need to be able to store -1 for various syscalls.
This commit is contained in:
Florian Fischer
2024-01-19 15:21:55 +01:00
parent 58ceead501
commit 9de28df51a
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -37,10 +37,10 @@ typedef unsigned int ino_t;
typedef unsigned int dev_t;
/// The type of user-id.
typedef unsigned int uid_t;
typedef int uid_t;
/// The type of group-id.
typedef unsigned int gid_t;
typedef int gid_t;
/// The type of offset.
typedef long int off_t;