Home | History | Annotate | Download | only in Modules

Lines Matching defs:epfd

707     SOCKET epfd;                        /* epoll control file descriptor */

724 if (self->epfd >= 0) {
725 int epfd = self->epfd;
726 self->epfd = -1;
728 if (close(epfd) < 0)
757 self->epfd = epoll_create(sizehint);
761 self->epfd = fd;
763 if (self->epfd < 0) {
813 if (self->epfd < 0)
822 if (self->epfd < 0)
824 return PyInt_FromLong(self->epfd);
849 pyepoll_internal_ctl(int epfd, int op, PyObject *pfd, unsigned int events)
855 if (epfd < 0)
869 result = epoll_ctl(epfd, op, fd, &ev);
877 result = epoll_ctl(epfd, op, fd, &ev);
909 return pyepoll_internal_ctl(self->epfd, EPOLL_CTL_ADD, pfd, events);
934 return pyepoll_internal_ctl(self->epfd, EPOLL_CTL_MOD, pfd, events);
954 return pyepoll_internal_ctl(self->epfd, EPOLL_CTL_DEL, pfd, 0);
973 if (self->epfd < 0)
1011 nfds = epoll_wait(self->epfd, evs, maxevents, timeout);