summaryrefslogtreecommitdiff
path: root/nuttx/include/sys
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-28 17:30:42 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-28 17:30:42 -0600
commit3f797bde9431ff7c398fe119a19a0b027d6f5d4a (patch)
tree6314e79f5e513e2f56c153e608c61af65362dbc2 /nuttx/include/sys
parenta17a384907bf0526acc7573bb609c97dfb47f143 (diff)
downloadpx4-nuttx-3f797bde9431ff7c398fe119a19a0b027d6f5d4a.tar.gz
px4-nuttx-3f797bde9431ff7c398fe119a19a0b027d6f5d4a.tar.bz2
px4-nuttx-3f797bde9431ff7c398fe119a19a0b027d6f5d4a.zip
More testing, bugfixes and integration of VFS-based named semaphores
Diffstat (limited to 'nuttx/include/sys')
-rw-r--r--nuttx/include/sys/stat.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/include/sys/stat.h b/nuttx/include/sys/stat.h
index f465ac441..4fe9f5c0b 100644
--- a/nuttx/include/sys/stat.h
+++ b/nuttx/include/sys/stat.h
@@ -71,13 +71,16 @@
#define S_ISGID 0002000 /* Set group ID bit */
#define S_ISUID 0004000 /* Set UID bit */
-#define S_IFIFO 0010000 /* File type bites */
+#define S_IFIFO 0010000 /* File type bytes */
#define S_IFCHR 0020000
#define S_IFDIR 0040000
#define S_IFBLK 0060000
#define S_IFREG 0100000
#define S_IFLNK 0120000
#define S_IFSOCK 0140000
+#define S_IFMQ 0150000
+#define S_IFSEM 0160000
+#define S_IFSHM 0170000
#define S_IFMT 0170000
/* File type macros that operate on an instance of mode_t */
@@ -89,6 +92,9 @@
#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
+#define S_ISMQ(m) (((m) & S_IFMT) == S_IFMQ)
+#define S_ISSSEM(m) (((m) & S_IFMT) == S_IFSEM)
+#define S_ISSHM(m) (((m) & S_IFMT) == S_IFSHM)
/****************************************************************************
* Type Definitions