summaryrefslogtreecommitdiff
path: root/nuttx/include/sys
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-22 15:24:09 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-22 15:24:09 -0600
commitbdef2ed703b7e676bd303aa2065d2567c8745b15 (patch)
treead51774ae37ea0586a759936802d556d51977038 /nuttx/include/sys
parenta2008ab3ef83f02cc172ac9d565b375ec7200f02 (diff)
downloadnuttx-bdef2ed703b7e676bd303aa2065d2567c8745b15.tar.gz
nuttx-bdef2ed703b7e676bd303aa2065d2567c8745b15.tar.bz2
nuttx-bdef2ed703b7e676bd303aa2065d2567c8745b15.zip
Add system calls for shared memory interfaces
Diffstat (limited to 'nuttx/include/sys')
-rw-r--r--nuttx/include/sys/syscall.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/nuttx/include/sys/syscall.h b/nuttx/include/sys/syscall.h
index 10e6fb2c8..6a350eb0a 100644
--- a/nuttx/include/sys/syscall.h
+++ b/nuttx/include/sys/syscall.h
@@ -275,13 +275,25 @@
# define SYS_rmdir (__SYS_mountpoint+4)
# define SYS_umount (__SYS_mountpoint+5)
# define SYS_unlink (__SYS_mountpoint+6)
-# define __SYS_pthread (__SYS_mountpoint+7)
+# define __SYS_shm (__SYS_mountpoint+7)
# else
-# define __SYS_pthread __SYS_mountpoint
+# define __SYS_shm __SYS_mountpoint
# endif
#else
-# define __SYS_pthread __SYS_filedesc
+# define __SYS_shm __SYS_filedesc
+#endif
+
+/* Shared memory interfaces */
+
+#ifdef CONFIG_MM_SHM
+# define SYS_shmget (__SYS_shm+0)
+# define SYS_shmat (__SYS_shm+1)
+# define SYS_shmctl (__SYS_shm+2)
+# define SYS_shmdt (__SYS_shm+3)
+# define __SYS_pthread (__SYS_shm+4)
+#else
+# define __SYS_pthread __SYS_shm
#endif
/* The following are defined if pthreads are enabled */