| /freebsd-14.2/contrib/blocklist/port/ |
| H A D | popenve.c | 88 #ifndef SOCK_CLOEXEC in pdes_get() 89 #define SOCK_CLOEXEC 0 in pdes_get() macro 91 int stype = flags ? (SOCK_STREAM | SOCK_CLOEXEC) : SOCK_STREAM; in pdes_get() 95 #if SOCK_CLOEXEC == 0 in pdes_get() 101 #if SOCK_CLOEXEC != 0 in pdes_get()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Host/common/ |
| H A D | Socket.cpp | 327 #ifdef SOCK_CLOEXEC in CreateSocket() 329 socket_type |= SOCK_CLOEXEC; in CreateSocket() 358 #elif defined(SOCK_CLOEXEC) && defined(HAVE_ACCEPT4) in AcceptSocket() 361 flags |= SOCK_CLOEXEC; in AcceptSocket()
|
| /freebsd-14.2/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-14.2/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-14.2/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()
|
| H A D | changepw.c | 565 sock = socket (a->ai_family, a->ai_socktype | SOCK_CLOEXEC, a->ai_protocol); in change_password_loop()
|
| /freebsd-14.2/contrib/blocklist/lib/ |
| H A D | bl.c | 142 #ifndef SOCK_CLOEXEC in bl_init() 143 #define SOCK_CLOEXEC 0 in bl_init() macro 153 SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK|SOCK_NOSIGPIPE, 0); in bl_init() 160 #if SOCK_CLOEXEC == 0 in bl_init()
|
| /freebsd-14.2/lib/libc/net/ |
| H A D | if_nametoindex.c | 70 s = _socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0); in if_nametoindex()
|
| H A D | name6.c | 237 if ((s = _socket(af, SOCK_DGRAM | SOCK_CLOEXEC, 0)) < 0) in getipnodebyname() 870 if ((s = _socket(ss.ss_family, SOCK_DGRAM | SOCK_CLOEXEC, in set_source()
|
| H A D | nscachedcli.c | 199 client_socket = _socket(PF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0); in __open_cached_connection()
|
| /freebsd-14.2/lib/libsysdecode/ |
| H A D | flags.c | 199 X(SOCK_CLOEXEC) X(SOCK_NONBLOCK) XEND 209 str = lookup_value(socktype, type & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)); in sysdecode_socket_type() 215 *rem = type & ~(SOCK_CLOEXEC | SOCK_NONBLOCK); in sysdecode_socket_type() 218 val = type & (SOCK_CLOEXEC | SOCK_NONBLOCK); in sysdecode_socket_type()
|
| /freebsd-14.2/contrib/ntp/sntp/libevent/ |
| H A D | util-internal.h | 518 #ifdef SOCK_CLOEXEC 519 #define EVUTIL_SOCK_CLOEXEC SOCK_CLOEXEC
|
| H A D | evutil.c | 2598 #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_()
|
| /freebsd-14.2/contrib/libevent/ |
| H A D | util-internal.h | 518 #ifdef SOCK_CLOEXEC 519 #define EVUTIL_SOCK_CLOEXEC SOCK_CLOEXEC
|
| H A D | evutil.c | 2598 #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_()
|
| /freebsd-14.2/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-14.2/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-14.2/sys/kern/ |
| H A D | uipc_syscalls.c | 151 if ((type & SOCK_CLOEXEC) != 0) { in kern_socket() 152 type &= ~SOCK_CLOEXEC; in kern_socket() 359 (flags & SOCK_CLOEXEC) ? O_CLOEXEC : 0, &fcaps); in kern_accept4() 456 if (uap->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in sys_accept4() 574 if ((type & SOCK_CLOEXEC) != 0) { in kern_socketpair() 575 type &= ~SOCK_CLOEXEC; in kern_socketpair()
|
| /freebsd-14.2/lib/libc/gen/ |
| H A D | syslog.c | 378 if ((LogFile = _socket(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, in connectlog()
|
| /freebsd-14.2/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-14.2/lib/libc/resolv/ |
| H A D | res_send.c | 661 SOCK_CLOEXEC, 0); in send_vc() 852 SOCK_DGRAM | SOCK_CLOEXEC, 0); in send_dg()
|
| /freebsd-14.2/sys/sys/ |
| H A D | socket.h | 114 #define SOCK_CLOEXEC 0x10000000 macro
|
| /freebsd-14.2/contrib/ofed/librdmacm/ |
| H A D | acm.c | 145 sock = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, IPPROTO_TCP); in ucma_ib_init()
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | idmap_util.c | 467 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, fds); in userns_fd_from_idmap()
|