/freebsd/contrib/netbsd-tests/net/net/ |
H A D | t_tcp.c | 83 srvr = socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0); in paccept_block() 107 clnt = socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0); in paccept_block() 115 as = paccept(srvr, NULL, NULL, NULL, pacceptblock ? 0 : SOCK_NONBLOCK); in paccept_block() 131 as = paccept(srvr, NULL, NULL, NULL, pacceptblock ? 0 : SOCK_NONBLOCK); in paccept_block()
|
/freebsd/contrib/netbsd-tests/kernel/ |
H A D | t_kauth_pr_47598.c | 122 s = socket(PF_INET, SOCK_STREAM|SOCK_NONBLOCK, 0); in ATF_TC_BODY() 136 s2 = socket(PF_INET, SOCK_STREAM|SOCK_NONBLOCK, 0); in ATF_TC_BODY()
|
/freebsd/lib/libcasper/libcasper/ |
H A D | zygote.c | 147 if (socketpair(PF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0, in zygote_main() 194 if (socketpair(PF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0, sp) == -1) in zygote_init()
|
H A D | libcasper.c | 93 if (socketpair(PF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0, in cap_init()
|
H A D | service.c | 183 if (socketpair(PF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0, sock) < 0) in service_connection_clone()
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_socketpair.c | 90 if (flags & SOCK_NONBLOCK) { in run() 170 run(AF_UNIX, SOCK_DGRAM, SOCK_NONBLOCK); in ATF_TC_BODY()
|
/freebsd/contrib/blocklist/lib/ |
H A D | bl.c | 139 #ifndef SOCK_NONBLOCK in bl_init() 140 #define SOCK_NONBLOCK 0 in bl_init() macro 153 SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK|SOCK_NOSIGPIPE, 0); in bl_init() 163 #if SOCK_NONBLOCK == 0 in bl_init()
|
/freebsd/tests/sys/netinet/ |
H A D | so_reuseport_lb_test.c | 141 sds[0] = lb_listen_socket(PF_INET, SOCK_NONBLOCK); in ATF_TC_BODY() 166 sds[i] = lb_listen_socket(PF_INET, SOCK_NONBLOCK); in ATF_TC_BODY() 197 sds[0] = lb_listen_socket(PF_INET6, SOCK_NONBLOCK); in ATF_TC_BODY() 222 sds[i] = lb_listen_socket(PF_INET6, SOCK_NONBLOCK); in ATF_TC_BODY()
|
/freebsd/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/tests/sys/net/if_ovpn/ |
H A D | if_ovpn_c.c | 94 ovpn_fd = socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0); in ATF_TC_BODY()
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | util-internal.h | 513 #ifdef SOCK_NONBLOCK 514 #define EVUTIL_SOCK_NONBLOCK SOCK_NONBLOCK
|
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/contrib/libevent/ |
H A D | util-internal.h | 513 #ifdef SOCK_NONBLOCK 514 #define EVUTIL_SOCK_NONBLOCK SOCK_NONBLOCK
|
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/lib/libdevdctl/ |
H A D | consumer.cc | 108 m_devdSockFD = socket(AF_UNIX, SOCK_SEQPACKET | SOCK_NONBLOCK, 0); in ConnectToDevd()
|
/freebsd/sys/kern/ |
H A D | uipc_syscalls.c | 153 if ((type & SOCK_NONBLOCK) != 0) { in kern_socket() 154 type &= ~SOCK_NONBLOCK; in kern_socket() 380 if (flags & SOCK_NONBLOCK) in kern_accept4() 437 if (uap->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) in sys_accept4() 559 if ((type & SOCK_NONBLOCK) != 0) { in kern_socketpair() 560 type &= ~SOCK_NONBLOCK; in kern_socketpair()
|
/freebsd/sys/sys/ |
H A D | socket.h | 113 #define SOCK_NONBLOCK 0x20000000 macro
|
/freebsd/usr.bin/whois/ |
H A D | whois.c | 325 s = socket(res->ai_family, res->ai_socktype | SOCK_NONBLOCK, in connect_to_any_host()
|
/freebsd/usr.sbin/ypldap/ |
H A D | ypldap.c | 569 if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, PF_UNSPEC, in main()
|
/freebsd/usr.sbin/powerd/ |
H A D | powerd.c | 494 if ((devd_pipe = socket(PF_LOCAL, SOCK_STREAM|SOCK_NONBLOCK, 0)) < 0) {
|
/freebsd/sys/netgraph/ |
H A D | ng_ksocket.c | 1267 error = solisten_dequeue(head, &so, SOCK_NONBLOCK); in ng_ksocket_accept()
|
/freebsd/usr.sbin/bhyve/ |
H A D | gdb.c | 2112 s = accept4(fd, NULL, NULL, SOCK_NONBLOCK); in new_connection()
|
/freebsd/tests/sys/kern/ |
H A D | ktls_test.c | 181 cs = socket(PF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0); in socketpair_tcp() 197 as = accept4(ls, NULL, NULL, SOCK_NONBLOCK); in socketpair_tcp()
|
/freebsd/contrib/wpa/src/drivers/ |
H A D | driver_bsd.c | 1787 SOCK_RAW | SOCK_CLOEXEC | SOCK_NONBLOCK, 0); in bsd_global_init()
|
/freebsd/sys/compat/linux/ |
H A D | linux_socket.c | 752 *flags |= SOCK_NONBLOCK; in linux_set_socket_flags()
|