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