sys/types: supporting 32-bit IDs for gid_t/uid_t
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
c775ee1002
commit
a3d7abb1ae
@ -121,14 +121,6 @@ typedef uint16_t size_t;
|
||||
typedef int16_t ssize_t;
|
||||
typedef uint16_t rsize_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.
|
||||
*/
|
||||
@ -136,6 +128,21 @@ typedef _size_t rsize_t;
|
||||
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;
|
||||
|
||||
/* uid_t is used for user IDs
|
||||
* gid_t is used for group IDs.
|
||||
*/
|
||||
|
||||
typedef unsigned int uid_t;
|
||||
typedef unsigned int gid_t;
|
||||
|
||||
#endif /* CONFIG_SMALL_MEMORY */
|
||||
|
||||
/* dev_t is used for device IDs */
|
||||
|
||||
typedef uint32_t dev_t;
|
||||
|
Loading…
Reference in New Issue
Block a user