/freebsd-10.0-release/tools/regression/sockets/unix_socket/ |
H A D | unix_socket.c | 45 int sock, socks[2]; local 65 if (socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) < 0) 66 err(-1, "socketpair(PF_LOCAL, SOCK_STREAM, 0, socks)"); 67 if (socks[0] < 0) 68 errx(-1, "socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) [0] < 0"); 69 if (socks[1] < 0) 70 errx(-1, "socketpair(PF_LOCAL, SOCK_STREAM, 0, socks) [1] < 1"); 71 close(socks[0]); 72 close(socks[1]); 74 if (socketpair(PF_LOCAL, SOCK_DGRAM, 0, socks) < [all...] |
/freebsd-10.0-release/tools/regression/sockets/rtsocket/ |
H A D | rtsocket.c | 46 int sock, socks[2]; local 73 if (socketpair(PF_ROUTE, SOCK_STREAM, 0, socks) == 0) { 74 close(socks[0]); 75 close(socks[1]); 77 "socketpair(PF_ROUTE, SOCK_STREAM, 0, socks) success"); 81 err(-1, "socketpair(PF_ROUTE, SOCK_STREAM, 0, socks)"); 83 if (socketpair(PF_ROUTE, SOCK_DGRAM, 0, socks) == 0) { 84 close(socks[0]); 85 close(socks[1]); 87 "socketpair(PF_ROUTE, SOCK_DGRAM, 0, socks) succes [all...] |
/freebsd-10.0-release/sys/netgraph/ |
H A D | ng_socketvar.h | 51 LIST_ENTRY(ngpcb) socks; /* linked list of sockets */ member in struct:ngpcb
|
H A D | ng_socket.c | 606 LIST_INSERT_HEAD(&ngsocklist, pcbp, socks); 643 LIST_REMOVE(pcbp, socks);
|
/freebsd-10.0-release/crypto/heimdal/kadmin/ |
H A D | kadm_conn.c | 123 spawn_child(krb5_context contextp, int *socks, argument 137 s = accept(socks[this_sock], sa, &sa_size); 158 rk_closesocket(socks[i]); 172 krb5_socket_t *socks, unsigned int num_socks) 183 if (socks[i] >= FD_SETSIZE) 186 FD_SET(socks[i], &orig_read_set); 187 max_fd = max(max_fd, socks[i]); 209 if(FD_ISSET(socks[i], &read_set)) 210 if(spawn_child(contextp, socks, num_socks, i) == 0) 230 krb5_socket_t *socks local 171 wait_for_connection(krb5_context contextp, krb5_socket_t *socks, unsigned int num_socks) argument [all...] |
/freebsd-10.0-release/usr.bin/nc/ |
H A D | Makefile | 6 SRCS= netcat.c atomicio.c socks.c
|
/freebsd-10.0-release/usr.bin/logger/ |
H A D | logger.c | 66 struct socks { struct 183 static struct socks *socks; local 208 socks = malloc(maxs * sizeof(struct socks)); 209 if (!socks) 216 memcpy(&socks[nsock].addr, r->ai_addr, r->ai_addrlen); 217 socks[nsock].addrlen = r->ai_addrlen; 218 socks[nsock++].sock = sock; 230 lsent = sendto(socks[ [all...] |
/freebsd-10.0-release/contrib/pf/pflogd/ |
H A D | privsep.c | 72 int i, fd, socks[2], cmd; local 84 if (socketpair(AF_LOCAL, SOCK_STREAM, PF_UNSPEC, socks) == -1) 112 close(socks[0]); 113 priv_fd = socks[1]; 127 close(socks[1]); 130 if (may_read(socks[0], &cmd, sizeof(int))) 136 must_read(socks[0], &snaplen, sizeof(int)); 145 must_write(socks[0], &ret, sizeof(int)); 156 send_fd(socks[0], fd); 169 must_write(socks[ [all...] |
/freebsd-10.0-release/crypto/heimdal/appl/telnet/libtelnet/ |
H A D | misc.c | 43 #include <socks.h>
|
H A D | auth.c | 74 #include <socks.h>
|
H A D | rsaencpwd.c | 82 #include <socks.h>
|
H A D | enc_des.c | 47 #include <socks.h>
|
H A D | spx.c | 85 #include <socks.h>
|
H A D | encrypt.c | 69 #include <socks.h>
|
/freebsd-10.0-release/crypto/heimdal/appl/ftp/ftp/ |
H A D | ftp_locl.h | 116 #include <socks.h>
|
/freebsd-10.0-release/usr.sbin/lpr/lpd/ |
H A D | lpd.c | 861 int error, maxs, *s, *socks; local 877 socks = malloc((maxs + 1) * sizeof(int)); 878 if (!socks) { 883 *socks = 0; /* num of sockets counter at start of array */ 884 s = socks + 1; 918 (*socks)++; 925 if (*socks == 0) { 927 free(socks); 930 return(socks);
|
/freebsd-10.0-release/crypto/heimdal/appl/ftp/ftpd/ |
H A D | ftpd_locl.h | 157 #include <socks.h>
|
/freebsd-10.0-release/crypto/heimdal/appl/telnet/telnet/ |
H A D | telnet_locl.h | 157 #include <socks.h>
|
/freebsd-10.0-release/crypto/heimdal/appl/telnet/telnetd/ |
H A D | telnetd.h | 186 #include <socks.h>
|
/freebsd-10.0-release/usr.bin/netstat/ |
H A D | netgraph.c | 139 next = LIST_NEXT(&ngpcb, socks);
|
/freebsd-10.0-release/crypto/openssh/ |
H A D | auth-pam.c | 673 int socks[2]; local 692 if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, socks) == -1) { 697 ctxt->pam_psock = socks[0]; 698 ctxt->pam_csock = socks[1]; 702 close(socks[0]); 703 close(socks[1]);
|
/freebsd-10.0-release/contrib/lukemftpd/ |
H A D | configure | 35 --with-socks Compile with SOCKS firewall traversal support." 1561 # Check whether --with-socks or --without-socks was given. 1607 socks=5 1614 ac_lib_var=`echo socks'_'Rconnect | sed 'y%./+-%__p_%'` 1648 socks=4 1653 { echo "configure: error: Could not find socks library. You must first install socks." 1>&2; exit 1; } 1667 if test "x$socks" = "x"; then 1680 socks [all...] |
/freebsd-10.0-release/libexec/ftpd/ |
H A D | ftpd.c | 3431 int error, maxs, *s, *socks; 3449 socks = malloc((maxs + 1) * sizeof(int)); 3450 if (!socks) { 3456 *socks = 0; /* num of sockets counter at start of array */ 3457 s = socks + 1; 3479 (*socks)++; 3486 if (*socks == 0) { 3488 free(socks); 3491 return(socks);
|
/freebsd-10.0-release/usr.sbin/syslogd/ |
H A D | syslogd.c | 282 static int SecureMode; /* when true, receive only unix domain socks */ 2632 int error, maxs, *s, *socks; local 2676 socks = malloc((maxs+1) * sizeof(int)); 2677 if (socks == NULL) { 2682 *socks = 0; /* num of sockets counter at start of array */ 2683 s = socks + 1; 2726 (*socks)++; 2730 if (*socks == 0) { 2731 free(socks); 2740 return (socks); [all...] |
/freebsd-10.0-release/contrib/lukemftpd/src/ |
H A D | ftpd.c | 493 int error, fd, i, n, *socks; local 523 socks = malloc(n * sizeof(int)); 525 if (socks == NULL || fds == NULL) { 531 socks[n] = socket(res->ai_family, res->ai_socktype, 533 if (socks[n] == -1) 535 (void)setsockopt(socks[n], SOL_SOCKET, SO_REUSEADDR, 537 if (bind(socks[n], res->ai_addr, res->ai_addrlen) 539 (void)close(socks[n]); 542 if (listen(socks[n], 12) == -1) { 543 (void)close(socks[ [all...] |