Lines Matching refs:fds
268 int ff_poll(struct pollfd *fds, nfds_t numfds, int timeout)
290 if (fds[i].fd < 0)
293 if (fds[i].fd >= FD_SETSIZE) {
299 if (fds[i].events & POLLIN)
300 FD_SET(fds[i].fd, &read_set);
301 if (fds[i].events & POLLOUT)
302 FD_SET(fds[i].fd, &write_set);
303 if (fds[i].events & POLLERR)
304 FD_SET(fds[i].fd, &exception_set);
306 if (fds[i].fd >= n)
307 n = fds[i].fd + 1;
327 fds[i].revents = 0;
329 if (FD_ISSET(fds[i].fd, &read_set))
330 fds[i].revents |= POLLIN;
331 if (FD_ISSET(fds[i].fd, &write_set))
332 fds[i].revents |= POLLOUT;
333 if (FD_ISSET(fds[i].fd, &exception_set))
334 fds[i].revents |= POLLERR;