anchao commented on code in PR #10869:
URL: https://github.com/apache/nuttx/pull/10869#discussion_r1436072256


##########
include/sys/types.h:
##########
@@ -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;

Review Comment:
   emm... Actually, I have not found a suitable macro to distinguish whether 
the current device requires a small kernel configuration ( mostly configured to 
devices with small RAM)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to