Lines Matching defs:POLL_STDOUT
83 #define POLL_STDOUT 3
883 pfd[POLL_STDOUT].fd = (tun_fd != -1) ? tun_fd : stdout_fd;
884 pfd[POLL_STDOUT].events = 0;
896 if (pfd[POLL_NETOUT].fd == -1 && pfd[POLL_STDOUT].fd == -1) {
956 if (pfd[POLL_STDOUT].revents & POLLHUP)
957 pfd[POLL_STDOUT].fd = -1;
962 if (pfd[POLL_STDOUT].fd == -1) {
1008 pfd[POLL_STDOUT].events = POLLOUT;
1018 if (pfd[POLL_STDOUT].revents & POLLOUT && netinbufpos > 0) {
1019 ret = drainbuf(pfd[POLL_STDOUT].fd, netinbuf,
1022 pfd[POLL_STDOUT].fd = -1;
1025 pfd[POLL_STDOUT].events = 0;
1044 pfd[POLL_STDOUT].fd = -1;