summaryrefslogtreecommitdiff
path: root/nuttx/include/sys/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/include/sys/types.h')
-rw-r--r--nuttx/include/sys/types.h35
1 files changed, 20 insertions, 15 deletions
diff --git a/nuttx/include/sys/types.h b/nuttx/include/sys/types.h
index 916681c39..97b2d7eed 100644
--- a/nuttx/include/sys/types.h
+++ b/nuttx/include/sys/types.h
@@ -99,24 +99,29 @@ typedef double double_t;
/* Misc. scalar types */
-typedef unsigned int mode_t;
+typedef unsigned int mode_t; /* Needs at least 16-bits but must be */
+ /* sizeof(int) because it is passed */
+ /* via varargs. */
#ifdef CONFIG_SMALL_MEMORY
-typedef uint16 size_t;
-typedef sint16 ssize_t;
-typedef sint16 off_t;
+typedef uint16 size_t;
+typedef sint16 ssize_t;
+typedef sint16 off_t;
+typedef uint16 blksize_t;
+typedef uint16 blkcnt_t;
#else
-typedef uint32 size_t;
-typedef sint32 ssize_t;
-typedef sint32 off_t;
+typedef uint32 size_t;
+typedef sint32 ssize_t;
+typedef sint32 off_t;
+typedef uint16 blksize_t;
+typedef uint32 blkcnt_t;
#endif
-//typedef sint32 time_t;
-typedef sint16 uid_t;
-typedef sint16 gid_t;
-typedef uint16 dev_t;
-typedef uint16 ino_t;
-typedef unsigned int sig_atomic_t;
-typedef int pid_t;
-typedef int STATUS;
+typedef sint16 uid_t;
+typedef sint16 gid_t;
+typedef uint16 dev_t;
+typedef uint16 ino_t;
+typedef unsigned int sig_atomic_t;
+typedef int pid_t;
+typedef int STATUS;
/* Process entry point */