Lines Matching refs:qid
31 int qid; in snd() local
42 T(qid = msgget(k, IPC_CREAT|0666)); in snd()
43 T(msgctl(qid, IPC_RMID, 0)); in snd()
44 T(qid = msgget(k, IPC_CREAT|IPC_EXCL|0666)); in snd()
55 T(msgctl(qid, IPC_STAT, &qid_ds)); in snd()
74 T(msgsnd(qid, &msg, sizeof msg.data, IPC_NOWAIT)); in snd()
75 T(msgctl(qid, IPC_STAT, &qid_ds)); in snd()
87 int qid; in rcv() local
95 T(qid = msgget(k, 0)); in rcv()
98 if (msgrcv(qid, &msg, 0, msgtyp, 0) != -1 || errno != E2BIG) in rcv()
102 T(msgrcv(qid, &msg, sizeof msg.data, msgtyp, IPC_NOWAIT)); in rcv()
107 if (msgrcv(qid, &msg, sizeof msg.data, msgtyp, MSG_NOERROR|IPC_NOWAIT) != -1 || errno != ENOMSG) in rcv()
111 T(msgctl(qid, IPC_RMID, 0)); in rcv()