Home | History | Annotate | Download | only in netcat

Lines Matching refs:pfd

654 	struct pollfd pfd;
666 pfd.fd = s;
667 pfd.events = POLLOUT;
668 if ((ret = poll(&pfd, 1, timeout)) == 1) {
762 struct pollfd pfd[2];
771 pfd[0].fd = nfd;
772 pfd[0].events = POLLIN;
775 pfd[1].fd = wfd;
776 pfd[1].events = POLLIN;
778 while (pfd[0].fd != -1) {
782 if ((n = poll(pfd, 2 - dflag, timeout)) < 0) {
790 if (pfd[0].revents & POLLIN) {
795 pfd[0].fd = -1;
796 pfd[0].events = 0;
805 if (!dflag && pfd[1].revents & POLLIN) {
810 pfd[1].fd = -1;
811 pfd[1].events = 0;