Home
last modified time | relevance | path

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

12

/freebsd/contrib/blocklist/port/
H A Dpopenve.c90 #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 Drio_notifier.c22 #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 Dsocket.c327 #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 DDomainSocket.cpp84 #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 Dt_socketpair.c82 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 Dkrb5_locl.h216 #ifndef SOCK_CLOEXEC
217 #define SOCK_CLOEXEC 0 macro
H A Dsend_to_kdc.c291 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 Dold_bl.c151 #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 Dbl.c151 #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 DSocket.cpp444 #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 Dif_nametoindex.c70 s = _socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0); in if_nametoindex()
/freebsd/usr.sbin/bhyve/
H A Dtpm_emul_swtpm.c54 tpm->fd = socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0); in tpm_swtpm_init()
/freebsd/contrib/ntp/sntp/libevent/
H A Dutil-internal.h518 #ifdef SOCK_CLOEXEC
519 #define EVUTIL_SOCK_CLOEXEC SOCK_CLOEXEC
/freebsd/contrib/libevent/
H A Dutil-internal.h518 #ifdef SOCK_CLOEXEC
519 #define EVUTIL_SOCK_CLOEXEC SOCK_CLOEXEC
/freebsd/lib/libsysdecode/
H A Dflags.c199 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 Doclo.c461 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 Dxo_syslog.c314 #ifdef SOCK_CLOEXEC in xo_connect_log()
315 flags |= SOCK_CLOEXEC; in xo_connect_log()
/freebsd/contrib/netbsd-tests/include/sys/
H A Dt_socket.c193 if (rump_sys_socket(-1, SOCK_CLOEXEC, 0) != -1) in ATF_TC_BODY()
/freebsd/sys/kern/
H A Duipc_syscalls.c150 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 Dfuzz_stream.c59 ret = socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, in fuzz_fd()
/freebsd/lib/libc/gen/
H A Dsyslog.c376 if ((LogFile = _socket(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, in connectlog()
H A Dsysconf.c574 value = _socket(PF_INET6, SOCK_CLOEXEC | SOCK_DGRAM, 0); in sysconf()
/freebsd/contrib/libfido2/src/
H A Dnfc_linux.c201 if ((ctx->fd = socket(AF_NFC, SOCK_SEQPACKET | SOCK_CLOEXEC, in nfc_target_connect()
/freebsd/sys/sys/
H A Dsocket.h112 #define SOCK_CLOEXEC 0x10000000 macro
/freebsd/lib/libc/resolv/
H A Dres_send.c652 SOCK_CLOEXEC, 0); in send_vc()
843 SOCK_DGRAM | SOCK_CLOEXEC, 0); in send_dg()

12