Lines Matching defs:servfd
462 int servfd;
470 if ((servfd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) {
476 if (bind(servfd, (struct sockaddr *)&servaddr,
483 if (listen(servfd, 4) == -1) {
488 return (servfd);
492 (void) close(servfd);
497 destroy_console_sock(int servfd)
503 (void) shutdown(servfd, SHUT_RDWR);
504 (void) close(servfd);
577 accept_client(int servfd, pid_t *pid, char *locale, size_t locale_len,
585 connfd = accept(servfd, (struct sockaddr *)&cliaddr, &clilen);
599 reject_client(int servfd, pid_t clientpid)
607 connfd = accept(servfd, (struct sockaddr *)&cliaddr, &clilen);
716 do_console_io(zlog_t *zlogp, int consfd, int servfd)
737 pollfds[2].fd = servfd;
815 reject_client(servfd, clipid);
818 } else if ((clifd = accept_client(servfd, &clipid,