Lines Matching refs:POLL_STDIN
91 #define POLL_STDIN 0 macro
799 pfd[POLL_STDIN].fd = stdin_fd; in readwrite()
800 pfd[POLL_STDIN].events = POLLIN; in readwrite()
816 if (pfd[POLL_STDIN].fd == -1 && pfd[POLL_NETIN].fd == -1 in readwrite()
859 if (pfd[POLL_STDIN].events & POLLIN && in readwrite()
860 pfd[POLL_STDIN].revents & POLLHUP && in readwrite()
861 ! (pfd[POLL_STDIN].revents & POLLIN)) in readwrite()
862 pfd[POLL_STDIN].fd = -1; in readwrite()
879 pfd[POLL_STDIN].fd = -1; in readwrite()
888 if (pfd[POLL_STDIN].revents & POLLIN && stdinbufpos < BUFSIZE) { in readwrite()
889 ret = fillbuf(pfd[POLL_STDIN].fd, stdinbuf, in readwrite()
893 pfd[POLL_STDIN].fd = -1; in readwrite()
899 pfd[POLL_STDIN].events = 0; in readwrite()
912 pfd[POLL_STDIN].events = POLLIN; in readwrite()
951 if (pfd[POLL_STDIN].fd == -1 && stdinbufpos == 0) { in readwrite()