| /NextBSD/tools/regression/sockets/unix_socket/ |
| HD | unix_socket.c | 45 int sock, socks[2]; in main() local 65 if (socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) < 0) in main() 67 if (socks[0] < 0) in main() 69 if (socks[1] < 0) in main() 71 close(socks[0]); in main() 72 close(socks[1]); in main() 74 if (socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks) < 0) in main() 76 if (socks[0] < 0) in main() 78 if (socks[1] < 0) in main() 80 close(socks[0]); in main() [all …]
|
| /NextBSD/tools/regression/sockets/rtsocket/ |
| HD | rtsocket.c | 46 int sock, socks[2]; in main() local 73 if (socketpair(PF_ROUTE, SOCK_STREAM, 0, socks) == 0) { in main() 74 close(socks[0]); in main() 75 close(socks[1]); in main() 83 if (socketpair(PF_ROUTE, SOCK_DGRAM, 0, socks) == 0) { in main() 84 close(socks[0]); in main() 85 close(socks[1]); in main() 93 if (socketpair(PF_ROUTE, SOCK_RAW, 0, socks) == 0) { in main() 94 close(socks[0]); in main() 95 close(socks[1]); in main()
|
| /NextBSD/crypto/heimdal/kadmin/ |
| HD | kadm_conn.c | 123 spawn_child(krb5_context contextp, int *socks, in spawn_child() argument 137 s = accept(socks[this_sock], sa, &sa_size); in spawn_child() 158 rk_closesocket(socks[i]); in spawn_child() 172 krb5_socket_t *socks, unsigned int num_socks) in wait_for_connection() argument 183 if (socks[i] >= FD_SETSIZE) in wait_for_connection() 186 FD_SET(socks[i], &orig_read_set); in wait_for_connection() 187 max_fd = max(max_fd, socks[i]); in wait_for_connection() 209 if(FD_ISSET(socks[i], &read_set)) in wait_for_connection() 210 if(spawn_child(contextp, socks, num_socks, i) == 0) in wait_for_connection() 230 krb5_socket_t *socks = NULL, *tmp; in start_server() local [all …]
|
| /NextBSD/usr.bin/logger/ |
| HD | logger.c | 66 struct socks { struct 183 static struct socks *socks; in logmessage() local 208 socks = malloc(maxs * sizeof(struct socks)); in logmessage() 209 if (!socks) in logmessage() 216 memcpy(&socks[nsock].addr, r->ai_addr, r->ai_addrlen); in logmessage() 217 socks[nsock].addrlen = r->ai_addrlen; in logmessage() 218 socks[nsock++].sock = sock; in logmessage() 230 lsent = sendto(socks[i].sock, line, len, 0, in logmessage() 231 (struct sockaddr *)&socks[i].addr, in logmessage() 232 socks[i].addrlen); in logmessage()
|
| /NextBSD/contrib/pf/pflogd/ |
| HD | privsep.c | 72 int i, fd, socks[2], cmd; in priv_init() local 84 if (socketpair(AF_LOCAL, SOCK_STREAM, PF_UNSPEC, socks) == -1) in priv_init() 112 close(socks[0]); in priv_init() 113 priv_fd = socks[1]; in priv_init() 127 close(socks[1]); in priv_init() 130 if (may_read(socks[0], &cmd, sizeof(int))) in priv_init() 136 must_read(socks[0], &snaplen, sizeof(int)); in priv_init() 145 must_write(socks[0], &ret, sizeof(int)); in priv_init() 156 send_fd(socks[0], fd); in priv_init() 169 must_write(socks[0], &ret, sizeof(int)); in priv_init()
|
| /NextBSD/usr.sbin/lpr/lpd/ |
| HD | lpd.c | 861 int error, maxs, *s, *socks; in socksetup() local 877 socks = malloc((maxs + 1) * sizeof(int)); in socksetup() 878 if (!socks) { in socksetup() 883 *socks = 0; /* num of sockets counter at start of array */ in socksetup() 884 s = socks + 1; in socksetup() 918 (*socks)++; in socksetup() 925 if (*socks == 0) { in socksetup() 927 free(socks); in socksetup() 930 return(socks); in socksetup()
|
| /NextBSD/lib/libnv/tests/ |
| HD | nvlist_send_recv_test.c | 312 int status, socks[2]; in main() local 318 if (socketpair(PF_UNIX, SOCK_STREAM, 0, socks) < 0) in main() 327 close(socks[0]); in main() 328 child(socks[1]); in main() 332 close(socks[1]); in main() 333 parent(socks[0]); in main()
|
| HD | nv_array_tests.cc | 1001 int desc[32], fd, socks[2]; in ATF_TEST_CASE_BODY() local 1006 ATF_REQUIRE_EQ(socketpair(PF_UNIX, SOCK_STREAM, 0, socks), 0); in ATF_TEST_CASE_BODY() 1012 fd = socks[0]; in ATF_TEST_CASE_BODY() 1013 close(socks[1]); in ATF_TEST_CASE_BODY() 1035 fd = socks[1]; in ATF_TEST_CASE_BODY() 1036 close(socks[0]); in ATF_TEST_CASE_BODY()
|
| /NextBSD/sys/netgraph/ |
| HD | ng_socketvar.h | 51 LIST_ENTRY(ngpcb) socks; /* linked list of sockets */
|
| HD | ng_socket.c | 606 LIST_INSERT_HEAD(&ngsocklist, pcbp, socks); in ng_attach_common() 643 LIST_REMOVE(pcbp, socks); in ng_detach_common()
|
| /NextBSD/usr.bin/nc/ |
| HD | Makefile | 6 SRCS= netcat.c atomicio.c socks.c
|
| /NextBSD/crypto/openssh/ |
| HD | auth-pam.c | 675 int socks[2]; in sshpam_init_ctx() local 694 if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, socks) == -1) { in sshpam_init_ctx() 699 ctxt->pam_psock = socks[0]; in sshpam_init_ctx() 700 ctxt->pam_csock = socks[1]; in sshpam_init_ctx() 704 close(socks[0]); in sshpam_init_ctx() 705 close(socks[1]); in sshpam_init_ctx()
|
| HD | channels.c | 3508 int gaierr, n, num_socks = 0, socks[NUM_SOCKS]; local 3555 close(socks[n]); 3560 socks[num_socks++] = sock; 3574 sock = socks[n]; 3585 sock = socks[n];
|
| /NextBSD/usr.bin/netstat/ |
| HD | netgraph.c | 96 next = LIST_NEXT(&ngpcb, socks); in netgraphprotopr()
|
| /NextBSD/usr.sbin/syslogd/ |
| HD | syslogd.c | 2726 int error, maxs, *s, *socks; in socksetup() local 2770 socks = malloc((maxs+1) * sizeof(int)); in socksetup() 2771 if (socks == NULL) { in socksetup() 2776 *socks = 0; /* num of sockets counter at start of array */ in socksetup() 2777 s = socks + 1; in socksetup() 2820 (*socks)++; in socksetup() 2825 if (*socks == 0) { in socksetup() 2826 free(socks); in socksetup() 2835 return (socks); in socksetup()
|
| /NextBSD/libexec/ftpd/ |
| HD | ftpd.c | 3429 int error, maxs, *s, *socks; in socksetup() local 3447 socks = malloc((maxs + 1) * sizeof(int)); in socksetup() 3448 if (!socks) { in socksetup() 3454 *socks = 0; /* num of sockets counter at start of array */ in socksetup() 3455 s = socks + 1; in socksetup() 3477 (*socks)++; in socksetup() 3484 if (*socks == 0) { in socksetup() 3486 free(socks); in socksetup() 3489 return(socks); in socksetup()
|
| /NextBSD/contrib/tnftp/ |
| HD | INSTALL | 43 --with-socks enable support for (Dante) SOCKS5 proxy
|
| HD | ChangeLog | 857 * ipv6 isn't compatible with socks, so disable the former
|
| /NextBSD/crypto/openssl/doc/crypto/ |
| HD | BIO_s_connect.pod | 68 list is http, telnet, socks, https, ssl, ftp, gopher and wais.
|
| /NextBSD/contrib/tcp_wrappers/ |
| HD | README | 547 available from s1.gov in /pub/firewalls/socks.tar.Z. 550 ftp.nec.com, directory /pub/security/socks.cstc. 553 and telnet commands across a firewall. Unlike socks it can be used with
|
| /NextBSD/etc/ |
| HD | services | 1517 socks 1080/tcp 1518 socks 1080/udp
|
| /NextBSD/usr.bin/fortune/datfiles/ |
| HD | zippy | 795 is a black hole and the pink socks are bus drivers who just fell in!!
|
| HD | limerick | 1524 Its occupant cried, "Save my socks!
|
| HD | fortunes | 18108 Men wear sensible socks. They wear standard white sweatsocks. 18109 Women wear strange socks. They are cut way below the ankles, have pictures 18259 Usually manages to put on socks before shoes. Can match the 23637 tennis socks, not my style at all, but that was what I was aiming for: If 24310 around here often?" She said, "You're wearing two different-color socks." 28908 laughter. I even took my socks off. In my circle, that means class. 32950 in his socks, was taking his first airplane trip. He took a seat next to a 39640 wear white socks. 55970 -- None of my socks match.
|
| /NextBSD/share/dict/ |
| HD | web2a | 6655 bobby socks
|