Lines Matching defs:pollfds
811 struct pollfd pollfds[4];
816 pollfds[0].fd = stdout_fd;
817 pollfds[0].events = POLLIN | POLLRDNORM | POLLRDBAND | POLLPRI;
820 pollfds[1].fd = stderr_fd;
821 pollfds[1].events = pollfds[0].events;
824 pollfds[2].fd = STDIN_FILENO;
825 pollfds[2].events = pollfds[0].events;
828 pollfds[3].fd = sig_fd;
829 pollfds[3].events = pollfds[0].events;
832 pollfds[0].revents = pollfds[1].revents =
833 pollfds[2].revents = pollfds[3].revents = 0;
849 ret = poll(pollfds,
850 sizeof (pollfds) / sizeof (struct pollfd), -1);
862 if (pollfds[0].revents) {
863 if (pollfds[0].revents &
869 pollerr = pollfds[0].revents;
875 if (pollfds[1].revents) {
876 if (pollfds[1].revents &
882 pollerr = pollfds[1].revents;
888 if (pollfds[2].revents) {
889 if (pollfds[2].revents &
911 pollfds[2].fd = -1;
919 } else if (raw_mode && pollfds[2].revents & POLLHUP) {
932 pollfds[2].fd = -1;
939 pollerr = pollfds[2].revents;
951 pollfds[0].revents = pollfds[1].revents = 0;
952 (void) poll(pollfds, 2, 100);
953 if (pollfds[0].revents &
960 if (pollfds[1].revents &