POLL_NETIN
pfd[POLL_NETIN].fd = net_fd;
pfd[POLL_NETIN].events = POLLIN;
if (pfd[POLL_STDIN].fd == -1 && pfd[POLL_NETIN].fd == -1
if (lflag && pfd[POLL_NETIN].fd == -1
if (pfd[POLL_NETIN].events & POLLIN &&
pfd[POLL_NETIN].revents & POLLHUP &&
! (pfd[POLL_NETIN].revents & POLLIN))
pfd[POLL_NETIN].fd = -1;
if (pfd[POLL_NETIN].fd != -1)
shutdown(pfd[POLL_NETIN].fd, SHUT_RD);
pfd[POLL_NETIN].fd = -1;
if (pfd[POLL_NETIN].revents & POLLIN && netinbufpos < BUFSIZE) {
ret = fillbuf(pfd[POLL_NETIN].fd, netinbuf,
pfd[POLL_NETIN].fd = -1;
shutdown(pfd[POLL_NETIN].fd, SHUT_RD);
pfd[POLL_NETIN].fd = -1;
pfd[POLL_NETIN].events = 0;
atelnet(pfd[POLL_NETIN].fd, netinbuf,
pfd[POLL_NETIN].events = POLLIN;
if (pfd[POLL_NETIN].fd == -1 && netinbufpos == 0) {