Home | History | Annotate | Download | only in c++tools

Lines Matching defs:epoll_fd

456 do_epoll_ctl (int epoll_fd, int code, int event, int fd, unsigned data)
461 if (epoll_ctl (epoll_fd, code, fd, &ev))
505 bool process_server (Cody::Server *server, unsigned slot, int epoll_fd)
529 my_epoll_ctl (epoll_fd, EPOLL_CTL_MOD,
536 void close_server (Cody::Server *server, int epoll_fd)
538 my_epoll_ctl (epoll_fd, EPOLL_CTL_DEL, EPOLLIN, server->GetFDRead (), 0);
593 int epoll_fd = -1;
597 epoll_fd = epoll_create (1);
599 if (epoll_fd >= 0)
600 my_epoll_ctl (epoll_fd, EPOLL_CTL_ADD, EPOLLIN, sock_fd, 0);
631 if (epoll_fd >= 0)
634 event_count = epoll_pwait (epoll_fd, events, max_events, -1, &mask);
704 error ("cannot %s: %s", epoll_fd >= 0 ? "epoll_wait"
720 if (epoll_fd >= 0)
766 if (process_server (server, active, epoll_fd))
769 close_server (server, epoll_fd);
772 my_epoll_ctl (epoll_fd, EPOLL_CTL_ADD, EPOLLIN, sock_fd, 0);
800 my_epoll_ctl (epoll_fd, EPOLL_CTL_ADD, EPOLLIN, fd, slot + 1);
808 my_epoll_ctl (epoll_fd, EPOLL_CTL_DEL, EPOLLIN, sock_fd, 0);
823 if (epoll_fd >= 0)
824 close (epoll_fd);