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