Home
last modified time | relevance | path

Searched refs:SOCK_NONBLOCK (Results 1 – 25 of 52) sorted by relevance

123

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dandroid-cloexec-accept4.cpp6 #define SOCK_NONBLOCK 1 macro
21 accept4(0, NULL, NULL, SOCK_NONBLOCK); in a()
24 TEMP_FAILURE_RETRY(accept4(0, NULL, NULL, SOCK_NONBLOCK)); in a()
37 int flag = SOCK_NONBLOCK; in f()
46 accept4(0, NULL, NULL, SOCK_NONBLOCK); in d()
47 TEMP_FAILURE_RETRY(accept4(0, NULL, NULL, SOCK_NONBLOCK)); in d()
55 accept4(0, NULL, NULL, SOCK_NONBLOCK | SOCK_CLOEXEC); in e()
56 TEMP_FAILURE_RETRY(accept4(0, NULL, NULL, SOCK_NONBLOCK | SOCK_CLOEXEC)); in e()
63 accept4(0, NULL, NULL, SOCK_NONBLOCK); in d()
64 TEMP_FAILURE_RETRY(accept4(0, NULL, NULL, SOCK_NONBLOCK)); in d()
/external/ltp/testcases/kernel/syscalls/accept4/
Daccept4_01.c30 #ifndef SOCK_NONBLOCK
31 # define SOCK_NONBLOCK O_NONBLOCK macro
102 { 0, SOCK_NONBLOCK },
103 { SOCK_CLOEXEC, SOCK_NONBLOCK },
/external/strace/xlat/
Dsock_type_flags.h20 #if defined(SOCK_NONBLOCK) || (defined(HAVE_DECL_SOCK_NONBLOCK) && HAVE_DECL_SOCK_NONBLOCK)
21 XLAT(SOCK_NONBLOCK),
Dsock_type_flags.in2 SOCK_NONBLOCK
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dandroid-cloexec-accept4.rst14 accept4(sockfd, addr, addrlen, SOCK_NONBLOCK);
18 accept4(sockfd, addr, addrlen, SOCK_NONBLOCK | SOCK_CLOEXEC);
/external/ltp/include/lapi/
Dfcntl.h33 #ifndef SOCK_NONBLOCK
34 # define SOCK_NONBLOCK O_NONBLOCK macro
/external/libusb/libusb/os/
Dlinux_netlink.c46 #ifndef SOCK_NONBLOCK
47 #define SOCK_NONBLOCK 0 macro
77 if (!(socktype & SOCK_NONBLOCK)) { in set_fd_cloexec_nb()
96 int socktype = SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC; in linux_netlink_start_event_monitor()
/external/grpc-grpc/src/core/lib/iomgr/
Dsocket_utils_linux.cc36 flags |= nonblock ? SOCK_NONBLOCK : 0; in grpc_accept4()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dsocket_utils_linux.cc36 flags |= nonblock ? SOCK_NONBLOCK : 0; in grpc_accept4()
/external/libiio/src/iiod/
Diiod.c233 fd = socket(AF_INET6, SOCK_STREAM | SOCK_NONBLOCK, 0); in main_server()
237 fd = socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0); in main_server()
291 SOCK_NONBLOCK); in main_server()
/external/ltp/testcases/kernel/syscalls/socket/
Dsocket02.c34 {SOCK_STREAM | SOCK_NONBLOCK, O_NONBLOCK, F_GETFL, "non-blocking"}
/external/ltp/testcases/kernel/syscalls/socketpair/
Dsocketpair02.c37 {SOCK_STREAM | SOCK_NONBLOCK, O_NONBLOCK, F_GETFL, "non-blocking"}
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/NetBSD/
Dpaccept.cpp61 sfd = paccept(fd, (struct sockaddr *)&client, &len, &set, SOCK_NONBLOCK); in main()
/external/rust/crates/mio/src/sys/unix/uds/
Dlistener.rs54 let flags = libc::SOCK_NONBLOCK | libc::SOCK_CLOEXEC; in accept()
Dmod.rs81 let flags = flags | libc::SOCK_NONBLOCK | libc::SOCK_CLOEXEC;
/external/libevent/
Dutil-internal.h513 #ifdef SOCK_NONBLOCK
514 #define EVUTIL_SOCK_NONBLOCK SOCK_NONBLOCK
Devutil.c2598 #if defined(SOCK_NONBLOCK) && defined(SOCK_CLOEXEC) in evutil_socket_()
2602 else if ((type & (SOCK_NONBLOCK|SOCK_CLOEXEC)) == 0) in evutil_socket_()
2637 #if defined(EVENT__HAVE_ACCEPT4) && defined(SOCK_CLOEXEC) && defined(SOCK_NONBLOCK) in evutil_accept4_()
/external/rust/crates/libc/src/unix/linux_like/linux/musl/b64/
Dmod.rs142 pub const SOCK_NONBLOCK: ::c_int = 2048; constant
/external/rust/crates/mio/src/sys/unix/
Dnet.rs25 let socket_type = socket_type | libc::SOCK_NONBLOCK | libc::SOCK_CLOEXEC; in new_socket()
Dtcp.rs450 libc::SOCK_CLOEXEC | libc::SOCK_NONBLOCK, in accept()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_sock_fields.c322 listen_fd = socket(AF_INET6, SOCK_STREAM | SOCK_NONBLOCK, 0); in test()
337 cli_fd = socket(AF_INET6, SOCK_STREAM | SOCK_NONBLOCK, 0); in test()
/external/android-clat/
Dclatd_test.cpp437 if (socketpair(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK, 0, fds)) { in do_translate_packet()
566 .write_fd6 = socket(AF_INET6, SOCK_RAW | SOCK_NONBLOCK, IPPROTO_RAW), in makeTunData()
927 .write_fd6 = socket(AF_INET6, SOCK_RAW | SOCK_NONBLOCK, IPPROTO_RAW), in TEST_F()
Dclatd.c193 int rawsock = socket(AF_INET6, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, IPPROTO_RAW); in open_sockets()
/external/rust/crates/libc/src/unix/linux_like/linux/uclibc/mips/
Dmod.rs65 pub const SOCK_NONBLOCK: ::c_int = 128; constant
/external/python/cpython3/Modules/
Dsocketmodule.c1013 #ifdef SOCK_NONBLOCK in init_sockobject()
1014 s->sock_type = s->sock_type & ~SOCK_NONBLOCK; in init_sockobject()
1023 #ifdef SOCK_NONBLOCK in init_sockobject()
1024 if (type & SOCK_NONBLOCK) in init_sockobject()
7518 #ifdef SOCK_NONBLOCK
7519 PyModule_AddIntMacro(m, SOCK_NONBLOCK);

123