Lines Matching refs:fds
62 pollfd fds = {.fd = fd, .events = POLLIN}; in waitForReading() local
63 return TEMP_FAILURE_RETRY(poll(&fds, 1, timeoutMs)); in waitForReading()
67 pollfd fds = {.fd = fd, .events = POLLOUT}; in waitForWriting() local
68 return TEMP_FAILURE_RETRY(poll(&fds, 1, timeoutMs)); in waitForWriting()
323 pollfd fds[2] = { in sslConnectV2() local
331 fds[SSLFD].events = POLLIN; in sslConnectV2()
334 fds[SSLFD].events = POLLOUT; in sslConnectV2()
342 int n = TEMP_FAILURE_RETRY(poll(fds, std::size(fds), mConnectTimeoutMs)); in sslConnectV2()
348 if (fds[EVENTFD].revents & (POLLIN | POLLERR)) { in sslConnectV2()
352 if (fds[SSLFD].revents & POLLERR) { in sslConnectV2()
425 struct pollfd fds[2] = { { .fd = -1 }, { .fd = -1 } }; in loop() local
429 fds[SSLFD].fd = mSslFd.get(); in loop()
430 fds[SSLFD].events = POLLIN; in loop()
437 fds[SSLFD].events |= POLLOUT; in loop()
439 fds[EVENTFD].fd = mEventFd.get(); in loop()
440 fds[EVENTFD].events = POLLIN; in loop()
443 const int s = TEMP_FAILURE_RETRY(poll(fds, std::size(fds), timeout_msecs)); in loop()
452 if (fds[SSLFD].revents & (POLLIN | POLLERR | POLLHUP)) { in loop()
470 if (fds[EVENTFD].revents & (POLLIN | POLLERR)) { in loop()
488 } else if (fds[SSLFD].revents & POLLOUT) { in loop()