msgrcv
PROTO_CANCEL(msgrcv);
ret = HIDDEN(msgrcv)(msqid, msgp, msgsz, msgtyp, msgflg);
DEF_CANCEL(msgrcv);
(void)msgrcv(id, &msg,
(void)msgrcv(id, &msg, sizeof(struct msg), MSG_MTYPE_1, IPC_NOWAIT);
if (msgrcv(id, &msg, MSG_LEN, MSG_MTYPE_1, 0) < 0)
ATF_REQUIRE_ERRNO(ENOMSG, msgrcv(id, &msg,
ATF_REQUIRE_ERRNO(EFAULT, msgrcv(id, (void *)-1,
ATF_REQUIRE_ERRNO(EINVAL, msgrcv(-1, &msg,
ATF_REQUIRE_ERRNO(EINVAL, msgrcv(-1, &msg,
ATF_REQUIRE_ERRNO(E2BIG, msgrcv(id, &r,
(void)msgrcv(id, &msg2, MSG_LEN, MSG_MTYPE_2, IPC_NOWAIT);
(void)msgrcv(id, &msg2, MSG_LEN, MSG_MTYPE_1, IPC_NOWAIT);
if (msgrcv(id, &msg, MSG_LEN, MSG_MTYPE_1,
(void)msgrcv(id, &msg2, MSG_SMALLLEN,
(void)msgrcv(id, &msg2, MSG_LEN, MSG_MTYPE_1, IPC_NOWAIT);
if (msgrcv(sender_msqid, &m, sizeof(m), MTYPE_1_ACK, 0) != sizeof(m))
if (msgrcv(sender_msqid, &m, sizeof(m), MTYPE_2_ACK, 0) != sizeof(m))
if (msgrcv(msqid, &m, sizeof(m), MTYPE_1, 0) != sizeof(m))
if (msgrcv(msqid, &m, sizeof(m), MTYPE_2, 0) != sizeof(m))
int msgrcv(int, void *, size_t, long, int);