Searched refs:SOCK_CLOEXEC (Results 1 - 25 of 27) sorted by relevance

12

/freebsd-11-stable/contrib/blacklist/port/
H A Dpopenve.c88 #ifndef SOCK_CLOEXEC
89 #define SOCK_CLOEXEC 0 macro
91 int stype = flags ? (SOCK_STREAM | SOCK_CLOEXEC) : SOCK_STREAM;
95 #if SOCK_CLOEXEC == 0
101 #if SOCK_CLOEXEC != 0
/freebsd-11-stable/lib/libc/net/
H A Dif_nametoindex.c71 s = _socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0);
H A Dnscachedcli.c203 client_socket = _socket(PF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0);
H A Dname6.c238 if ((s = _socket(af, SOCK_DGRAM | SOCK_CLOEXEC, 0)) < 0)
871 if ((s = _socket(ss.ss_family, SOCK_DGRAM | SOCK_CLOEXEC,
H A Dgetaddrinfo.c878 if ((s = _socket(ai.ai_family, ai.ai_socktype | SOCK_CLOEXEC,
1210 s = _socket(pai->ai_family, SOCK_DGRAM | SOCK_CLOEXEC, 0);
1672 if ((fd = _socket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0)) < 0)
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_socketpair.c80 if (flags & SOCK_CLOEXEC) {
166 run(AF_UNIX, SOCK_DGRAM, SOCK_CLOEXEC);
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dsocket.c327 #ifdef SOCK_CLOEXEC
328 if ((SOCK_CLOEXEC & type) && s < 0 && errno == EINVAL) {
329 type &= ~SOCK_CLOEXEC;
/freebsd-11-stable/contrib/blacklist/lib/
H A Dbl.c142 #ifndef SOCK_CLOEXEC
143 #define SOCK_CLOEXEC 0 macro
153 SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK|SOCK_NOSIGPIPE, 0);
160 #if SOCK_CLOEXEC == 0
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/common/
H A DSocket.cpp444 #ifdef SOCK_CLOEXEC
446 socket_type |= SOCK_CLOEXEC;
475 #elif defined(SOCK_CLOEXEC) && defined(HAVE_ACCEPT4)
478 flags |= SOCK_CLOEXEC;
/freebsd-11-stable/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);
418 fd = socket (a->ai_family, a->ai_socktype | SOCK_CLOEXEC, a->ai_protocol);
H A Dchangepw.c565 sock = socket (a->ai_family, a->ai_socktype | SOCK_CLOEXEC, a->ai_protocol);
/freebsd-11-stable/contrib/netbsd-tests/include/sys/
H A Dt_socket.c185 atf_tc_set_md_var(tc, "descr", "SOCK_CLOEXEC kernel invariant failure");
193 if (rump_sys_socket(-1, SOCK_CLOEXEC, 0) != -1)
/freebsd-11-stable/contrib/ntp/sntp/libevent/
H A Dutil-internal.h457 #ifdef SOCK_CLOEXEC
458 #define EVUTIL_SOCK_CLOEXEC SOCK_CLOEXEC
H A Devutil.c2496 #if defined(SOCK_NONBLOCK) && defined(SOCK_CLOEXEC)
2500 else if ((type & (SOCK_NONBLOCK|SOCK_CLOEXEC)) == 0)
2535 #if defined(EVENT__HAVE_ACCEPT4) && defined(SOCK_CLOEXEC) && defined(SOCK_NONBLOCK)
/freebsd-11-stable/contrib/libxo/libxo/
H A Dxo_syslog.c314 #ifdef SOCK_CLOEXEC
315 flags |= SOCK_CLOEXEC;
316 #endif /* SOCK_CLOEXEC */
/freebsd-11-stable/contrib/apr/network_io/unix/
H A Dsockets.c123 flags |= SOCK_CLOEXEC;
257 int flags = SOCK_CLOEXEC;
/freebsd-11-stable/lib/libsysdecode/
H A Dflags.c357 X(SOCK_CLOEXEC) X(SOCK_NONBLOCK) XEND
367 str = lookup_value(socktype, type & ~(SOCK_CLOEXEC | SOCK_NONBLOCK));
373 *rem = type & ~(SOCK_CLOEXEC | SOCK_NONBLOCK);
376 val = type & (SOCK_CLOEXEC | SOCK_NONBLOCK);
/freebsd-11-stable/lib/libc/gen/
H A Dsyslog.c365 if ((LogFile = _socket(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC,
/freebsd-11-stable/sys/kern/
H A Duipc_syscalls.c74 * Flags for accept1() and kern_accept4(), in addition to SOCK_CLOEXEC
150 if ((type & SOCK_CLOEXEC) != 0) {
151 type &= ~SOCK_CLOEXEC;
379 (flags & SOCK_CLOEXEC) ? O_CLOEXEC : 0, &fcaps);
518 if (uap->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK))
654 if ((type & SOCK_CLOEXEC) != 0) {
655 type &= ~SOCK_CLOEXEC;
/freebsd-11-stable/contrib/ofed/librdmacm/
H A Dacm.c145 sock = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, IPPROTO_TCP);
/freebsd-11-stable/sys/sys/
H A Dsocket.h112 #define SOCK_CLOEXEC 0x10000000 macro
/freebsd-11-stable/lib/libc/resolv/
H A Dres_send.c662 SOCK_CLOEXEC, 0);
853 SOCK_DGRAM | SOCK_CLOEXEC, 0);
/freebsd-11-stable/contrib/ofed/libibverbs/
H A Dneigh.c231 SOCK_DGRAM | SOCK_CLOEXEC, 0);
/freebsd-11-stable/sys/compat/linux/
H A Dlinux_socket.c603 *flags |= SOCK_CLOEXEC;

Completed in 217 milliseconds

12