mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
sys/ipc: correct definition value of IPC_*
the definition of MSG_NOERROR and IPC_NOWAIT should not be aligned
------------------------------------------------------------------
MSGOP(2)
NAME
msgrcv, msgsnd - System V message queue operations
...
EXAMPLE
The program below demonstrates the use of msgsnd() and msgrcv().
...
if (msgrcv(qid, (void *) &msg, sizeof(msg.mtext), msgtype,
MSG_NOERROR | IPC_NOWAIT) == -1) {
...
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
0636c17a63
commit
795884dbf1
+4
-4
@@ -35,10 +35,10 @@
|
||||
|
||||
/* Mode bits: The lower order 9-bit bits are the standard mode bits */
|
||||
|
||||
#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 */
|
||||
#define IPC_MODE 0x01ff /* Mode bit mask */
|
||||
#define IPC_CREAT 0x0200 /* Create key if key does not exist. */
|
||||
#define IPC_EXCL 0x0400 /* Fail if key exists. */
|
||||
#define IPC_NOWAIT 0x0800 /* Return error on wait. */
|
||||
|
||||
/* Keys: */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user