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:
chao.an 2022-06-08 13:56:13 +08:00 committed by Petro Karashchenko
parent 0636c17a63
commit 795884dbf1
1 changed files with 4 additions and 4 deletions

View File

@ -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: */