/third_party/ltp/testcases/kernel/syscalls/ipc/msgsnd/ |
H A D | msgsnd06.c | 27 } 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() local 41 while (msgsnd(queue_id, &snd_buf, MSGSIZE, IPC_NOWAIT) != -1) in do_test() 42 snd_buf.type += 1; in do_test()
|
H A D | msgsnd02.c | 40 } 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}
|
H A D | msgsnd05.c | 30 } 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() local 84 while (msgsnd(queue_id, &snd_buf, MSGSIZE, IPC_NOWAIT) != -1) in setup() 85 snd_buf.type += 1; in setup()
|
H A D | msgsnd01.c | 26 } 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/ |
H A D | msgrcv08.c | 38 } 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()
|
H A D | msgrcv01.c | 20 } 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()
|
H A D | msgrcv07.c | 45 } 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()
|
H A D | msgrcv03.c | 38 } rcv_buf, snd_buf = {MSGTYPE, "hello"}; variable 70 SAFE_MSGSND(queue_id, &snd_buf, MSGSIZE, 0); in setup()
|
H A D | msgrcv02.c | 43 } 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/ |
H A D | test_sockets.c | 289 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() 358 /* allocate a receive buffer, same size as snd_buf for easy verification */ 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[ in test_sockets_msgapi_udp() 558 u8_t snd_buf[4] = {0xDE, 0xAD, 0xBE, 0xEF}; test_sockets_msgapi_cmsg() local [all...] |
/third_party/ltp/testcases/kernel/syscalls/ipc/msgget/ |
H A D | msgget01.c | 29 } 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/ |
H A D | tcp.h | 326 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/ |
H A D | smtp.c | 1228 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/ |
H A D | tcp_out.c | 310 /** Checks if tcp_write is allowed or not (checks state, snd_buf and snd_queuelen). 313 * @param len length of data to send (checked agains snd_buf) 333 if (len > pcb->snd_buf) { in tcp_write_checks() 334 LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("tcp_write: too much data (len=%"U16_F" > snd_buf=%"TCPWNDSIZE_F")\n", in tcp_write_checks() 335 len, pcb->snd_buf)); in tcp_write_checks() 792 pcb->snd_buf -= len; in tcp_write() 977 * exceed TCP_SND_QUEUELEN! We don't have to touch pcb->snd_buf in tcp_split_unsent_seg() 1128 /* optlen does not influence snd_buf */ in tcp_enqueue_flags()
|
H A D | tcp_in.c | 1351 pcb->snd_buf = (tcpwnd_size_t)(pcb->snd_buf + recv_acked);
|
H A D | tcp.c | 2070 pcb->snd_buf = TCP_SND_BUF;
|