- int fd;
-
- epoll_fd = epoll_create (256);
- fcntl (epoll_fd, F_SETFD, FD_CLOEXEC);
-
- /* re-register interest in fds */
- for (fd = 0; fd < anfdmax; ++fd)
- if (anfds [fd].events && !(anfds [fd].events & EV_REIFY))//D
- epoll_modify (fd, EV_NONE, anfds [fd].events);
-}
-
-static struct epoll_event *events;
-static int eventmax;
-
-static void
-epoll_poll (ev_tstamp timeout)
-{
- int eventcnt = epoll_wait (epoll_fd, events, eventmax, ceil (timeout * 1000.));