Home
last modified time | relevance | path

Searched refs:SOCK_CLOEXEC (Results 1 – 25 of 69) sorted by relevance

123

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dandroid-cloexec-socket.cpp6 #define SOCK_CLOEXEC __O_CLOEXEC macro
58 socket(0, SOCK_CLOEXEC, 0); in e()
59 TEMP_FAILURE_RETRY(socket(0, SOCK_CLOEXEC, 0)); in e()
60 socket(0, SOCK_STREAM | SOCK_CLOEXEC, 0); in e()
61 TEMP_FAILURE_RETRY(socket(0, SOCK_STREAM | SOCK_CLOEXEC, 0)); in e()
62 socket(0, SOCK_STREAM | SOCK_CLOEXEC | SOCK_DGRAM, 0); in e()
63 TEMP_FAILURE_RETRY(socket(0, SOCK_STREAM | SOCK_CLOEXEC | SOCK_DGRAM, 0)); in e()
Dandroid-cloexec-accept4.cpp8 #define SOCK_CLOEXEC __O_CLOEXEC macro
53 accept4(0, NULL, NULL, SOCK_CLOEXEC); in e()
54 TEMP_FAILURE_RETRY(accept4(0, NULL, NULL, SOCK_CLOEXEC)); in e()
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()
/external/ltp/testcases/kernel/syscalls/accept4/
Daccept4_01.c27 #ifndef SOCK_CLOEXEC
28 # define SOCK_CLOEXEC O_CLOEXEC macro
101 { SOCK_CLOEXEC, 0 },
103 { SOCK_CLOEXEC, SOCK_NONBLOCK },
/external/strace/xlat/
Dsock_type_flags.h17 #if defined(SOCK_CLOEXEC) || (defined(HAVE_DECL_SOCK_CLOEXEC) && HAVE_DECL_SOCK_CLOEXEC)
18 XLAT(SOCK_CLOEXEC),
Dsock_type_flags.in1 SOCK_CLOEXEC
/external/wayland/src/
Dwayland-os.h52 #ifndef SOCK_CLOEXEC
53 #define SOCK_CLOEXEC 02000000 macro
Dwayland-os.c65 fd = socket(domain, type | SOCK_CLOEXEC, protocol); in wl_os_socket_cloexec()
158 fd = accept4(sockfd, addr, addrlen, SOCK_CLOEXEC); in wl_os_accept_cloexec()
/external/ltp/include/lapi/
Dsocket.h53 #ifndef SOCK_CLOEXEC
54 # define SOCK_CLOEXEC 02000000 macro
Dfcntl.h29 #ifndef SOCK_CLOEXEC
30 # define SOCK_CLOEXEC O_CLOEXEC macro
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dandroid-cloexec-accept4.rst6 ``accept4()`` should include ``SOCK_CLOEXEC`` in its type argument to avoid the
18 accept4(sockfd, addr, addrlen, SOCK_NONBLOCK | SOCK_CLOEXEC);
Dandroid-cloexec-socket.rst6 ``socket()`` should include ``SOCK_CLOEXEC`` in its type argument to avoid the
18 socket(domain, type, SOCK_STREAM | SOCK_CLOEXEC);
Dandroid-cloexec-accept.rst18 accept4(sockfd, addr, addrlen, SOCK_CLOEXEC);
/external/libusb/libusb/os/
Dlinux_netlink.c42 #ifndef SOCK_CLOEXEC
43 #define SOCK_CLOEXEC 0 macro
62 if (!(socktype & SOCK_CLOEXEC)) { in set_fd_cloexec_nb()
96 int socktype = SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC; in linux_netlink_start_event_monitor()
/external/wayland/tests/
Dresources-test.c43 assert(socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, s) == 0); in TEST()
114 assert(socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, s) == 0); in TEST()
162 assert(socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, s) == 0); in TEST()
Dclient-test.c62 assert(socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, s) == 0); in TEST()
Dos-wrappers-test.c76 if (fall_back && (type & SOCK_CLOEXEC)) { in socket()
222 SOCK_STREAM | SOCK_CLOEXEC, 0, data->s) == 0); in setup_marshal_data()
/external/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg02.c57 sdr = SAFE_SOCKET(PF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_IP); in verify_recvmsg()
61 sdw = SAFE_SOCKET(PF_INET6, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_IP); in verify_recvmsg()
/external/llvm-project/lldb/source/Host/common/
DSocket.cpp438 #ifdef SOCK_CLOEXEC in CreateSocket()
440 socket_type |= SOCK_CLOEXEC; in CreateSocket()
469 #elif defined(SOCK_CLOEXEC) && defined(HAVE_ACCEPT4) in AcceptSocket()
472 flags |= SOCK_CLOEXEC; in AcceptSocket()
/external/grpc-grpc/src/core/lib/iomgr/
Dsocket_utils_linux.cc37 flags |= cloexec ? SOCK_CLOEXEC : 0; in grpc_accept4()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dsocket_utils_linux.cc37 flags |= cloexec ? SOCK_CLOEXEC : 0; in grpc_accept4()
/external/libchromeos-rs/src/
Dnet.rs13 AF_INET6, SOCK_CLOEXEC, SOCK_STREAM,
80 SOCK_STREAM | SOCK_CLOEXEC, in new()
/external/ltp/testcases/kernel/syscalls/socket/
Dsocket02.c32 {SOCK_STREAM | SOCK_CLOEXEC, FD_CLOEXEC, F_GETFD, "close-on-exec"},
/external/crosvm/seccomp/aarch64/
Dwl_device.policy7 # Used to connect to wayland. arg0 == AF_UNIX && arg1 == SOCK_STREAM|SOCK_CLOEXEC
/external/ltp/testcases/kernel/syscalls/socketpair/
Dsocketpair02.c35 {SOCK_STREAM | SOCK_CLOEXEC, FD_CLOEXEC, F_GETFD, "close-on-exec"},
/external/crosvm/seccomp/arm/
Dwl_device.policy7 # Used to connect to wayland. arg0 == AF_UNIX && arg1 == SOCK_STREAM|SOCK_CLOEXEC

123