/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/kadmin/ |
H A D | kadm_conn.c | 125 spawn_child(krb5_context context, int *socks, argument 138 s = accept(socks[this_sock], sa, &sa_size); 159 rk_closesocket(socks[i]); 173 krb5_socket_t *socks, unsigned int num_socks) 184 if (socks[i] >= FD_SETSIZE) 187 FD_SET(socks[i], &orig_read_set); 188 max_fd = max(max_fd, socks[i]); 210 if(FD_ISSET(socks[i], &read_set)) 211 if(spawn_child(context, socks, num_socks, i) == 0) 231 krb5_socket_t *socks local 172 wait_for_connection(krb5_context context, krb5_socket_t *socks, unsigned int num_socks) argument [all...] |
/netbsd-6-1-5-RELEASE/dist/pf/sbin/pflogd/ |
H A D | privsep.c | 77 int i, fd, socks[2], cmd; local 85 if (socketpair(AF_LOCAL, SOCK_STREAM, PF_UNSPEC, socks) == -1) 123 close(socks[0]); 124 priv_fd = socks[1]; 138 close(socks[1]); 141 if (may_read(socks[0], &cmd, sizeof(int))) 147 must_read(socks[0], &snaplen, sizeof(int)); 156 must_write(socks[0], &ret, sizeof(int)); 167 send_fd(socks[0], fd); 180 must_write(socks[ [all...] |
/netbsd-6-1-5-RELEASE/usr.sbin/lpr/lpd/ |
H A D | lpd.c | 150 struct pollfd *socks; local 285 socks = socksetup(PF_UNSPEC, options, port, &nfds); 316 rv = poll(socks, nfds, INFTIM); 324 if (socks[i].revents & POLLIN) { 326 s = accept(socks[i].fd, 344 (void)close(socks[i].fd); 712 struct pollfd *socks, *newsocks; local 717 socks = malloc(1 * sizeof(socks[0])); 718 if (!socks) { [all...] |
/netbsd-6-1-5-RELEASE/dist/ipf/perl/ |
H A D | logfilter.pl | 174 tcp 1080 socks.log 175 udp 1080 socks.log
|
/netbsd-6-1-5-RELEASE/libexec/identd/ |
H A D | identd.c | 91 int IPv4or6, ch, error, i, *socks, timeout; local 102 socks = NULL; 241 socks = socketsetup(address, portno, IPv4or6); 261 rfds = malloc(*socks * sizeof(struct pollfd)); 264 nfds = *socks; 266 rfds[i].fd = socks[i+1]; 575 int error, maxs, *s, *socks; local 593 socks = malloc((maxs + 1) * sizeof(int)); 594 if (socks == NULL) { 599 *socks [all...] |
/netbsd-6-1-5-RELEASE/usr.sbin/syslogd/ |
H A D | tls.c | 818 struct socketEvent *s, *socks; local 840 socks = malloc((maxs+1) * sizeof(*socks)); 841 if (!socks) { 846 socks->fd = 0; /* num of sockets counter at start of array */ 847 s = socks + 1; 883 socks->fd = socks->fd + 1; /* num counter */ 887 if (socks->fd == 0) { 888 free (socks); [all...] |
H A D | syslogd.c | 180 int SecureMode = 0; /* listen only on unix domain socks */ 3945 struct socketEvent *s, *socks; local 3964 socks = calloc(maxs+1, sizeof(*socks)); 3965 if (!socks) { 3970 socks->fd = 0; /* num of sockets counter at start of array */ 3971 s = socks + 1; 4004 socks->fd++; /* num counter */ 4010 if (socks->fd == 0) { 4011 free (socks); [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssh/dist/ |
H A D | auth-pam.c | 691 int socks[2]; local 710 if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, socks) == -1) { 715 ctxt->pam_psock = socks[0]; 716 ctxt->pam_csock = socks[1]; 720 close(socks[0]); 721 close(socks[1]);
|
H A D | channels.c | 3291 int gaierr, n, num_socks = 0, socks[NUM_SOCKS]; local 3325 close(socks[n]); 3330 socks[num_socks++] = sock; 3344 sock = socks[n]; 3355 sock = socks[n];
|
/netbsd-6-1-5-RELEASE/external/bsd/iscsi/dist/src/lib/ |
H A D | 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) {
|
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/bin/named/ |
H A D | main.c | 583 unsigned int socks; local 629 result = isc_socketmgr_getmaxsockets(ns_g_socketmgr, &socks); 633 ISC_LOG_INFO, "using up to %u sockets", socks);
|
/netbsd-6-1-5-RELEASE/libexec/ftpd/ |
H A D | ftpd.c | 500 int error, fd, i, n, *socks; local 530 socks = malloc(n * sizeof(int)); 532 if (socks == NULL || fds == NULL) { 538 socks[n] = socket(res->ai_family, res->ai_socktype, 540 if (socks[n] == -1) 542 (void)setsockopt(socks[n], SOL_SOCKET, SO_REUSEADDR, 544 if (bind(socks[n], res->ai_addr, res->ai_addrlen) 546 (void)close(socks[n]); 549 if (listen(socks[n], 12) == -1) { 550 (void)close(socks[ [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/util/ |
H A D | mk1mf.pl | 121 no-socks - No socket code
|