Lines Matching defs:epfd
89 int epfd;
143 int epfd = -1;
148 epfd = epoll_create1(EPOLL_CLOEXEC);
150 if (epfd == -1) {
153 if ((epfd = epoll_create(32000)) == -1) {
158 evutil_make_socket_closeonexec(epfd);
162 close(epfd);
166 epollop->epfd = epfd;
172 close(epfd);
200 if (epoll_ctl(epollop->epfd, EPOLL_CTL_ADD, fd, &epev) < 0) {
273 if (epoll_ctl(epollop->epfd, op, ch->fd, &epev) == 0) {
292 if (epoll_ctl(epollop->epfd, EPOLL_CTL_ADD, ch->fd, &epev) == -1) {
313 if (epoll_ctl(epollop->epfd, EPOLL_CTL_MOD, ch->fd, &epev) == -1) {
463 res = epoll_wait(epollop->epfd, events, epollop->nevents, timeout);
530 if (epollop->epfd >= 0)
531 close(epollop->epfd);