Home
last modified time | relevance | path

Searched refs:rcv_buf (Results 1 – 11 of 11) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/ipc/msgrcv/
Dmsgrcv07.c45 } rcv_buf, snd_buf[2] = { variable
55 memset(&rcv_buf, 0, sizeof(rcv_buf)); in prepare_queue()
62 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, MSGTYPE2, MSG_EXCEPT)); in test_msg_except()
70 if (strcmp(rcv_buf.mtext, MSG1) == 0 && rcv_buf.type == MSGTYPE1) in test_msg_except()
87 memset(&rcv_buf, 0, sizeof(rcv_buf)); in test_msg_noerror()
89 TEST(msgrcv(queue_id, &rcv_buf, msg_len, MSGTYPE1, MSG_NOERROR)); in test_msg_noerror()
97 if (strncmp(rcv_buf.mtext, MSG1, msg_len) == 0 && rcv_buf.type == MSGTYPE1) in test_msg_noerror()
122 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, 0, MSG_COPY | IPC_NOWAIT)); in test_msg_copy()
136 if (strcmp(rcv_buf.mtext, MSG1) == 0 && rcv_buf.type == MSGTYPE1) in test_msg_copy()
141 memset(&rcv_buf, 0, sizeof(rcv_buf)); in test_msg_copy()
[all …]
Dmsgrcv08.c38 } rcv_buf, snd_buf = {121, "hello"}; variable
42 memset(&rcv_buf, 0, sizeof(rcv_buf)); in verify_msgrcv()
45 TEST(msgrcv(queue_id, &rcv_buf, sizeof(rcv_buf.mtext), -mtype, IPC_NOWAIT | MSG_NOERROR)); in verify_msgrcv()
51 if (rcv_buf.mtype != mtype) { in verify_msgrcv()
52 tst_res(TFAIL, "found mtype %ld, expected %ld", rcv_buf.mtype, mtype); in verify_msgrcv()
Dmsgrcv02.c43 } rcv_buf, snd_buf = {2, "hello"}; variable
54 {&queue_id, &rcv_buf, MSGSIZE - 1, 2, 0, 0, E2BIG},
55 {&queue_id, &rcv_buf, MSGSIZE, 2, 0, 1, EACCES},
57 {&bad_id, &rcv_buf, MSGSIZE, 2, 0, 0, EINVAL},
58 {&queue_id, &rcv_buf, -1, 2, 0, 0, EINVAL},
59 {&queue_id, &rcv_buf, MSGSIZE, 3, IPC_NOWAIT, 0, ENOMSG},
60 {&queue_id, &rcv_buf, MSGSIZE, -1, IPC_NOWAIT, 0, ENOMSG},
61 {&queue_id, &rcv_buf, MSGSIZE, -1, IPC_NOWAIT | MSG_EXCEPT, 0, ENOMSG},
Dmsgrcv01.c20 } rcv_buf, snd_buf = {MSGTYPE, "hello"}; variable
30 TEST(msgrcv(queue_id, &rcv_buf, MSGSIZE, 1, 0)); in verify_msgrcv()
37 if (strcmp(rcv_buf.mtext, snd_buf.mtext) == 0) in verify_msgrcv()
39 rcv_buf.mtext, snd_buf.mtext); in verify_msgrcv()
42 rcv_buf.mtext, snd_buf.mtext); in verify_msgrcv()
Dmsgrcv06.c23 } rcv_buf = {1, "hello"}; variable
27 TST_EXP_FAIL2(msgrcv(queue_id, &rcv_buf, MSGSIZE, 1, 0), EIDRM, in verify_msgrcv()
28 "msgrcv(%i, %p, %d, 1, 0)", queue_id, &rcv_buf, MSGSIZE); in verify_msgrcv()
Dmsgrcv05.c21 } rcv_buf; variable
33 TST_EXP_FAIL2(msgrcv(queue_id, &rcv_buf, MSGSIZE, 1, 0), EINTR, in verify_msgrcv()
34 "msgrcv(%i, %p, %d, 1, 0)", queue_id, &rcv_buf, MSGSIZE); in verify_msgrcv()
Dmsgrcv03.c38 } rcv_buf, snd_buf = {MSGTYPE, "hello"}; variable
62 …TST_EXP_FAIL2(msgrcv(queue_id, &rcv_buf, MSGSIZE, tc->msg_type, MSG_COPY | tc->msg_flag), tc->exp_… in verify_msgrcv()
63 "msgrcv(%i, %p, %i, %i, %i)", queue_id, &rcv_buf, MSGSIZE, tc->msg_type, MSG_COPY | tc->msg_flag); in verify_msgrcv()
/third_party/lwip/test/unit/api/
Dtest_sockets.c293 u8_t * rcv_buf; in test_sockets_msgapi_tcp() local
359 rcv_buf = (u8_t*)mem_calloc(1, BUF_SZ); in test_sockets_msgapi_tcp()
360 fail_unless(rcv_buf != NULL); in test_sockets_msgapi_tcp()
363 riovs[i].iov_base = &rcv_buf[i*(BUF_SZ/4)]; in test_sockets_msgapi_tcp()
369 riovs[5].iov_base = &rcv_buf[4*(BUF_SZ/4)]; in test_sockets_msgapi_tcp()
418 fail_unless(!memcmp(snd_buf, rcv_buf, BUF_SZ)); in test_sockets_msgapi_tcp()
422 memset(rcv_buf, 0, BUF_SZ); in test_sockets_msgapi_tcp()
441 mem_free(rcv_buf); in test_sockets_msgapi_tcp()
480 u8_t rcv_buf[4]; in test_sockets_msgapi_udp() local
489 riovs[i].iov_base = &rcv_buf[i]; in test_sockets_msgapi_udp()
[all …]
/third_party/ltp/testcases/kernel/syscalls/ipc/msgget/
Dmsgget01.c29 } rcv_buf, snd_buf = {MSGTYPE, "hello, world"}; variable
43 SAFE_MSGRCV(queue_id, &rcv_buf, MSGSIZE, MSGTYPE, IPC_NOWAIT); in verify_msgget()
45 if (strcmp(snd_buf.text, rcv_buf.text) == 0) in verify_msgget()
/third_party/ltp/testcases/kernel/syscalls/ipc/msgsnd/
Dmsgsnd01.c26 } rcv_buf, snd_buf = {MSGTYPE, "hello"}; variable
63 SAFE_MSGRCV(queue_id, &rcv_buf, MSGSIZE, 1, 0); in verify_msgsnd()
/third_party/iptables/iptables/
Dnft.c214 char rcv_buf[MNL_SOCKET_BUFFER_SIZE]; in mnl_batch_talk() local
235 struct nlmsghdr *nlh = (struct nlmsghdr *)rcv_buf; in mnl_batch_talk()
237 ret = mnl_socket_recvfrom(nl, rcv_buf, sizeof(rcv_buf)); in mnl_batch_talk()
241 ret = mnl_cb_run(rcv_buf, ret, 0, portid, NULL, NULL); in mnl_batch_talk()