Home
last modified time | relevance | path

Searched refs:sockets (Results 1 – 25 of 229) sorted by relevance

12345678910

/netbsd-src/tests/net/inpcb/
H A Dinpcb_bind.c121 int sockets[4]; in unicast_testsuite() local
124 rc = 0; s = sockets; in unicast_testsuite()
128 cleanup(sockets, 3); in unicast_testsuite()
133 rc = 0; s = sockets; in unicast_testsuite()
137 cleanup(sockets, 3); in unicast_testsuite()
142 rc = 0; s = sockets; in unicast_testsuite()
147 cleanup(sockets, 4); in unicast_testsuite()
152 rc = 0; s = sockets; in unicast_testsuite()
157 cleanup(sockets, 4); in unicast_testsuite()
162 rc = 0; s = sockets; in unicast_testsuite()
[all …]
/netbsd-src/external/mit/libuv/dist/test/
H A Dtest-watcher-cross-stop.c32 static uv_udp_t sockets[1250]; variable
34 static uv_udp_t sockets[2500]; variable
36 static uv_udp_send_t reqs[ARRAY_SIZE(sockets)];
77 TEST_FILE_LIMIT(ARRAY_SIZE(sockets) + 32); in TEST_IMPL()
83 for (i = 0; i < ARRAY_SIZE(sockets); i++) { in TEST_IMPL()
84 ASSERT(0 == uv_udp_init(loop, &sockets[i])); in TEST_IMPL()
85 ASSERT(0 == uv_udp_bind(&sockets[i], in TEST_IMPL()
88 ASSERT(0 == uv_udp_recv_start(&sockets[i], alloc_cb, recv_cb)); in TEST_IMPL()
90 &sockets[i], in TEST_IMPL()
100 for (i = 0; i < ARRAY_SIZE(sockets); i++) in TEST_IMPL()
[all …]
H A Dtest-poll-close.c45 uv_os_sock_t sockets[NUM_SOCKETS]; in TEST_IMPL() local
58 sockets[i] = socket(AF_INET, SOCK_STREAM, 0); in TEST_IMPL()
59 uv_poll_init_socket(uv_default_loop(), &poll_handles[i], sockets[i]); in TEST_IMPL()
/netbsd-src/share/doc/psd/20.ipctut/
H A Dsocketpair.c48 int sockets[2], child;
51 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sockets) < 0) {
59 close(sockets[0]);
60 if (read(sockets[1], buf, 1024, 0) < 0)
63 if (write(sockets[1], DATA2, sizeof(DATA2)) < 0)
65 close(sockets[1]);
67 close(sockets[1]);
68 if (write(sockets[0], DATA1, sizeof(DATA1)) < 0)
70 if (read(sockets[0], buf, 1024, 0) < 0)
73 close(sockets[0]);
H A Dpipe.c46 int sockets[2], child;
49 if (pipe(sockets) < 0) {
60 close(sockets[1]);
61 if (read(sockets[0], buf, 1024) < 0)
64 close(sockets[0]);
67 close(sockets[0]);
68 if (write(sockets[1], DATA, sizeof(DATA)) < 0)
70 close(sockets[1]);
/netbsd-src/external/bsd/nvi/dist/ipc/
H A Dip_run.c191 int sockets[2]; in channel() local
198 if (socketpair(AF_LOCAL, SOCK_STREAM, 0, sockets) == -1) in channel()
201 rpipe[0] = sockets[0]; in channel()
202 wpipe[0] = sockets[1]; in channel()
203 if (((rpipe[1] = dup(sockets[1])) == -1) || in channel()
204 ((wpipe[1] = dup(sockets[0])) == -1)) { in channel()
205 close(sockets[0]); in channel()
206 close(sockets[1]); in channel()
H A Dipc_method.c89 int sockets[2]; in vi_new_window() local
95 if (socketpair(AF_LOCAL, SOCK_STREAM, 0, sockets) == -1) in vi_new_window()
112 *(int *)CMSG_DATA(&ch.header) = sockets[1]; in vi_new_window()
116 *(int *)CMSG_DATA(&ch.header) = sockets[1]; in vi_new_window()
117 sendmsg(sockets[0], &mh, 0); in vi_new_window()
118 close(sockets[1]); in vi_new_window()
122 if (sendmsg(sockets[0], &mh, 0) == -1) in vi_new_window()
127 ipviwin->ifd = sockets[0]; in vi_new_window()
128 ipviwin->ofd = sockets[0]; in vi_new_window()
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dssh-agent.c131 SocketEntry *sockets = NULL; variable
1797 e = &sockets[socknum]; in process_message()
1900 if (sockets[i].type == AUTH_UNUSED) { in new_socket()
1901 sockets[i].fd = fd; in new_socket()
1902 if ((sockets[i].input = sshbuf_new()) == NULL || in new_socket()
1903 (sockets[i].output = sshbuf_new()) == NULL || in new_socket()
1904 (sockets[i].request = sshbuf_new()) == NULL) in new_socket()
1906 sockets[i].type = type; in new_socket()
1911 sockets = xrecallocarray(sockets, old_alloc, new_alloc, in new_socket()
1912 sizeof(sockets[0])); in new_socket()
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/kpasswd/
H A Dkpasswdd.c721 int *sockets; in doit() local
753 sockets = malloc(n * sizeof(*sockets)); in doit()
754 if (sockets == NULL) in doit()
763 sockets[i] = socket(__ss.ss_family, SOCK_DGRAM, 0); in doit()
764 if (sockets[i] < 0) in doit()
766 if (bind(sockets[i], sa, sa_size) < 0) { in doit()
777 maxfd = max(maxfd, sockets[i]); in doit()
780 FD_SET(sockets[i], &real_fdset); in doit()
787 sockets = &fdz; in doit()
809 if (FD_ISSET(sockets[i], &fdset)) { in doit()
[all …]
/netbsd-src/sys/arch/sparc/stand/ofwboot/
H A Dnetif_of.c61 struct iodesc sockets[SOPEN_MAX]; variable
68 return sockets; in socktodesc()
81 io = sockets; in netif_open()
121 io = &sockets[fd]; in netif_close()
/netbsd-src/sys/arch/sparc/stand/common/
H A Dnetif_sun.c57 struct iodesc sockets[SOPEN_MAX]; variable
66 return (sockets); in socktodesc()
77 io = sockets; in netif_open()
116 io = &sockets[fd]; in netif_close()
/netbsd-src/crypto/external/bsd/netpgp/dist/src/hkpd/
H A Dhkpd.c211 fd_set sockets; in hkpd() local
241 FD_ZERO(&sockets); in hkpd()
243 FD_SET(sock4, &sockets); in hkpd()
246 FD_SET(sock6, &sockets); in hkpd()
248 if (select(32, &sockets, NULL, NULL, NULL) < 0) { in hkpd()
252 sock = (sock4 >= 0 && FD_ISSET(sock4, &sockets)) ? sock4 : sock6; in hkpd()
/netbsd-src/sys/lib/libsa/
H A Dnetif.c49 struct iodesc sockets[SOPEN_MAX]; variable
274 return &sockets[sock]; in socktodesc()
285 for (fd = 0, s = sockets; fd < SOPEN_MAX; fd++, s++) in netif_open()
319 netif_detach(sockets[sock].io_netif); in netif_close()
320 sockets[sock].io_netif = (struct netif *)0; in netif_close()
/netbsd-src/external/gpl3/gdb/dist/gnulib/import/m4/
H A Dsockets.m41 # sockets.m4 serial 7
14 # Prerequisites of lib/sockets.c.
H A Dsockpfaf.m419 AC_CACHE_CHECK([for IPv4 sockets],
38 AC_CACHE_CHECK([for IPv6 sockets],
66 AC_CACHE_CHECK([for UNIX domain sockets],
H A Dclose.m421 dnl sockets to the close() function. So enable the support for sockets.
/netbsd-src/external/bsd/am-utils/dist/m4/macros/
H A Dcheck_network_transport_type.m411 ac_cv_transport_type=sockets ;;
15 ac_cv_transport_type=sockets ;;
/netbsd-src/sys/arch/sun68k/stand/libsa/
H A Dnetif_sun.c64 struct iodesc sockets[SOPEN_MAX]; variable
221 for (fd = 0, s = sockets; fd < SOPEN_MAX; fd++, s++) in netif_open()
248 s = &sockets[fd]; in netif_close()
266 return (&sockets[fd]); in socktodesc()
/netbsd-src/share/doc/
H A DREADME.docdirs36 ref3/sockets src/share/doc/psd/20.ipctut
37 ref3/sockets-advanced src/share/doc/psd/21.ipc
151 psd/20.ipctut -> ref3/sockets
152 psd/21.ipc -> ref3/sockets-advanced
/netbsd-src/external/gpl2/xcvs/dist/m4/
H A Dsockpfaf.m416 AC_MSG_CHECKING(for IPv4 sockets)
28 AC_MSG_CHECKING(for IPv6 sockets)
/netbsd-src/external/mit/libuv/dist/docs/src/
H A Dindex.rst27 * Asynchronous TCP and UDP sockets
32 * IPC with socket sharing, using Unix domain sockets or named pipes (Windows)
/netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man3/
H A DSSL_state_string.pod29 When using nonblocking sockets, the function call performing the handshake
33 For both blocking or nonblocking sockets, the details state information
/netbsd-src/crypto/external/bsd/openssl/dist/doc/man3/
H A DSSL_state_string.pod29 When using nonblocking sockets, the function call performing the handshake
33 For both blocking or nonblocking sockets, the details state information
/netbsd-src/external/bsd/nsd/dist/doc/
H A DNSD-VERIFY-MODS102 configuration and setting up the sockets in nsd.c by calling
107 before it executes the verifier with execvp. Server sockets are automatically
143 sockets for verifying. This reflects the tcp, udp and ifs members that are used
148 (server.c) function was used with the normal server sockets, the function is
149 called subsequently for the verify sockets. Also in server_start_xfrd the
150 sockets for verifiers are closed in the xfrd child process, because it has no
/netbsd-src/external/bsd/unbound/dist/contrib/
H A Dunbound.socket.in6 WantedBy=sockets.target

12345678910