Home
last modified time | relevance | path

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

/Zephyr-latest/tests/net/socket/socketpair/src/
Dfcntl.c14 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()
Dnonblock.c22 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()
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()
Dpoll.c57 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()
/Zephyr-latest/tests/net/socket/af_packet/src/
Dmain.c160 fl = zsock_fcntl(fd, F_GETFL, 0); in setblocking()
169 res = zsock_fcntl(fd, F_SETFL, fl); in setblocking()
/Zephyr-latest/include/zephyr/net/
Dsocket.h548 #define zsock_fcntl zsock_fcntl_wrapper macro
/Zephyr-latest/subsys/net/lib/coap/
Dcoap_server.c432 ret = zsock_fcntl(service->data->sock_fd, F_SETFL, O_NONBLOCK); in coap_service_start()
735 ret = zsock_fcntl(control_socks[i], F_SETFL, O_NONBLOCK); in coap_server_thread()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_engine.c1220 flags = zsock_fcntl(client_ctx->sock_fd, F_GETFL, 0); in lwm2m_socket_start()
1226 ret = zsock_fcntl(client_ctx->sock_fd, F_SETFL, flags | O_NONBLOCK); in lwm2m_socket_start()
/Zephyr-latest/tests/net/socket/tcp/src/
Dmain.c100 zassert_equal(zsock_fcntl(sock, cmd, val), 0, "fcntl failed"); in test_fcntl()
2218 flags = zsock_fcntl(fd, F_GETFL, 0); in ZTEST()
2219 zsock_fcntl(fd, F_SETFL, flags | O_NONBLOCK); in ZTEST()
2287 flags = zsock_fcntl(fd, F_GETFL, 0); in ZTEST()
2288 zsock_fcntl(fd, F_SETFL, flags | O_NONBLOCK); in ZTEST()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_tls.c796 int sock_flags = zsock_fcntl(sock, F_GETFL, 0); in is_blocking()
2146 sock_flags = zsock_fcntl(ctx->sock, F_GETFL, 0); in ztls_connect_ctx()
2153 (void)zsock_fcntl(ctx->sock, F_SETFL, in ztls_connect_ctx()
2163 (void)zsock_fcntl(ctx->sock, F_SETFL, sock_flags); in ztls_connect_ctx()
/Zephyr-latest/tests/net/socket/offload_dispatcher/src/
Dmain.c474 ret = zsock_fcntl(test_sock, F_SETFL, 0); in ZTEST()
/Zephyr-latest/tests/net/socket/tls/src/
Dmain.c90 zassert_equal(zsock_fcntl(sock, cmd, val), 0, "fcntl failed"); in test_fcntl()