Lines Matching refs:POLL_NETOUT
92 #define POLL_NETOUT 1 macro
803 pfd[POLL_NETOUT].fd = net_fd; in readwrite()
804 pfd[POLL_NETOUT].events = 0; in readwrite()
822 if (pfd[POLL_NETOUT].fd == -1 && pfd[POLL_STDOUT].fd == -1) { in readwrite()
869 if (pfd[POLL_NETOUT].revents & POLLHUP) { in readwrite()
871 shutdown(pfd[POLL_NETOUT].fd, SHUT_WR); in readwrite()
872 pfd[POLL_NETOUT].fd = -1; in readwrite()
878 if (pfd[POLL_NETOUT].fd == -1) in readwrite()
896 pfd[POLL_NETOUT].events = POLLOUT; in readwrite()
902 if (pfd[POLL_NETOUT].revents & POLLOUT && stdinbufpos > 0) { in readwrite()
903 ret = drainbuf(pfd[POLL_NETOUT].fd, stdinbuf, in readwrite()
906 pfd[POLL_NETOUT].fd = -1; in readwrite()
909 pfd[POLL_NETOUT].events = 0; in readwrite()
952 if (pfd[POLL_NETOUT].fd != -1 && Nflag) in readwrite()
953 shutdown(pfd[POLL_NETOUT].fd, SHUT_WR); in readwrite()
954 pfd[POLL_NETOUT].fd = -1; in readwrite()