Lines Matching refs:confd
907 int confd; in check_dns_listeners() local
911 while ((confd = accept(listener->tcpfd, NULL, NULL)) == -1 && errno == EINTR) in check_dns_listeners()
914 if (confd == -1) continue; in check_dns_listeners()
929 getsockname(confd, (struct sockaddr*) &tcp_addr, &tcp_len) != -1) in check_dns_listeners()
935 shutdown(confd, SHUT_RDWR); in check_dns_listeners()
936 close(confd); in check_dns_listeners()
948 close(confd); in check_dns_listeners()
969 if ((flags = fcntl(confd, F_GETFL, 0)) != -1) in check_dns_listeners()
970 fcntl(confd, F_SETFL, flags & ~O_NONBLOCK); in check_dns_listeners()
974 buff = tcp_request(confd, now, dst_addr_4, iface->netmask); in check_dns_listeners()
976 shutdown(confd, SHUT_RDWR); in check_dns_listeners()
977 close(confd); in check_dns_listeners()