/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | android-cloexec-socket.cpp | 6 #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()
|
D | android-cloexec-accept4.cpp | 8 #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/ |
D | accept4_01.c | 27 #ifndef SOCK_CLOEXEC 28 # define SOCK_CLOEXEC O_CLOEXEC macro 101 { SOCK_CLOEXEC, 0 }, 103 { SOCK_CLOEXEC, SOCK_NONBLOCK },
|
/external/strace/xlat/ |
D | sock_type_flags.h | 17 #if defined(SOCK_CLOEXEC) || (defined(HAVE_DECL_SOCK_CLOEXEC) && HAVE_DECL_SOCK_CLOEXEC) 18 XLAT(SOCK_CLOEXEC),
|
D | sock_type_flags.in | 1 SOCK_CLOEXEC
|
/external/wayland/src/ |
D | wayland-os.h | 52 #ifndef SOCK_CLOEXEC 53 #define SOCK_CLOEXEC 02000000 macro
|
D | wayland-os.c | 65 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/ |
D | socket.h | 53 #ifndef SOCK_CLOEXEC 54 # define SOCK_CLOEXEC 02000000 macro
|
D | fcntl.h | 29 #ifndef SOCK_CLOEXEC 30 # define SOCK_CLOEXEC O_CLOEXEC macro
|
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/ |
D | android-cloexec-accept4.rst | 6 ``accept4()`` should include ``SOCK_CLOEXEC`` in its type argument to avoid the 18 accept4(sockfd, addr, addrlen, SOCK_NONBLOCK | SOCK_CLOEXEC);
|
D | android-cloexec-socket.rst | 6 ``socket()`` should include ``SOCK_CLOEXEC`` in its type argument to avoid the 18 socket(domain, type, SOCK_STREAM | SOCK_CLOEXEC);
|
D | android-cloexec-accept.rst | 18 accept4(sockfd, addr, addrlen, SOCK_CLOEXEC);
|
/external/libusb/libusb/os/ |
D | linux_netlink.c | 42 #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/ |
D | resources-test.c | 43 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()
|
D | client-test.c | 62 assert(socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, s) == 0); in TEST()
|
D | os-wrappers-test.c | 76 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/ |
D | recvmsg02.c | 57 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/ |
D | Socket.cpp | 438 #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/ |
D | socket_utils_linux.cc | 37 flags |= cloexec ? SOCK_CLOEXEC : 0; in grpc_accept4()
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/ |
D | socket_utils_linux.cc | 37 flags |= cloexec ? SOCK_CLOEXEC : 0; in grpc_accept4()
|
/external/libchromeos-rs/src/ |
D | net.rs | 13 AF_INET6, SOCK_CLOEXEC, SOCK_STREAM, 80 SOCK_STREAM | SOCK_CLOEXEC, in new()
|
/external/ltp/testcases/kernel/syscalls/socket/ |
D | socket02.c | 32 {SOCK_STREAM | SOCK_CLOEXEC, FD_CLOEXEC, F_GETFD, "close-on-exec"},
|
/external/crosvm/seccomp/aarch64/ |
D | wl_device.policy | 7 # Used to connect to wayland. arg0 == AF_UNIX && arg1 == SOCK_STREAM|SOCK_CLOEXEC
|
/external/ltp/testcases/kernel/syscalls/socketpair/ |
D | socketpair02.c | 35 {SOCK_STREAM | SOCK_CLOEXEC, FD_CLOEXEC, F_GETFD, "close-on-exec"},
|
/external/crosvm/seccomp/arm/ |
D | wl_device.policy | 7 # Used to connect to wayland. arg0 == AF_UNIX && arg1 == SOCK_STREAM|SOCK_CLOEXEC
|