| /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 | 1351 int newsock, rc; local 1366 if ((newsock = accept(fd, (struct sockaddr *)&frominet, 1385 request_init(&req, RQ_DAEMON, appname, RQ_FILE, newsock, NULL); 1389 shutdown(newsock, SHUT_RDWR); 1390 close(newsock); 1396 if ((fcntl(newsock, F_SETFL, O_NONBLOCK)) == -1) { 1404 close(newsock); 1408 if (!SSL_set_fd(ssl, newsock)) { 1410 newsock, ERR_error_string(ERR_get_error(), NULL)); 1412 close(newsock); [all...] |
| /src/crypto/external/bsd/openssh/dist/ |
| sshd.c | 922 server_accept_loop(int *sock_in, int *sock_out, int *newsock, int *config_s, 1133 *newsock = accept(listen_socks[i], 1135 if (*newsock == -1) { 1144 if (unset_nonblock(*newsock) == -1) { 1145 close(*newsock); 1152 close(*newsock); 1155 if (drop_connection(*newsock, 1157 close(*newsock); 1175 *sock_in = *newsock; 1176 *sock_out = *newsock; 1295 int sock_in = -1, sock_out = -1, newsock = -1, rexec_argc = 0; local [all...] |
| channels.c | 1932 int r, newsock, oerrno, remote_port; local 1941 newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen); 1949 if (newsock == -1) { 1957 set_nodelay(newsock); 1958 remote_ipaddr = get_peer_ipaddr(newsock); 1959 remote_port = get_peer_port(newsock); 1964 SSH_CHANNEL_OPENING, newsock, newsock, -1, 2049 int newsock, nextstate; local 2077 newsock = accept(c->sock, (struct sockaddr *)&addr, &addrlen) 2107 int r, newsock; local 2569 int newsock; local [all...] |