diff --git a/include/sys/types.h b/include/sys/types.h index 890c6d51a1..e2b0745ce6 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -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;