Lines Matching refs:nsockfd
381 int ret, nsockfd = 0; in listen_all_addrinfo() local
385 for (ai = ai_head; ai && nsockfd < maxsockfd; ai = ai->ai_next) { in listen_all_addrinfo()
420 sockfdlist[nsockfd++] = sock; in listen_all_addrinfo()
423 return nsockfd; in listen_all_addrinfo()
495 int nsockfd, family; in do_standalone_mode() local
535 nsockfd = listen_all_addrinfo(ai_head, sockfdlist, in do_standalone_mode()
538 if (nsockfd <= 0) { in do_standalone_mode()
544 dbg("listening on %d address%s", nsockfd, (nsockfd == 1) ? "" : "es"); in do_standalone_mode()
546 fds = calloc(nsockfd, sizeof(struct pollfd)); in do_standalone_mode()
547 for (i = 0; i < nsockfd; i++) { in do_standalone_mode()
562 r = ppoll(fds, nsockfd, &timeout, &sigmask); in do_standalone_mode()
567 for (i = 0; i < nsockfd; i++) { in do_standalone_mode()