Lines Matching defs:msgflg
85 static int newque (struct ipc_namespace *ns, key_t key, int msgflg);
141 static int newque (struct ipc_namespace *ns, key_t key, int msgflg)
150 msq->q_perm.mode = msgflg & S_IRWXUGO;
257 asmlinkage long sys_msgget(key_t key, int msgflg)
267 ret = newque(ns, key, msgflg);
269 if (!(msgflg & IPC_CREAT))
272 ret = newque(ns, key, msgflg);
273 } else if (msgflg & IPC_CREAT && msgflg & IPC_EXCL) {
278 if (ipcperms(&msq->q_perm, msgflg))
283 ret = security_msg_queue_associate(msq, msgflg);
630 size_t msgsz, int msgflg)
667 err = security_msg_queue_msgsnd(msq, msg, msgflg);
677 if (msgflg & IPC_NOWAIT) {
724 sys_msgsnd(int msqid, struct msgbuf __user *msgp, size_t msgsz, int msgflg)
730 return do_msgsnd(msqid, mtype, msgp->mtext, msgsz, msgflg);
733 static inline int convert_mode(long *msgtyp, int msgflg)
747 if (msgflg & MSG_EXCEPT)
753 size_t msgsz, long msgtyp, int msgflg)
762 mode = convert_mode(&msgtyp, msgflg);
808 if ((msgsz < msg->m_ts) && !(msgflg & MSG_NOERROR)) {
824 if (msgflg & IPC_NOWAIT) {
832 if (msgflg & MSG_NOERROR)
909 long msgtyp, int msgflg)
913 err = do_msgrcv(msqid, &mtype, msgp->mtext, msgsz, msgtyp, msgflg);