diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-22 15:24:09 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-22 15:24:09 -0600 |
commit | bdef2ed703b7e676bd303aa2065d2567c8745b15 (patch) | |
tree | ad51774ae37ea0586a759936802d556d51977038 /nuttx/include/sys | |
parent | a2008ab3ef83f02cc172ac9d565b375ec7200f02 (diff) | |
download | px4-nuttx-bdef2ed703b7e676bd303aa2065d2567c8745b15.tar.gz px4-nuttx-bdef2ed703b7e676bd303aa2065d2567c8745b15.tar.bz2 px4-nuttx-bdef2ed703b7e676bd303aa2065d2567c8745b15.zip |
Add system calls for shared memory interfaces
Diffstat (limited to 'nuttx/include/sys')
-rw-r--r-- | nuttx/include/sys/syscall.h | 18 |
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 */ |