Home
last modified time | relevance | path

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

/dragonfly/contrib/dhcpcd/src/
H A Dif.h238 #ifdef SOCK_CLOEXEC
241 # define SOCK_CLOEXEC 0x10000000 macro
249 #define SOCK_CXNB SOCK_CLOEXEC | SOCK_NONBLOCK
H A Dif.c114 ctx->pf_link_fd = xsocket(PF_LINK, SOCK_DGRAM | SOCK_CLOEXEC, 0); in if_opensockets()
124 ctx->pf_inet_fd = xsocket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0); in if_opensockets()
975 if (xtype & SOCK_CLOEXEC) in xsocket()
976 type &= ~SOCK_CLOEXEC; in xsocket()
987 if ((xtype & SOCK_CLOEXEC) && ((xflags = fcntl(s, F_GETFD)) == -1 || in xsocket()
1015 if (xtype & SOCK_CLOEXEC) in xsocketpair()
1016 type &= ~SOCK_CLOEXEC; in xsocketpair()
1027 if ((xtype & SOCK_CLOEXEC) && ((xflags = fcntl(fd[0], F_GETFD)) == -1 || in xsocketpair()
1030 if ((xtype & SOCK_CLOEXEC) && ((xflags = fcntl(fd[1], F_GETFD)) == -1 || in xsocketpair()
H A Dif-bsd.c172 priv->pf_inet6_fd = xsocket(PF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0); in if_opensockets_os()
/dragonfly/test/socket/socket/cloexec/
H A Dsocket_cloexec.c23 s = socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0); in main()
/dragonfly/test/socket/socketpair/cloexec/
H A Dsockpair_cloexec.c21 if (socketpair(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, 0, s) < 0) in main()
/dragonfly/test/socket/accept4/cloexec/
H A Daccept4_cloexec.c95 s = accept4(serv_s, NULL, NULL, SOCK_CLOEXEC); in main()
/dragonfly/sys/kern/
H A Duipc_syscalls.c110 if (type & SOCK_CLOEXEC) { in kern_socket()
111 type &= ~SOCK_CLOEXEC; in kern_socket()
417 if (sockflags & SOCK_CLOEXEC) in kern_accept()
516 if (uap->flags & ~(SOCK_NONBLOCK | SOCK_CLOEXEC)) in sys_accept4()
687 if (type & SOCK_CLOEXEC) { in kern_socketpair()
688 type &= ~SOCK_CLOEXEC; in kern_socketpair()
/dragonfly/lib/libc/gen/
H A Dsyslog.c343 if ((LogFile = _socket(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, in connectlog()
/dragonfly/sys/sys/
H A Dsocket.h101 #define SOCK_CLOEXEC 0x10000000 macro
/dragonfly/crypto/libressl/apps/nc/
H A Dnetcat.c907 if ((s = unix_bind(unix_dg_tmp_socket, SOCK_CLOEXEC)) == -1) in unix_connect()
910 if ((s = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0)) == -1) in unix_connect()
/dragonfly/usr.bin/dsynth/
H A Dbuild.c1501 if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, in childBuilderThread()