/src/usr.sbin/altq/altqd/ |
altqd.c | 276 int newsock = accept(qpsock, NULL, NULL); local in function:main 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 in function:answer 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/usr.sbin/syslogd/ |
tls.c | 1351 int newsock, rc; local in function:dispatch_socket_accept 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...] |