Skip to content

Commit

Permalink
sys/types: supporting 32-bit IDs for gid_t/uid_t
Browse files Browse the repository at this point in the history
Signed-off-by: chao an <[email protected]>
  • Loading branch information
anchao committed Oct 7, 2023
1 parent c775ee1 commit c922835
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions include/sys/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,27 @@ typedef uint16_t size_t;
typedef int16_t ssize_t;
typedef uint16_t rsize_t;

/* uid_t is used for user IDs
* gid_t is used for group IDs.
*/

typedef int16_t uid_t;
typedef int16_t gid_t;

#else /* CONFIG_SMALL_MEMORY */

typedef _size_t size_t;
typedef _ssize_t ssize_t;
typedef _size_t rsize_t;

#endif /* CONFIG_SMALL_MEMORY */

/* uid_t is used for user IDs
* gid_t is used for group IDs.
*/

typedef int16_t uid_t;
typedef int16_t gid_t;
typedef unsigned int uid_t;
typedef unsigned int gid_t;

#endif /* CONFIG_SMALL_MEMORY */

/* dev_t is used for device IDs */

Expand Down

0 comments on commit c922835

Please sign in to comment.