Lines Matching refs:fds
204 struct pollfd fds = { 0 };
206 fds.fd = client_fd;
207 fds.events = POLLIN | POLLERR |
210 if (poll(&fds, 1, -1) < 0)
213 if (fds.revents & POLLERR) {
218 if (fds.revents & POLLIN) {
223 bytes_read = read(fds.fd, data, buf_size_bytes);
238 if (fds.revents & (POLLHUP | POLLRDHUP))
319 struct pollfd fds = { 0 };
321 fds.fd = fd;
323 if (poll(&fds, 1, -1) < 0) {
328 if (!(fds.revents & POLLERR)) {