diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-27 18:08:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-27 18:08:18 +0000 |
commit | 9f53bc85a64da31a21ede71a112f2f6c0486417b (patch) | |
tree | 5a9efc0762dca5d39b1f748bb516e19d38fb178a /nuttx/include/sys/types.h | |
parent | 9f5af96aa10a6bca769370503e19b4651b81c0a9 (diff) | |
download | px4-nuttx-9f53bc85a64da31a21ede71a112f2f6c0486417b.tar.gz px4-nuttx-9f53bc85a64da31a21ede71a112f2f6c0486417b.tar.bz2 px4-nuttx-9f53bc85a64da31a21ede71a112f2f6c0486417b.zip |
Add stat()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@257 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/sys/types.h')
-rw-r--r-- | nuttx/include/sys/types.h | 35 |
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 */ |