Lines Matching defs:pollfds
688 struct pollfd pollfds[4];
697 pollfds[0].fd = consfd;
698 pollfds[0].events = POLLIN | POLLRDNORM | POLLRDBAND |
702 pollfds[1].fd = clifd;
703 pollfds[1].events = pollfds[0].events;
706 pollfds[2].fd = servfd;
707 pollfds[2].events = pollfds[0].events;
710 pollfds[3].fd = eventstream[1];
711 pollfds[3].events = pollfds[0].events;
714 pollfds[0].revents = pollfds[1].revents = 0;
715 pollfds[2].revents = pollfds[3].revents = 0;
717 ret = poll(pollfds,
718 sizeof (pollfds) / sizeof (struct pollfd), -1);
726 if (pollfds[0].revents) {
727 if (pollfds[0].revents &
740 pollerr = pollfds[0].revents;
749 if (pollfds[1].revents) {
750 if (pollfds[1].revents &
759 pollerr = pollfds[1].revents;
768 if (pollfds[2].revents &&
769 (pollfds[2].revents & (POLLIN | POLLRDNORM))) {
789 pollfds[1].fd = clifd;
802 if (pollfds[3].revents) {