/Zephyr-latest/tests/net/socket/socketpair/src/ |
D | closed_ends.c | 13 res = zsock_close(fixture->sv[i]); in ZTEST_USER_F() 15 fixture->sv[i] = -1; in ZTEST_USER_F() 17 res = zsock_send(fixture->sv[(!i) & 1], "x", 1, 0); in ZTEST_USER_F() 22 res = zsock_close(fixture->sv[(!i) & 1]); in ZTEST_USER_F() 24 fixture->sv[(!i) & 1] = -1; in ZTEST_USER_F() 26 res = zsock_socketpair(AF_UNIX, SOCK_STREAM, 0, fixture->sv); in ZTEST_USER_F() 42 res = zsock_send(fixture->sv[i], "xx", 2, 0); in ZTEST_USER_F() 46 res = zsock_close(fixture->sv[i]); in ZTEST_USER_F() 48 fixture->sv[i] = -1; in ZTEST_USER_F() 51 res = zsock_recv(fixture->sv[(!i) & 1], xx, sizeof(xx), 0); in ZTEST_USER_F() [all …]
|
D | expected_failures.c | 15 res = zsock_socketpair(AF_INET, SOCK_STREAM, 0, fixture->sv); in ZTEST_USER_F() 18 zassert_ok(zsock_close(fixture->sv[i])); in ZTEST_USER_F() 19 fixture->sv[i] = -1; in ZTEST_USER_F() 26 res = zsock_socketpair(AF_UNIX, 42, 0, fixture->sv); in ZTEST_USER_F() 29 zassert_ok(zsock_close(fixture->sv[i])); in ZTEST_USER_F() 30 fixture->sv[i] = -1; in ZTEST_USER_F() 38 res = zsock_socketpair(AF_UNIX, SOCK_STREAM, IPPROTO_TLS_1_0, fixture->sv); in ZTEST_USER_F() 41 zassert_ok(zsock_close(fixture->sv[i])); in ZTEST_USER_F() 42 fixture->sv[i] = -1; in ZTEST_USER_F() 54 zassert_ok(zsock_close(fixture->sv[i])); in ZTEST_USER_F() [all …]
|
D | poll.c | 30 fds[0].fd = fixture->sv[0]; in test_socketpair_poll_timeout_common() 36 res = zsock_send(fixture->sv[0], "x", 1, 0); in test_socketpair_poll_timeout_common() 41 fds[0].fd = fixture->sv[0]; in test_socketpair_poll_timeout_common() 57 res = zsock_fcntl(fixture->sv[0], F_GETFL, 0); in ZTEST_USER_F() 62 res = zsock_fcntl(fixture->sv[0], F_SETFL, O_NONBLOCK | flags); in ZTEST_USER_F() 65 res = zsock_fcntl(fixture->sv[1], F_SETFL, O_NONBLOCK | flags); in ZTEST_USER_F() 104 fds[0].fd = fixture->sv[0]; in ZTEST_F() 108 ctx.fd = &fixture->sv[1]; in ZTEST_F() 119 res = zsock_recv(fixture->sv[0], &c, 1, 0); in ZTEST_F() 133 res = zsock_socketpair(AF_UNIX, SOCK_STREAM, 0, fixture->sv); in ZTEST_F() [all …]
|
D | block.c | 65 LOG_DBG("data direction %d -> %d", fixture->sv[i], fixture->sv[(!i) & 1]); in ZTEST_F() 70 ctx.fd = fixture->sv[(!i) & 1]; in ZTEST_F() 80 res = zsock_send(fixture->sv[i], "x", 1, 0); in ZTEST_F() 90 LOG_DBG("writing to fd %d", fixture->sv[i]); in ZTEST_F() 91 res = zsock_send(fixture->sv[i], "x", 1, 0); in ZTEST_F() 106 LOG_DBG("data direction %d <- %d", fixture->sv[i], fixture->sv[(!i) & 1]); in ZTEST_F() 111 ctx.fd = fixture->sv[(!i) & 1]; in ZTEST_F() 118 LOG_DBG("reading from fd %d", fixture->sv[i]); in ZTEST_F() 120 res = zsock_recv(fixture->sv[i], &x, 1, 0); in ZTEST_F()
|
D | _main.c | 30 if (fixture->sv[i] >= 0) { in before() 31 fixture->sv[i] = -1; in before() 34 zassert_ok(zsock_socketpair(AF_UNIX, SOCK_STREAM, 0, fixture->sv)); in before() 42 if (fixture->sv[i] >= 0) { in after() 43 zassert_ok(zsock_close(fixture->sv[i])); in after() 44 fixture->sv[i] = -1; in after()
|
D | nonblock.c | 17 res = zsock_send(fixture->sv[i], "x", 1, 0); in ZTEST_USER_F() 22 res = zsock_fcntl(fixture->sv[i], F_GETFL, 0); in ZTEST_USER_F() 25 res = zsock_fcntl(fixture->sv[i], F_SETFL, res | O_NONBLOCK); in ZTEST_USER_F() 29 res = zsock_send(fixture->sv[i], "x", 1, 0); in ZTEST_USER_F() 43 res = zsock_fcntl(fixture->sv[i], F_GETFL, 0); in ZTEST_USER_F() 46 res = zsock_fcntl(fixture->sv[i], F_SETFL, res | O_NONBLOCK); in ZTEST_USER_F() 50 res = zsock_recv(fixture->sv[i], &c, 1, 0); in ZTEST_USER_F()
|
D | fionread.c | 23 zassert_ok(zsock_ioctl(fixture->sv[i], ZFD_IOCTL_FIONREAD, &avail)); in ZTEST_F() 31 zassert_equal(1, write(fixture->sv[i], "\x42", 1)); in ZTEST_F() 32 zassert_ok(zsock_ioctl(fixture->sv[j], ZFD_IOCTL_FIONREAD, &avail)); in ZTEST_F() 38 zassert_equal(1, read(fixture->sv[i], &byte, 1)); in ZTEST_F() 39 zassert_ok(zsock_ioctl(fixture->sv[i], ZFD_IOCTL_FIONREAD, &avail)); in ZTEST_F()
|
D | unsupported_calls.c | 19 res = zsock_bind(fixture->sv[i], (struct sockaddr *)&addr, len); in ZTEST_USER_F() 25 res = zsock_connect(fixture->sv[i], (struct sockaddr *)&addr, len); in ZTEST_USER_F() 31 res = zsock_listen(fixture->sv[i], 1); in ZTEST_USER_F() 37 res = zsock_accept(fixture->sv[i], (struct sockaddr *)&addr, &len); in ZTEST_USER_F()
|
D | fcntl.c | 14 res = zsock_fcntl(fixture->sv[0], F_GETFL, 0); in ZTEST_USER_F() 22 res = zsock_fcntl(fixture->sv[0], F_SETFL, flags | O_NONBLOCK); in ZTEST_USER_F() 27 res = zsock_fcntl(fixture->sv[0], F_GETFL, 0); in ZTEST_USER_F()
|
D | happy_path.c | 33 res = zsock_send(fixture->sv[i], expected_msg, expected_msg_len, 0); in happy_path() 42 res = zsock_recv(fixture->sv[(!i) & 1], actual_msg, sizeof(actual_msg), 0); in happy_path() 57 res = zsock_sendto(fixture->sv[i], expected_msg, expected_msg_len, 0, NULL, 0); in happy_path() 67 res = zsock_recvfrom(fixture->sv[(!i) & 1], actual_msg, sizeof(actual_msg), 0, in happy_path() 88 res = zsock_sendmsg(fixture->sv[i], &msghdr, 0); in happy_path() 95 res = zsock_recv(fixture->sv[(!i) & 1], actual_msg, sizeof(actual_msg), 0); in happy_path()
|
D | _main.h | 24 int sv[2]; member
|
/Zephyr-latest/tests/unit/cbprintf/ |
D | main.c | 537 int sv = 123; in ZTEST() local 542 sv, sv, sv, sv); in ZTEST() 547 sv, sv, sv, sv, sv, sv); in ZTEST() 552 TEST_PRF(&rc, "/%.6d/%6.4d/", sv, sv); in ZTEST() 556 sv = -sv; in ZTEST() 558 sv, sv, sv, sv); in ZTEST() 562 sv, sv, sv, sv, sv, sv); in ZTEST() 566 TEST_PRF(&rc, "/%.6d/%6.4d/", sv, sv); in ZTEST() 573 sv = 123; in ZTEST() 575 rc = rawprf("/%#d/% +d/%-04d/%06.4d/", sv, sv, sv, sv); in ZTEST() [all …]
|
/Zephyr-latest/modules/thrift/src/thrift/transport/ |
D | TSSLServerSocket.cpp | 68 THRIFT_SOCKET sv[2]; in listen() local 70 if (-1 == THRIFT_SOCKETPAIR(AF_LOCAL, SOCK_STREAM, 0, sv)) { in listen() 76 interruptSockWriter_ = sv[1]; in listen() 77 interruptSockReader_ = sv[0]; in listen() 81 if (-1 == THRIFT_SOCKETPAIR(AF_LOCAL, SOCK_STREAM, 0, sv)) { in listen() 87 childInterruptSockWriter_ = sv[1]; in listen() 89 new THRIFT_SOCKET(sv[0]), destroyer_of_fine_sockets); in listen()
|
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_engine/src/ |
D | stubs.c | 88 int z_impl_zsock_socketpair(int family, int type, int proto, int *sv) in z_impl_zsock_socketpair() argument 90 sv[0] = PAIR_IN; in z_impl_zsock_socketpair() 91 sv[1] = PAIR_OUT; in z_impl_zsock_socketpair()
|
/Zephyr-latest/drivers/interrupt_controller/ |
D | intc_esp32.c | 622 struct shared_vector_desc_t *sv = k_malloc(sizeof(struct shared_vector_desc_t)); in esp_intr_alloc_intrstatus() local 624 if (sv == NULL) { in esp_intr_alloc_intrstatus() 629 memset(sv, 0, sizeof(struct shared_vector_desc_t)); in esp_intr_alloc_intrstatus() 630 sv->statusreg = (uint32_t *)intrstatusreg; in esp_intr_alloc_intrstatus() 631 sv->statusmask = intrstatusmask; in esp_intr_alloc_intrstatus() 632 sv->isr = handler; in esp_intr_alloc_intrstatus() 633 sv->arg = arg; in esp_intr_alloc_intrstatus() 634 sv->next = vd->shared_vec_info; in esp_intr_alloc_intrstatus() 635 sv->source = source; in esp_intr_alloc_intrstatus() 636 sv->disabled = 0; in esp_intr_alloc_intrstatus() [all …]
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | socketpair.c | 280 int z_impl_zsock_socketpair(int family, int type, int proto, int *sv) in z_impl_zsock_socketpair() argument 286 SYS_PORT_TRACING_OBJ_FUNC_ENTER(socket, socketpair, family, type, proto, sv); in z_impl_zsock_socketpair() 306 if (sv == NULL) { in z_impl_zsock_socketpair() 325 sv[i] = obj[i]->remote; in z_impl_zsock_socketpair() 329 SYS_PORT_TRACING_OBJ_FUNC_EXIT(socket, socketpair, sv[0], sv[1], 0); in z_impl_zsock_socketpair() 345 int z_vrfy_zsock_socketpair(int family, int type, int proto, int *sv) in z_vrfy_zsock_socketpair() argument 350 if (!sv || K_SYSCALL_MEMORY_WRITE(sv, sizeof(tmp)) != 0) { in z_vrfy_zsock_socketpair() 359 K_OOPS(k_usermode_to_copy(sv, tmp, sizeof(tmp))); in z_vrfy_zsock_socketpair()
|
/Zephyr-latest/include/zephyr/posix/sys/ |
D | socket.h | 49 int socketpair(int family, int type, int proto, int sv[2]);
|
/Zephyr-latest/lib/posix/options/ |
D | net.c | 397 int socketpair(int family, int type, int proto, int sv[2]) in socketpair() 399 return zsock_socketpair(family, type, proto, sv); in socketpair()
|
/Zephyr-latest/include/zephyr/net/ |
D | socket.h | 358 __syscall int zsock_socketpair(int family, int type, int proto, int *sv);
|
/Zephyr-latest/subsys/tracing/ctf/ |
D | tracing_ctf.h | 518 #define sys_port_trace_socket_socketpair_enter(family, type, proto, sv) \ argument 519 sys_trace_socket_socketpair_enter(family, type, proto, sv) 573 void sys_trace_socket_socketpair_enter(int family, int type, int proto, int *sv);
|
D | ctf_top.c | 632 void sys_trace_socket_socketpair_enter(int family, int type, int proto, int *sv) in sys_trace_socket_socketpair_enter() argument 634 ctf_top_socket_socketpair_enter(family, type, proto, (uint32_t)(uintptr_t)sv); in sys_trace_socket_socketpair_enter()
|
D | ctf_top.h | 635 uint32_t proto, uint32_t sv) in ctf_top_socket_socketpair_enter() argument 638 proto, sv); in ctf_top_socket_socketpair_enter()
|
/Zephyr-latest/include/zephyr/tracing/ |
D | tracing.h | 2404 #define sys_port_trace_socket_socketpair_enter(family, type, proto, sv) argument
|
/Zephyr-latest/subsys/tracing/ctf/tsdl/ |
D | metadata | 697 uint32_t sv;
|
/Zephyr-latest/subsys/tracing/user/ |
D | tracing_user.h | 437 #define sys_port_trace_socket_socketpair_enter(family, type, proto, sv) argument
|