diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-23 10:42:18 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-23 10:42:18 -0600 |
commit | c163691f9446061dbab259c62fb86b8c0ced0cff (patch) | |
tree | fa82e0b4658c11c50df504dfd5925a48caf7ba17 /nuttx/include/sys | |
parent | bf403f3bdf808c5dc5164a56a84074051b531ad8 (diff) | |
download | px4-nuttx-c163691f9446061dbab259c62fb86b8c0ced0cff.tar.gz px4-nuttx-c163691f9446061dbab259c62fb86b8c0ced0cff.tar.bz2 px4-nuttx-c163691f9446061dbab259c62fb86b8c0ced0cff.zip |
Flesh out basic logic for shmget()
Diffstat (limited to 'nuttx/include/sys')
-rw-r--r-- | nuttx/include/sys/ipc.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nuttx/include/sys/ipc.h b/nuttx/include/sys/ipc.h index 42cf5b1ef..c2e039cc7 100644 --- a/nuttx/include/sys/ipc.h +++ b/nuttx/include/sys/ipc.h @@ -48,11 +48,12 @@ * Pre-Processor Definitions ****************************************************************************/ -/* Mode bits: */ +/* Mode bits: The lower order 9-bit bits are the standard mode bits */ -#define IPC_CREAT 0x01 /* Create entry if key does not exist */ -#define IPC_EXCL 0x02 /* Fail if key exists */ -#define IPC_NOWAIT 0x04 /* Error if request must wait */ +#define IPC_MODE 0x01ff /* Mode bit mask */ +#define IPC_CREAT (1 << 10) /* Create entry if key does not exist */ +#define IPC_EXCL (1 << 11) /* Fail if key exists */ +#define IPC_NOWAIT (1 << 12) /* Error if request must wait */ /* Keys: */ |