Lines Matching refs:POLL_STDIN
80 #define POLL_STDIN 0 macro
872 pfd[POLL_STDIN].fd = (tun_fd != -1) ? tun_fd : stdin_fd; in readwrite()
873 pfd[POLL_STDIN].events = POLLIN; in readwrite()
889 if (pfd[POLL_STDIN].fd == -1 && pfd[POLL_NETIN].fd == -1 in readwrite()
941 if (pfd[POLL_STDIN].events & POLLIN && in readwrite()
942 pfd[POLL_STDIN].revents & POLLHUP && in readwrite()
943 ! (pfd[POLL_STDIN].revents & POLLIN)) in readwrite()
944 pfd[POLL_STDIN].fd = -1; in readwrite()
961 pfd[POLL_STDIN].fd = -1; in readwrite()
970 if (pfd[POLL_STDIN].revents & POLLIN && stdinbufpos < BUFSIZE) { in readwrite()
971 ret = fillbuf(pfd[POLL_STDIN].fd, stdinbuf, in readwrite()
975 pfd[POLL_STDIN].fd = -1; in readwrite()
981 pfd[POLL_STDIN].events = 0; in readwrite()
994 pfd[POLL_STDIN].events = POLLIN; in readwrite()
1033 if (pfd[POLL_STDIN].fd == -1 && stdinbufpos == 0) { in readwrite()