Lines Matching defs:Nfd
242 static struct pollfd *Nfd; /* Array of pollfds for udp ports */
812 nfds = poll(Nfd, Ninputs, -1);
822 if ((Nfd[i].revents & POLLIN) == 0) {
826 if (Nfd[i].revents &
829 (void) t_close(Nfd[i].fd);
830 Nfd[i].fd = -1;
841 if (t_rcvudata(Nfd[i].fd, udp, &flags) < 0) {
844 if (t_rcvuderr(Nfd[i].fd, errp) < 0) {
848 (void) t_close(Nfd[i].fd);
849 Nfd[i].fd = -1;
855 (void) t_close(Nfd[i].fd);
856 Nfd[i].fd = -1;
3672 Nfd = realloc(Nfd, inputs * sizeof (struct pollfd));
3681 if (Nfd == NULL || Ncf == NULL || Myaddrs == NULL ||
3779 Nfd[Ninputs].fd = fd;
3780 Nfd[Ninputs].events = POLLIN;
3858 bound = (struct t_bind *)t_alloc(Nfd[cnt].fd, T_BIND, T_ADDR);
3862 if (t_bind(Nfd[cnt].fd, &bind, bound) == 0) {
3865 set_udp_buffer(Nfd[cnt].fd);
3893 (void) t_close(Nfd[cnt].fd);
3900 Nfd[i] = Nfd[i + 1];
4880 (void) t_close(Nfd[cnt].fd);