| /freebsd-14.2/tools/regression/sockets/unix_socket/ |
| H A D | unix_socket.c | 43 int sock, socks[2]; in main() local 63 if (socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) < 0) in main() 65 if (socks[0] < 0) in main() 67 if (socks[1] < 0) in main() 69 close(socks[0]); in main() 70 close(socks[1]); in main() 72 if (socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks) < 0) in main() 74 if (socks[0] < 0) in main() 76 if (socks[1] < 0) in main() 78 close(socks[0]); in main() [all …]
|
| /freebsd-14.2/tools/regression/sockets/rtsocket/ |
| H A D | rtsocket.c | 44 int sock, socks[2]; in main() local 71 if (socketpair(PF_ROUTE, SOCK_STREAM, 0, socks) == 0) { in main() 72 close(socks[0]); in main() 73 close(socks[1]); in main() 81 if (socketpair(PF_ROUTE, SOCK_DGRAM, 0, socks) == 0) { in main() 82 close(socks[0]); in main() 83 close(socks[1]); in main() 91 if (socketpair(PF_ROUTE, SOCK_RAW, 0, socks) == 0) { in main() 92 close(socks[0]); in main() 93 close(socks[1]); in main()
|
| /freebsd-14.2/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-14.2/usr.bin/logger/ |
| H A D | logger.c | 68 struct socks { struct 77 struct socks **); argument 79 struct socks *, ssize_t, const char *); 100 struct socks *socks; in main() local 113 socks = NULL; in main() 220 socks, nsock, buf); in main() 225 socks, nsock, *argv++); in main() 250 struct socks **socks) in socksetup() argument 254 struct socks *sk; in socksetup() 355 sk[nsock] = (struct socks){ in socksetup() [all …]
|
| /freebsd-14.2/contrib/pf/pflogd/ |
| H A D | privsep.c | 69 int i, fd, socks[2], cmd; in priv_init() local 81 if (socketpair(AF_LOCAL, SOCK_STREAM, PF_UNSPEC, socks) == -1) in priv_init() 109 close(socks[0]); in priv_init() 110 priv_fd = socks[1]; in priv_init() 124 close(socks[1]); in priv_init() 127 if (may_read(socks[0], &cmd, sizeof(int))) in priv_init() 133 must_read(socks[0], &snaplen, sizeof(int)); in priv_init() 142 must_write(socks[0], &ret, sizeof(int)); in priv_init() 153 send_fd(socks[0], fd); in priv_init() 166 must_write(socks[0], &ret, sizeof(int)); in priv_init()
|
| /freebsd-14.2/lib/libnv/tests/ |
| H A D | nvlist_send_recv_test.c | 340 int socks[2], status; in nvlist_send_recv__send_nvlist() local 349 (void)close(socks[0]); in nvlist_send_recv__send_nvlist() 350 send_nvlist_child(socks[1]); in nvlist_send_recv__send_nvlist() 354 (void)close(socks[1]); in nvlist_send_recv__send_nvlist() 355 send_nvlist_parent(socks[0]); in nvlist_send_recv__send_nvlist() 365 int socks[2]; in nvlist_send_recv__send_closed_fd() local 433 int anfds, bnfds, fd, i, j, socks[2], status; in nvlist_send_recv__send_many_fds() local 442 (void)close(socks[0]); in nvlist_send_recv__send_many_fds() 443 send_many_fds_child(socks[1]); in nvlist_send_recv__send_many_fds() 447 (void)close(socks[1]); in nvlist_send_recv__send_many_fds() [all …]
|
| H A D | nv_array_tests.cc | 1000 int desc[32], fd, socks[2]; in ATF_TEST_CASE_BODY() local 1005 ATF_REQUIRE_EQ(socketpair(PF_UNIX, SOCK_STREAM, 0, socks), 0); in ATF_TEST_CASE_BODY() 1011 fd = socks[0]; in ATF_TEST_CASE_BODY() 1012 close(socks[1]); in ATF_TEST_CASE_BODY() 1034 fd = socks[1]; in ATF_TEST_CASE_BODY() 1035 close(socks[0]); in ATF_TEST_CASE_BODY()
|
| /freebsd-14.2/contrib/bsnmp/snmpd/ |
| H A D | trans_inet.c | 151 TAILQ_HEAD(, port_sock) socks; 470 TAILQ_INSERT_HEAD(&port->socks, sock, link); in ipv4_create() 571 struct port_sock *sock = TAILQ_FIRST(&p->socks); in ipv4_activate() 590 struct port_sock *sock = TAILQ_FIRST(&p->socks); in ipv4_deactivate() 697 TAILQ_INSERT_HEAD(&port->socks, sock, link); in ipv6_create_common() 810 struct port_sock *sock = TAILQ_FIRST(&p->socks); in ipv6_activate() 1014 TAILQ_INSERT_HEAD(&port->socks, sock, link); in dns_activate() 1017 if (!TAILQ_EMPTY(&port->socks)) in dns_activate() 1032 while (!TAILQ_EMPTY(&port->socks)) { in dns_deactivate() 1034 TAILQ_REMOVE(&port->socks, sock, link); in dns_deactivate() [all …]
|
| /freebsd-14.2/usr.sbin/lpr/lpd/ |
| H A D | lpd.c | 865 int error, maxs, *s, *socks; in socksetup() local 881 socks = malloc((maxs + 1) * sizeof(int)); in socksetup() 882 if (!socks) { in socksetup() 887 *socks = 0; /* num of sockets counter at start of array */ in socksetup() 888 s = socks + 1; in socksetup() 922 (*socks)++; in socksetup() 929 if (*socks == 0) { in socksetup() 931 free(socks); in socksetup() 934 return(socks); in socksetup()
|
| /freebsd-14.2/sys/netgraph/ |
| H A D | ng_socketvar.h | 49 LIST_ENTRY(ngpcb) socks; /* linked list of sockets */
|
| H A D | ng_socket.c | 628 LIST_INSERT_HEAD(&ngsocklist, pcbp, socks); in ng_attach_common() 665 LIST_REMOVE(pcbp, socks); in ng_detach_common()
|
| /freebsd-14.2/usr.bin/nc/ |
| H A D | Makefile | 7 SRCS= netcat.c atomicio.c socks.c
|
| /freebsd-14.2/usr.bin/sockstat/ |
| H A D | sockstat.c | 151 static RB_HEAD(socks_t, sock) socks = RB_INITIALIZER(&socks); 516 RB_INSERT(socks_t, &socks, sock); in gather_sctp() 641 RB_INSERT(socks_t, &socks, sock); in gather_sctp() 803 RB_INSERT(socks_t, &socks, sock); in gather_inet() 896 RB_INSERT(socks_t, &socks, sock); in gather_unix() 1212 sp = RB_FIND(socks_t, &socks, &(struct sock) in displaysock() 1356 s = RB_FIND(socks_t, &socks, in display() 1387 RB_FOREACH(s, socks_t, &socks) { in display()
|
| /freebsd-14.2/crypto/openssh/ |
| H A D | auth-pam.c | 803 int result, socks[2]; in sshpam_init_ctx() local 823 if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, socks) == -1) { in sshpam_init_ctx() 828 ctxt->pam_psock = socks[0]; in sshpam_init_ctx() 829 ctxt->pam_csock = socks[1]; in sshpam_init_ctx() 834 close(socks[0]); in sshpam_init_ctx() 835 close(socks[1]); in sshpam_init_ctx()
|
| H A D | channels.c | 5023 int gaierr, n, num_socks = 0, socks[NUM_SOCKS]; in x11_create_display_inet() local 5072 close(socks[n]); in x11_create_display_inet() 5076 socks[num_socks++] = sock; in x11_create_display_inet() 5090 sock = socks[n]; in x11_create_display_inet() 5101 sock = socks[n]; in x11_create_display_inet()
|
| /freebsd-14.2/usr.bin/netstat/ |
| H A D | netgraph.c | 95 next = LIST_NEXT(&ngpcb, socks); in netgraphprotopr()
|
| /freebsd-14.2/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-14.2/libexec/ftpd/ |
| H A D | ftpd.c | 3389 int error, maxs, *s, *socks; in socksetup() local 3407 socks = malloc((maxs + 1) * sizeof(int)); in socksetup() 3408 if (!socks) { in socksetup() 3414 *socks = 0; /* num of sockets counter at start of array */ in socksetup() 3415 s = socks + 1; in socksetup() 3437 (*socks)++; in socksetup() 3444 if (*socks == 0) { in socksetup() 3446 free(socks); in socksetup() 3449 return(socks); in socksetup()
|
| /freebsd-14.2/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-14.2/usr.sbin/services_mkdb/ |
| H A D | services | 1507 socks 1080/tcp 1508 socks 1080/udp
|
| /freebsd-14.2/share/dict/ |
| H A D | web2a | 6655 bobby socks
|