Lines Matching refs:pfd
103 struct pollfd pfd;
108 pfd.fd = sss_cli_sd;
109 pfd.events = POLLOUT;
113 res = poll(&pfd, 1, SSS_CLI_SOCKET_TIMEOUT);
130 if (pfd.revents & (POLLERR | POLLHUP | POLLNVAL)) {
133 if (!(pfd.revents & POLLOUT)) {
212 struct pollfd pfd;
216 pfd.fd = sss_cli_sd;
217 pfd.events = POLLIN;
221 res = poll(&pfd, 1, SSS_CLI_SOCKET_TIMEOUT);
238 if (pfd.revents & (POLLHUP)) {
241 if (pfd.revents & (POLLERR | POLLNVAL)) {
244 if (!(pfd.revents & POLLIN)) {
563 struct pollfd pfd;
576 pfd.fd = sd;
577 pfd.events = POLLOUT;
579 ret = poll(&pfd, 1, SSS_CLI_SOCKET_TIMEOUT - wait_time);
649 struct pollfd pfd;
653 pfd.fd = sss_cli_sd;
654 pfd.events = POLLIN | POLLOUT;
658 res = poll(&pfd, 1, SSS_CLI_SOCKET_TIMEOUT);
675 if (pfd.revents & (POLLERR | POLLHUP | POLLNVAL)) {
678 if (!(pfd.revents & (POLLIN | POLLOUT))) {