| /freebsd/contrib/blocklist/port/ |
| H A D | popenve.c | 90 #ifndef SOCK_CLOEXEC in pdes_get() 91 #define SOCK_CLOEXEC 0 in pdes_get() macro 93 int stype = flags ? (SOCK_STREAM | SOCK_CLOEXEC) : SOCK_STREAM; in pdes_get() 97 #if SOCK_CLOEXEC == 0 in pdes_get() 103 #if SOCK_CLOEXEC != 0 in pdes_get()
|
| /freebsd/crypto/openssl/ssl/rio/ |
| H A D | rio_notifier.c | 22 #if !defined(SOCK_CLOEXEC) && defined(FD_CLOEXEC) in set_cloexec() 112 #if defined(SOCK_CLOEXEC) in create_socket() 113 socktype |= SOCK_CLOEXEC; in create_socket() 286 #if defined(SOCK_CLOEXEC) in ossl_rio_notifier_init() 287 type |= SOCK_CLOEXEC; in ossl_rio_notifier_init()
|
| /freebsd/crypto/heimdal/lib/roken/ |
| H A D | socket.c | 327 #ifdef SOCK_CLOEXEC in rk_socket() 328 if ((SOCK_CLOEXEC & type) && s < 0 && errno == EINVAL) { in rk_socket() 329 type &= ~SOCK_CLOEXEC; in rk_socket()
|
| /freebsd/contrib/llvm-project/lldb/source/Host/posix/ |
| H A D | DomainSocket.cpp | 84 #ifdef SOCK_CLOEXEC in CreatePair() 85 type |= SOCK_CLOEXEC; in CreatePair() 90 #ifndef SOCK_CLOEXEC in CreatePair()
|
| /freebsd/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_socketpair.c | 82 if (flags & SOCK_CLOEXEC) { in run() 181 run(AF_UNIX, SOCK_DGRAM, SOCK_CLOEXEC); in ATF_TC_BODY()
|
| /freebsd/crypto/heimdal/lib/krb5/ |
| H A D | krb5_locl.h | 216 #ifndef SOCK_CLOEXEC 217 #define SOCK_CLOEXEC 0 macro
|
| H A D | send_to_kdc.c | 291 s = socket (a->ai_family, a->ai_socktype | SOCK_CLOEXEC, a->ai_protocol); in send_via_proxy() 418 fd = socket (a->ai_family, a->ai_socktype | SOCK_CLOEXEC, a->ai_protocol); in krb5_sendto()
|
| /freebsd/contrib/blocklist/lib/ |
| H A D | old_bl.c | 151 #ifndef SOCK_CLOEXEC in bl_init() 152 #define SOCK_CLOEXEC 0 in bl_init() macro 162 SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK|SOCK_NOSIGPIPE, 0); in bl_init() 169 #if SOCK_CLOEXEC == 0 in bl_init()
|
| H A D | bl.c | 151 #ifndef SOCK_CLOEXEC in bl_init() 152 #define SOCK_CLOEXEC 0 in bl_init() macro 162 SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK|SOCK_NOSIGPIPE, 0); in bl_init() 169 #if SOCK_CLOEXEC == 0 in bl_init()
|
| /freebsd/contrib/llvm-project/lldb/source/Host/common/ |
| H A D | Socket.cpp | 444 #ifdef SOCK_CLOEXEC in CreateSocket() 445 socket_type |= SOCK_CLOEXEC; in CreateSocket() 479 #if defined(SOCK_CLOEXEC) && defined(HAVE_ACCEPT4) in AcceptSocket() 480 int flags = SOCK_CLOEXEC; in AcceptSocket()
|
| /freebsd/lib/libc/net/ |
| H A D | if_nametoindex.c | 70 s = _socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0); in if_nametoindex()
|
| /freebsd/usr.sbin/bhyve/ |
| H A D | tpm_emul_swtpm.c | 54 tpm->fd = socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0); in tpm_swtpm_init()
|
| /freebsd/contrib/ntp/sntp/libevent/ |
| H A D | util-internal.h | 518 #ifdef SOCK_CLOEXEC 519 #define EVUTIL_SOCK_CLOEXEC SOCK_CLOEXEC
|
| /freebsd/contrib/libevent/ |
| H A D | util-internal.h | 518 #ifdef SOCK_CLOEXEC 519 #define EVUTIL_SOCK_CLOEXEC SOCK_CLOEXEC
|
| /freebsd/lib/libsysdecode/ |
| H A D | flags.c | 199 X(SOCK_CLOEXEC) X(SOCK_CLOFORK) X(SOCK_NONBLOCK) XEND 210 type & ~(SOCK_CLOEXEC | SOCK_CLOFORK | SOCK_NONBLOCK)); in sysdecode_socket_type() 216 *rem = type & ~(SOCK_CLOEXEC | SOCK_CLOFORK | SOCK_NONBLOCK); in sysdecode_socket_type() 219 val = type & (SOCK_CLOEXEC | SOCK_CLOFORK | SOCK_NONBLOCK); in sysdecode_socket_type()
|
| /freebsd/cddl/contrib/opensolaris/tests/os-tests/tests/oclo/ |
| H A D | oclo.c | 461 type |= SOCK_CLOEXEC; in oclo_socket() 482 ltype |= SOCK_CLOEXEC; in oclo_accept_common() 487 atype |= SOCK_CLOEXEC; in oclo_accept_common() 587 type |= SOCK_CLOEXEC; in oclo_rights_common()
|
| /freebsd/contrib/libxo/libxo/ |
| H A D | xo_syslog.c | 314 #ifdef SOCK_CLOEXEC in xo_connect_log() 315 flags |= SOCK_CLOEXEC; in xo_connect_log()
|
| /freebsd/contrib/netbsd-tests/include/sys/ |
| H A D | t_socket.c | 193 if (rump_sys_socket(-1, SOCK_CLOEXEC, 0) != -1) in ATF_TC_BODY()
|
| /freebsd/sys/kern/ |
| H A D | uipc_syscalls.c | 150 if ((type & SOCK_CLOEXEC) != 0) { in kern_socket() 151 type &= ~SOCK_CLOEXEC; in kern_socket() 359 ((flags & SOCK_CLOEXEC) != 0 ? O_CLOEXEC : 0) | in kern_accept4() 443 if ((uap->flags & ~(SOCK_CLOEXEC | SOCK_CLOFORK | SOCK_NONBLOCK)) != 0) in sys_accept4() 561 if ((type & SOCK_CLOEXEC) != 0) { in kern_socketpair() 562 type &= ~SOCK_CLOEXEC; in kern_socketpair()
|
| /freebsd/contrib/libder/tests/ |
| H A D | fuzz_stream.c | 59 ret = socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, in fuzz_fd()
|
| /freebsd/lib/libc/gen/ |
| H A D | syslog.c | 376 if ((LogFile = _socket(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, in connectlog()
|
| H A D | sysconf.c | 574 value = _socket(PF_INET6, SOCK_CLOEXEC | SOCK_DGRAM, 0); in sysconf()
|
| /freebsd/contrib/libfido2/src/ |
| H A D | nfc_linux.c | 201 if ((ctx->fd = socket(AF_NFC, SOCK_SEQPACKET | SOCK_CLOEXEC, in nfc_target_connect()
|
| /freebsd/sys/sys/ |
| H A D | socket.h | 112 #define SOCK_CLOEXEC 0x10000000 macro
|
| /freebsd/lib/libc/resolv/ |
| H A D | res_send.c | 652 SOCK_CLOEXEC, 0); in send_vc() 843 SOCK_DGRAM | SOCK_CLOEXEC, 0); in send_dg()
|