| /src/usr.bin/nc/ |
| Makefile | 7 SRCS= netcat.c atomicio.c socks.c
|
| /src/crypto/external/bsd/heimdal/dist/kadmin/ |
| kadm_conn.c | 127 spawn_child(krb5_context contextp, int *socks, 141 s = accept(socks[this_sock], sa, &sa_size); 162 rk_closesocket(socks[i]); 176 krb5_socket_t *socks, unsigned int num_socks) 187 if (socks[i] >= FD_SETSIZE) 190 FD_SET(socks[i], &orig_read_set); 191 max_fd = max(max_fd, socks[i]); 214 if(FD_ISSET(socks[i], &read_set)) 215 if(spawn_child(contextp, socks, num_socks, i) == 0) 235 krb5_socket_t *socks = NULL, *tmp local [all...] |
| /src/dist/pf/sbin/pflogd/ |
| privsep.c | 78 int i, fd, socks[2], cmd; local 86 if (socketpair(AF_LOCAL, SOCK_STREAM, PF_UNSPEC, socks) == -1) 124 close(socks[0]); 125 priv_fd = socks[1]; 139 close(socks[1]); 142 if (may_read(socks[0], &cmd, sizeof(int))) 148 must_read(socks[0], &snaplen, sizeof(int)); 157 must_write(socks[0], &ret, sizeof(int)); 168 send_fd(socks[0], fd); 181 must_write(socks[0], &ret, sizeof(int)) [all...] |
| /src/usr.sbin/lpr/lpd/ |
| lpd.c | 149 struct pollfd *socks; local 284 socks = socksetup(PF_UNSPEC, options, port, &nfds); 315 rv = poll(socks, nfds, INFTIM); 323 if (socks[i].revents & POLLIN) { 325 s = accept(socks[i].fd, 343 (void)close(socks[i].fd); 711 struct pollfd *socks, *newsocks; local 716 socks = malloc(1 * sizeof(socks[0])); 717 if (!socks) { [all...] |
| /src/libexec/identd/ |
| identd.c | 97 int IPv4or6, ch, error, i, *socks, timeout; local 108 socks = NULL; 250 socks = socketsetup(address, portno, IPv4or6); 270 rfds = malloc(*socks * sizeof(struct pollfd)); 273 nfds = *socks; 275 rfds[i].fd = socks[i+1]; 584 int error, maxs, *s, *socks; local 602 socks = malloc((maxs + 1) * sizeof(int)); 603 if (socks == NULL) { 608 *socks = 0 [all...] |
| /src/external/bsd/ipf/dist/perl/ |
| logfilter.pl | 174 tcp 1080 socks.log 175 udp 1080 socks.log
|
| /src/usr.sbin/syslogd/ |
| tls.c | 838 struct socketEvent *s, *socks; local 860 socks = malloc((maxs+1) * sizeof(*socks)); 861 if (!socks) { 866 socks->fd = 0; /* num of sockets counter at start of array */ 867 s = socks + 1; 904 socks->fd = socks->fd + 1; /* num counter */ 908 if (socks->fd == 0) { 909 FREEPTR(socks); [all...] |
| syslogd.c | 186 int SecureMode = 0; /* listen only on unix domain socks */ 4137 struct socketEvent *s, *socks; local 4156 socks = calloc(maxs+1, sizeof(*socks)); 4157 if (!socks) { 4162 socks->fd = 0; /* num of sockets counter at start of array */ 4163 s = socks + 1; 4197 socks->fd++; /* num counter */ 4203 if (socks->fd == 0) { 4204 free (socks); [all...] |
| /src/crypto/external/bsd/openssh/dist/ |
| auth-pam.c | 825 int result, socks[2]; local 845 if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, socks) == -1) { 850 ctxt->pam_psock = socks[0]; 851 ctxt->pam_csock = socks[1]; 856 close(socks[0]); 857 close(socks[1]);
|
| channels.c | 1841 debug2_f("channel %d: unknown SOCKS version %u", c->self, ver); 1907 /* send socks request to peer */ 5018 /* Return RDYNAMIC_OPEN channel: channel allows SOCKS, but is not connected */ 5032 * so that we can get SOCKS header from peer. 5099 int gaierr, n, num_socks = 0, socks[NUM_SOCKS]; local 5136 close(socks[n]); 5140 socks[num_socks++] = sock; 5154 sock = socks[n]; 5165 sock = socks[n];
|
| /src/external/bsd/iscsi/dist/src/lib/ |
| util.c | 689 struct pollfd socks[ISCSI_MAXSOCK]; local 694 socks[i].fd = sockv[i]; 695 socks[i].events = POLLIN; 696 socks[i].revents = 0; 698 switch(poll(socks, (unsigned)sockc, INFTIM)) { 707 if (socks[i].revents & POLLIN) {
|
| /src/libexec/ftpd/ |
| ftpd.c | 510 int error, fd, i, n, *socks; local 540 socks = malloc(n * sizeof(int)); 542 if (socks == NULL || fds == NULL) { 548 socks[n] = socket(res->ai_family, res->ai_socktype, 550 if (socks[n] == -1) 552 (void)setsockopt(socks[n], SOL_SOCKET, SO_REUSEADDR, 554 if (bind(socks[n], res->ai_addr, res->ai_addrlen) 556 (void)close(socks[n]); 559 if (listen(socks[n], 12) == -1) { 560 (void)close(socks[n]) [all...] |
| /src/external/gpl3/gcc.old/dist/libphobos/src/std/ |
| socket.d | 3757 int[2] socks; 3758 if (socketpair(AF_UNIX, SOCK_STREAM, 0, socks) == -1) 3764 s.setSock(cast(socket_t) socks[id]);
|