Lines Matching refs:msgrcv
7 * Basic test for msgrcv(2) using MSG_EXCEPT, MSG_NOERROR, MSG_COPY and
62 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, MSGTYPE2, MSG_EXCEPT));
64 tst_res(TFAIL | TTERRNO, "msgrcv(MSG_EXCEPT) failed");
68 tst_res(TPASS, "msgrcv(MSG_EXCEPT) succeeded");
89 TEST(msgrcv(queue_id, &rcv_buf, msg_len, MSGTYPE1, MSG_NOERROR));
91 tst_res(TFAIL | TTERRNO, "msgrcv(MSG_NOERROR) failed");
95 tst_res(TPASS, "msgrcv(MSG_NOERROR) succeeded");
122 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, 0, MSG_COPY | IPC_NOWAIT));
129 tst_res(TFAIL | TTERRNO, "msgrcv(0, MSG_COPY) failed");
134 tst_res(TPASS, "msgrcv(0, MSG_COPY) succeeded");
142 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, 1, MSG_COPY | IPC_NOWAIT));
144 tst_res(TFAIL | TTERRNO, "msgrcv(1, MSG_COPY) failed");
148 tst_res(TPASS, "msgrcv(1, MSG_COPY) succeeded");
172 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, 0, 0));
174 tst_res(TFAIL | TTERRNO, "msgrcv(zero_msgtyp) failed");
178 tst_res(TPASS, "msgrcv(zero_msgtyp) succeeded");
194 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, MSGTYPE2, 0));
196 tst_res(TFAIL | TTERRNO, "msgrcv(positive_msgtyp) failed");
200 tst_res(TPASS, "msgrcv(positive_msgtyp) succeeded");
219 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, -MSGTYPE2, 0));
221 tst_res(TFAIL | TTERRNO, "msgrcv(negative_msgtyp) failed");
225 tst_res(TPASS, "msgrcv(negative_msgtyp) succeeded");