Home
last modified time | relevance | path

Searched refs:snd_buf (Results 1 – 17 of 17) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/ipc/msgsnd/
Dmsgsnd02.c40 } snd_buf[] = { variable
54 {&queue_id, &snd_buf[0], MSGSIZE, EACCES, 1},
56 {&bad_id, &snd_buf[0], MSGSIZE, EINVAL, 0},
57 {&queue_id, &snd_buf[1], MSGSIZE, EINVAL, 0},
58 {&queue_id, &snd_buf[2], MSGSIZE, EINVAL, 0},
59 {&queue_id, &snd_buf[0], -1, EINVAL, 0}
Dmsgsnd06.c27 } snd_buf = {1, "hello"}; variable
31 TST_EXP_FAIL(msgsnd(queue_id, &snd_buf, MSGSIZE, 0), EIDRM, in verify_msgsnd()
32 "msgsnd(%i, %p, %i, 0)", queue_id, &snd_buf, MSGSIZE); in verify_msgsnd()
41 while (msgsnd(queue_id, &snd_buf, MSGSIZE, IPC_NOWAIT) != -1) in do_test()
42 snd_buf.type += 1; in do_test()
Dmsgsnd05.c30 } snd_buf = {1, "hello"}; variable
44 TST_EXP_FAIL(msgsnd(queue_id, &snd_buf, MSGSIZE, tc->flag), tc->exp_err, in verify_msgsnd()
45 "msgsnd(%i, %p, %i, %i)", queue_id, &snd_buf, MSGSIZE, tc->flag); in verify_msgsnd()
84 while (msgsnd(queue_id, &snd_buf, MSGSIZE, IPC_NOWAIT) != -1) in setup()
85 snd_buf.type += 1; in setup()
Dmsgsnd01.c26 } rcv_buf, snd_buf = {MSGTYPE, "hello"}; variable
34 TEST(msgsnd(queue_id, &snd_buf, MSGSIZE, 0)); in verify_msgsnd()
/third_party/ltp/testcases/kernel/syscalls/ipc/msgrcv/
Dmsgrcv08.c38 } rcv_buf, snd_buf = {121, "hello"}; variable
43 SAFE_MSGSND(queue_id, &snd_buf, sizeof(snd_buf.mtext), IPC_NOWAIT); in verify_msgrcv()
55 if ((size_t)TST_RET != sizeof(snd_buf.mtext)) { in verify_msgrcv()
56 tst_res(TFAIL, "received %zi, expected %zu", (size_t)TST_RET, sizeof(snd_buf.mtext)); in verify_msgrcv()
Dmsgrcv01.c20 } rcv_buf, snd_buf = {MSGTYPE, "hello"}; variable
27 SAFE_MSGSND(queue_id, &snd_buf, MSGSIZE, 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()
Dmsgrcv07.c45 } rcv_buf, snd_buf[2] = { variable
53 SAFE_MSGSND(queue_id, &snd_buf[0], MSGSIZE, 0); in prepare_queue()
54 SAFE_MSGSND(queue_id, &snd_buf[1], MSGSIZE, 0); in prepare_queue()
85 SAFE_MSGSND(queue_id, &snd_buf[0], MSGSIZE, 0); in test_msg_noerror()
Dmsgrcv03.c38 } rcv_buf, snd_buf = {MSGTYPE, "hello"}; variable
70 SAFE_MSGSND(queue_id, &snd_buf, MSGSIZE, 0); in setup()
Dmsgrcv02.c43 } rcv_buf, snd_buf = {2, "hello"}; variable
77 SAFE_MSGSND(queue_id, &snd_buf, MSGSIZE, 0); in do_test()
/third_party/lwip/test/unit/api/
Dtest_sockets.c289 u8_t * snd_buf; in test_sockets_msgapi_tcp() local
345 snd_buf = (u8_t*)mem_malloc(BUF_SZ); in test_sockets_msgapi_tcp()
347 fail_unless(snd_buf != NULL); in test_sockets_msgapi_tcp()
349 snd_buf[i] = val; in test_sockets_msgapi_tcp()
354 siovs[i].iov_base = snd_buf; in test_sockets_msgapi_tcp()
418 fail_unless(!memcmp(snd_buf, rcv_buf, BUF_SZ)); in test_sockets_msgapi_tcp()
440 mem_free(snd_buf); in test_sockets_msgapi_tcp()
483 u8_t snd_buf[4] = {0xDE, 0xAD, 0xBE, 0xEF}; in test_sockets_msgapi_udp() local
487 siovs[i].iov_base = &snd_buf[i]; in test_sockets_msgapi_udp()
558 u8_t snd_buf[4] = {0xDE, 0xAD, 0xBE, 0xEF}; in test_sockets_msgapi_cmsg() local
[all …]
/third_party/ltp/testcases/kernel/syscalls/ipc/msgget/
Dmsgget01.c29 } rcv_buf, snd_buf = {MSGTYPE, "hello, world"}; variable
41 SAFE_MSGSND(queue_id, &snd_buf, MSGSIZE, 0); in verify_msgget()
45 if (strcmp(snd_buf.text, rcv_buf.text) == 0) in verify_msgget()
/third_party/lwip/src/include/lwip/
Dtcp.h326 tcpwnd_size_t snd_buf; /* Available buffer space for sending (in bytes). */ member
443 #define tcp_sndbuf(pcb) (TCPWND16((pcb)->snd_buf))
/third_party/lwip/src/apps/smtp/
Dsmtp.c1228 u16_t snd_buf = altcp_sndbuf(pcb); in smtp_send_body() local
1229 if (send_len > snd_buf) { in smtp_send_body()
1230 send_len = snd_buf; in smtp_send_body()
/third_party/lwip/src/core/
Dtcp_out.c333 if (len > pcb->snd_buf) { in tcp_write_checks()
335 len, pcb->snd_buf)); in tcp_write_checks()
792 pcb->snd_buf -= len; in tcp_write()
Dtcp_in.c1351 pcb->snd_buf = (tcpwnd_size_t)(pcb->snd_buf + recv_acked);
Dtcp.c2070 pcb->snd_buf = TCP_SND_BUF;
/third_party/lwip/
DCHANGELOG759 SYN/FIN in snd_buf counter
1430 * tcp_impl.h: fixed bug #34355: nagle does not take snd_buf/snd_queuelen into
4054 * tcp.c: Increment pcb->snd_buf when ACK is received in SYN_SENT state.