Lines Matching refs:pollfds
68 static struct pollfd *pollfds = NULL; variable
211 pollfds = (struct pollfd *)calloc(pollfds_count, sizeof(struct pollfd)); in init_pollfds()
212 assert(pollfds); in init_pollfds()
489 memset(pollfds, 0, pollfds_count * sizeof(struct pollfd)); in do_loop()
491 memcpy(pollfds, seqifds, sizeof(*seqifds)*(width = seqifds_count)); in do_loop()
494 pollfds[width].fd = sockfd; in do_loop()
495 pollfds[width].events = POLLIN; in do_loop()
501 pollfds[width].fd = netfd[i]; in do_loop()
502 pollfds[width].events = POLLIN; in do_loop()
507 rc = poll(pollfds, width, -1); in do_loop()
514 if (pollfds[sockfd_ptr].revents & (POLLIN|POLLOUT)) in do_loop()
518 if (pollfds[seqifd_ptr + i].revents & (POLLIN|POLLOUT)) { in do_loop()
526 if (pollfds[netfd_ptr + i].revents & (POLLIN|POLLOUT)) { in do_loop()