Lines Matching refs:fds
306 static struct pollfd *fds;
315 fds = reallocarray(fds, nfds, sizeof(struct pollfd));
316 if (fds == NULL)
357 fds[i].fd = l->fd;
358 fds[i].events = POLLIN;
368 fds[i].fd = syncfd;
369 fds[i].events = POLLIN;
373 switch (poll(fds, nfds, to_msec)) {
386 if ((fds[i].revents & (POLLIN | POLLHUP))) {
395 if ((syncfd != -1) && (fds[i].revents & (POLLIN | POLLHUP)))