Lines Matching defs:POLL_NETIN
82 #define POLL_NETIN 2
879 pfd[POLL_NETIN].fd = net_fd;
880 pfd[POLL_NETIN].events = POLLIN;
888 if (pfd[POLL_STDIN].fd == -1 && pfd[POLL_NETIN].fd == -1
903 if (lflag && pfd[POLL_NETIN].fd == -1
945 if (pfd[POLL_NETIN].events & POLLIN &&
946 pfd[POLL_NETIN].revents & POLLHUP &&
947 ! (pfd[POLL_NETIN].revents & POLLIN))
948 pfd[POLL_NETIN].fd = -1;
963 if (pfd[POLL_NETIN].fd != -1)
964 shutdown(pfd[POLL_NETIN].fd, SHUT_RD);
965 pfd[POLL_NETIN].fd = -1;
996 if (pfd[POLL_NETIN].revents & POLLIN && netinbufpos < BUFSIZE) {
997 ret = fillbuf(pfd[POLL_NETIN].fd, netinbuf,
1000 pfd[POLL_NETIN].fd = -1;
1003 shutdown(pfd[POLL_NETIN].fd, SHUT_RD);
1004 pfd[POLL_NETIN].fd = -1;
1011 pfd[POLL_NETIN].events = 0;
1014 atelnet(pfd[POLL_NETIN].fd, netinbuf,
1028 pfd[POLL_NETIN].events = POLLIN;
1043 if (pfd[POLL_NETIN].fd == -1 && netinbufpos == 0) {