| /freebsd-12.1/tools/regression/sockets/unix_socket/ |
| H A D | 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 …]
|
| /freebsd-12.1/tools/regression/sockets/rtsocket/ |
| H A D | 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()
|
| /freebsd-12.1/crypto/heimdal/kadmin/ |
| H A D | 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() 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() 230 krb5_socket_t *socks = NULL, *tmp; in start_server() local 260 tmp = realloc(socks, (num_socks + i) * sizeof(*socks)); in start_server() 266 socks = tmp; in start_server() [all …]
|
| /freebsd-12.1/usr.bin/logger/ |
| H A D | logger.c | 65 struct socks { struct 74 struct socks **); argument 76 struct socks *, ssize_t, const char *); 95 struct socks *socks; in main() local 108 socks = NULL; in main() 198 socks, nsock, buf); in main() 203 socks, nsock, *argv++); in main() 223 struct socks **socks) in socksetup() argument 227 struct socks *sk; in socksetup() 328 sk[nsock] = (struct socks){ in socksetup() [all …]
|
| /freebsd-12.1/contrib/pf/pflogd/ |
| H A D | 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()
|
| /freebsd-12.1/lib/libnv/tests/ |
| H A D | nvlist_send_recv_test.c | 312 int status, socks[2]; in send_nvlist() local 315 if (socketpair(PF_UNIX, SOCK_STREAM, 0, socks) < 0) in send_nvlist() 324 close(socks[0]); in send_nvlist() 325 child(socks[1]); in send_nvlist() 329 close(socks[1]); in send_nvlist() 330 parent(socks[0]); in send_nvlist() 342 int error, socks[2]; in send_closed_fd() local 344 if (socketpair(PF_UNIX, SOCK_STREAM, 0, socks) < 0) in send_closed_fd() 352 error = nvlist_send(socks[1], nvl); in send_closed_fd()
|
| H A D | nv_array_tests.cc | 1002 int desc[32], fd, socks[2]; in ATF_TEST_CASE_BODY() local 1007 ATF_REQUIRE_EQ(socketpair(PF_UNIX, SOCK_STREAM, 0, socks), 0); in ATF_TEST_CASE_BODY() 1013 fd = socks[0]; in ATF_TEST_CASE_BODY() 1014 close(socks[1]); in ATF_TEST_CASE_BODY() 1036 fd = socks[1]; in ATF_TEST_CASE_BODY() 1037 close(socks[0]); in ATF_TEST_CASE_BODY()
|
| /freebsd-12.1/contrib/bsnmp/snmpd/ |
| H A D | trans_inet.c | 151 TAILQ_HEAD(, port_sock) socks; 473 TAILQ_INSERT_HEAD(&port->socks, sock, link); in ipv4_create() 574 struct port_sock *sock = TAILQ_FIRST(&p->socks); in ipv4_activate() 593 struct port_sock *sock = TAILQ_FIRST(&p->socks); in ipv4_deactivate() 698 TAILQ_INSERT_HEAD(&port->socks, sock, link); in ipv6_create_common() 811 struct port_sock *sock = TAILQ_FIRST(&p->socks); in ipv6_activate() 1012 TAILQ_INSERT_HEAD(&port->socks, sock, link); in dns_activate() 1015 if (!TAILQ_EMPTY(&port->socks)) in dns_activate() 1030 while (!TAILQ_EMPTY(&port->socks)) { in dns_deactivate() 1032 TAILQ_REMOVE(&port->socks, sock, link); in dns_deactivate() [all …]
|
| /freebsd-12.1/usr.sbin/lpr/lpd/ |
| H A D | lpd.c | 859 int error, maxs, *s, *socks; in socksetup() local 875 socks = malloc((maxs + 1) * sizeof(int)); in socksetup() 876 if (!socks) { in socksetup() 881 *socks = 0; /* num of sockets counter at start of array */ in socksetup() 882 s = socks + 1; in socksetup() 916 (*socks)++; in socksetup() 923 if (*socks == 0) { in socksetup() 925 free(socks); in socksetup() 928 return(socks); in socksetup()
|
| /freebsd-12.1/sys/netgraph/ |
| H A D | ng_socketvar.h | 51 LIST_ENTRY(ngpcb) socks; /* linked list of sockets */
|
| H A D | ng_socket.c | 606 LIST_INSERT_HEAD(&ngsocklist, pcbp, socks); in ng_attach_common() 643 LIST_REMOVE(pcbp, socks); in ng_detach_common()
|
| /freebsd-12.1/usr.bin/nc/ |
| H A D | Makefile | 6 SRCS= netcat.c atomicio.c socks.c
|
| /freebsd-12.1/crypto/openssh/ |
| H A D | auth-pam.c | 748 int socks[2]; in sshpam_init_ctx() local 768 if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, socks) == -1) { in sshpam_init_ctx() 773 ctxt->pam_psock = socks[0]; in sshpam_init_ctx() 774 ctxt->pam_csock = socks[1]; in sshpam_init_ctx() 778 close(socks[0]); in sshpam_init_ctx() 779 close(socks[1]); in sshpam_init_ctx()
|
| H A D | channels.c | 4512 int gaierr, n, num_socks = 0, socks[NUM_SOCKS]; local 4561 close(socks[n]); 4565 socks[num_socks++] = sock; 4579 sock = socks[n]; 4590 sock = socks[n];
|
| /freebsd-12.1/usr.bin/netstat/ |
| H A D | netgraph.c | 97 next = LIST_NEXT(&ngpcb, socks); in netgraphprotopr()
|
| /freebsd-12.1/libexec/ftpd/ |
| H A D | ftpd.c | 3465 int error, maxs, *s, *socks; in socksetup() local 3483 socks = malloc((maxs + 1) * sizeof(int)); in socksetup() 3484 if (!socks) { in socksetup() 3490 *socks = 0; /* num of sockets counter at start of array */ in socksetup() 3491 s = socks + 1; in socksetup() 3513 (*socks)++; in socksetup() 3520 if (*socks == 0) { in socksetup() 3522 free(socks); in socksetup() 3525 return(socks); in socksetup()
|
| /freebsd-12.1/contrib/tnftp/ |
| H A D | INSTALL | 43 --with-socks enable support for (Dante) SOCKS5 proxy
|
| H A D | ChangeLog | 857 * ipv6 isn't compatible with socks, so disable the former
|
| /freebsd-12.1/crypto/openssl/doc/man3/ |
| H A D | BIO_s_connect.pod | 69 list is http, telnet, socks, https, ssl, ftp, and gopher.
|
| /freebsd-12.1/contrib/tcp_wrappers/ |
| H A D | 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
|
| /freebsd-12.1/usr.sbin/services_mkdb/ |
| H A D | services | 1519 socks 1080/tcp 1520 socks 1080/udp
|
| /freebsd-12.1/share/dict/ |
| H A D | web2a | 6655 bobby socks
|