Lines Matching refs:msgflg
103 static int newque (key_t key, int msgflg);
117 static int newque (key_t key, int msgflg) in newque() argument
130 msq->q_perm.mode = (msgflg & S_IRWXUGO); in newque()
303 asmlinkage long sys_msgget (key_t key, int msgflg) in sys_msgget() argument
310 ret = newque(key, msgflg); in sys_msgget()
312 if (!(msgflg & IPC_CREAT)) in sys_msgget()
315 ret = newque(key, msgflg); in sys_msgget()
316 } else if (msgflg & IPC_CREAT && msgflg & IPC_EXCL) { in sys_msgget()
322 if (ipcperms(&msq->q_perm, msgflg)) in sys_msgget()
626 asmlinkage long sys_msgsnd (int msqid, struct msgbuf *msgp, size_t msgsz, int msgflg) in sys_msgsnd() argument
664 if(msgflg&IPC_NOWAIT) { in sys_msgsnd()
709 static int inline convert_mode(long* msgtyp, int msgflg) in convert_mode() argument
723 if(msgflg & MSG_EXCEPT) in convert_mode()
729 long msgtyp, int msgflg) in sys_msgrcv() argument
740 mode = convert_mode(&msgtyp,msgflg); in sys_msgrcv()
772 if ((msgsz < msg->m_ts) && !(msgflg & MSG_NOERROR)) { in sys_msgrcv()
799 if (msgflg & IPC_NOWAIT) { in sys_msgrcv()
807 if(msgflg & MSG_NOERROR) in sys_msgrcv()