Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/blocklist/port/
H A Dpopenve.c88 #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 DSocket.cpp327 #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 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-14.2/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-14.2/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()
H A Dchangepw.c565 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 Dbl.c142 #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 Dif_nametoindex.c70 s = _socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0); in if_nametoindex()
H A Dname6.c237 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 Dnscachedcli.c199 client_socket = _socket(PF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0); in __open_cached_connection()
/freebsd-14.2/lib/libsysdecode/
H A Dflags.c199 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 Dutil-internal.h518 #ifdef SOCK_CLOEXEC
519 #define EVUTIL_SOCK_CLOEXEC SOCK_CLOEXEC
H A Devutil.c2598 #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 Dutil-internal.h518 #ifdef SOCK_CLOEXEC
519 #define EVUTIL_SOCK_CLOEXEC SOCK_CLOEXEC
H A Devutil.c2598 #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 Dxo_syslog.c314 #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 Dt_socket.c193 if (rump_sys_socket(-1, SOCK_CLOEXEC, 0) != -1) in ATF_TC_BODY()
/freebsd-14.2/sys/kern/
H A Duipc_syscalls.c151 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 Dsyslog.c378 if ((LogFile = _socket(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, in connectlog()
/freebsd-14.2/contrib/libfido2/src/
H A Dnfc_linux.c201 if ((ctx->fd = socket(AF_NFC, SOCK_SEQPACKET | SOCK_CLOEXEC, in nfc_target_connect()
/freebsd-14.2/lib/libc/resolv/
H A Dres_send.c661 SOCK_CLOEXEC, 0); in send_vc()
852 SOCK_DGRAM | SOCK_CLOEXEC, 0); in send_dg()
/freebsd-14.2/sys/sys/
H A Dsocket.h114 #define SOCK_CLOEXEC 0x10000000 macro
/freebsd-14.2/contrib/ofed/librdmacm/
H A Dacm.c145 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 Didmap_util.c467 ret = socketpair(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0, fds); in userns_fd_from_idmap()

12