Lines Matching refs:pollfds
718 struct pollfd pollfds[4]; in do_console_io() local
728 pollfds[0].fd = consfd; in do_console_io()
729 pollfds[0].events = POLLIN | POLLRDNORM | POLLRDBAND | in do_console_io()
733 pollfds[1].fd = clifd; in do_console_io()
734 pollfds[1].events = pollfds[0].events; in do_console_io()
737 pollfds[2].fd = servfd; in do_console_io()
738 pollfds[2].events = pollfds[0].events; in do_console_io()
741 pollfds[3].fd = eventstream[1]; in do_console_io()
742 pollfds[3].events = pollfds[0].events; in do_console_io()
745 pollfds[0].revents = pollfds[1].revents = 0; in do_console_io()
746 pollfds[2].revents = pollfds[3].revents = 0; in do_console_io()
748 ret = poll(pollfds, in do_console_io()
749 sizeof (pollfds) / sizeof (struct pollfd), -1); in do_console_io()
757 if (pollfds[0].revents) { in do_console_io()
758 if (pollfds[0].revents & in do_console_io()
771 pollerr = pollfds[0].revents; in do_console_io()
780 if (pollfds[1].revents) { in do_console_io()
781 if (pollfds[1].revents & in do_console_io()
790 pollerr = pollfds[1].revents; in do_console_io()
799 if (pollfds[2].revents && in do_console_io()
800 (pollfds[2].revents & (POLLIN | POLLRDNORM))) { in do_console_io()
821 pollfds[1].fd = clifd; in do_console_io()
834 if (pollfds[3].revents) { in do_console_io()