| /src/usr.sbin/altq/altqd/ |
| altqd.c | 276 int newsock = accept(qpsock, NULL, NULL); local 278 if (newsock == -1) { 282 FD_SET(newsock, &fds); 285 client[i] = fdopen(newsock, "r+"); 288 maxfd = MAX(maxfd, newsock + 1);
|
| /src/games/hunt/huntd/ |
| answer.c | 61 int newsock; local 76 newsock = accept(huntsock, (struct sockaddr *)&newaddr, &socklen); 77 if (newsock < 0) { 112 (void) write(newsock, &version, sizeof(version)); 113 (void) read(newsock, &uid, sizeof(uid)); 115 (void) read(newsock, name, sizeof(name)); 116 (void) read(newsock, &team, 1); 117 (void) read(newsock, &enter_status, sizeof(enter_status)); 119 (void) read(newsock, Ttyname, sizeof(Ttyname)); 120 (void) read(newsock, &mode, sizeof(mode)) [all...] |
| /src/crypto/external/bsd/netpgp/dist/src/hkpd/ |
| hkpd.c | 216 int newsock; local 255 newsock = accept(sock, (struct sockaddr *) &from, &fromlen); 256 cc = read(newsock, buf, sizeof(buf)); 279 (void) close(newsock); 301 response(newsock, code, search, 0, cp, cc, fmt); 315 response(newsock, code, search, 0, cp, cc, fmt); 321 response(newsock, code, search, 1, cp, cc, fmt); 324 (void) close(newsock);
|
| /src/usr.sbin/syslogd/ |
| tls.c | 1365 int newsock, rc; local 1380 if ((newsock = accept(fd, (struct sockaddr *)&frominet, 1399 request_init(&req, RQ_DAEMON, appname, RQ_FILE, newsock, NULL); 1403 shutdown(newsock, SHUT_RDWR); 1404 close(newsock); 1410 if ((fcntl(newsock, F_SETFL, O_NONBLOCK)) == -1) { 1418 close(newsock); 1422 if (!SSL_set_fd(ssl, newsock)) { 1424 newsock, ERR_error_string(ERR_get_error(), NULL)); 1426 close(newsock); [all...] |
| /src/crypto/external/bsd/openssh/dist/ |
| sshd.c | 924 server_accept_loop(int *sock_in, int *sock_out, int *newsock, int *config_s, 1141 *newsock = accept(listen_socks[i], 1143 if (*newsock == -1) { 1152 if (unset_nonblock(*newsock) == -1) { 1153 close(*newsock); 1160 close(*newsock); 1163 if (drop_connection(*newsock, 1165 close(*newsock); 1183 *sock_in = *newsock; 1184 *sock_out = *newsock; 1315 int sock_in = -1, sock_out = -1, newsock = -1, rexec_argc = 0; local [all...] |
| channels.c | 1986 int r, newsock, oerrno, remote_port; local 1995 newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen); 2003 if (newsock == -1) { 2011 set_nodelay(newsock); 2013 set_keepalive(newsock); /* logs errors */ 2014 remote_ipaddr = get_peer_ipaddr(newsock); 2015 remote_port = get_peer_port(newsock); 2020 SSH_CHANNEL_OPENING, newsock, newsock, -1, 2105 int newsock, nextstate local 2166 int r, newsock; local 2631 int newsock; local [all...] |