Lines Matching refs:fds
60 pollfd fds = {.fd = fd, .events = POLLIN}; in waitForReading() local
61 return TEMP_FAILURE_RETRY(poll(&fds, 1, timeoutMs)); in waitForReading()
65 pollfd fds = {.fd = fd, .events = POLLOUT}; in waitForWriting() local
66 return TEMP_FAILURE_RETRY(poll(&fds, 1, timeoutMs)); in waitForWriting()
315 struct pollfd fds[2] = { { .fd = -1 }, { .fd = -1 } }; in loop() local
319 fds[SSLFD].fd = mSslFd.get(); in loop()
320 fds[SSLFD].events = POLLIN; in loop()
327 fds[SSLFD].events |= POLLOUT; in loop()
329 fds[EVENTFD].fd = mEventFd.get(); in loop()
330 fds[EVENTFD].events = POLLIN; in loop()
333 const int s = TEMP_FAILURE_RETRY(poll(fds, std::size(fds), timeout_msecs)); in loop()
342 if (fds[SSLFD].revents & (POLLIN | POLLERR | POLLHUP)) { in loop()
348 if (fds[EVENTFD].revents & (POLLIN | POLLERR)) { in loop()
366 } else if (fds[SSLFD].revents & POLLOUT) { in loop()