mirror of
https://github.com/apache/nuttx.git
synced 2026-10-07 06:15:20 +00:00
sys/types: always use unsigned int for uid_t/gid_t
Move uid_t/gid_t out of the CONFIG_SMALL_MEMORY #ifdef so they are always defined as unsigned int regardless of SMALL_MEMORY. Update include/nuttx/fs/hostfs.h to match: drop the int16_t variants of nuttx_gid_t/nuttx_uid_t and keep a single unsigned int definition so the hostfs RPC ABI stays in sync with sys/types.h. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
c13914c7b2
commit
fa61c78c78
2 changed files with 8 additions and 13 deletions
|
|
@ -123,19 +123,14 @@ 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.
|
||||
*/
|
||||
|
|
@ -143,8 +138,6 @@ typedef _size_t rsize_t;
|
|||
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…
Add table
Add a link
Reference in a new issue