Home | History | Annotate | Download | only in Modules

Lines Matching defs:epfd

1226     SOCKET epfd;                        /* epoll control file descriptor */
1243 if (self->epfd >= 0) {
1244 int epfd = self->epfd;
1245 self->epfd = -1;
1247 if (close(epfd) < 0)
1269 self->epfd = epoll_create1(flags);
1272 self->epfd = epoll_create(sizehint);
1276 self->epfd = fd;
1278 if (self->epfd < 0) {
1285 if (fd == -1 && _Py_set_inheritable(self->epfd, 0, NULL) < 0) {
1340 if (self->epfd < 0)
1349 if (self->epfd < 0)
1351 return PyLong_FromLong(self->epfd);
1376 pyepoll_internal_ctl(int epfd, int op, PyObject *pfd, unsigned int events)
1382 if (epfd < 0)
1396 result = epoll_ctl(epfd, op, fd, &ev);
1404 result = epoll_ctl(epfd, op, fd, &ev);
1436 return pyepoll_internal_ctl(self->epfd, EPOLL_CTL_ADD, pfd, events);
1461 return pyepoll_internal_ctl(self->epfd, EPOLL_CTL_MOD, pfd, events);
1481 return pyepoll_internal_ctl(self->epfd, EPOLL_CTL_DEL, pfd, 0);
1500 if (self->epfd < 0)
1553 nfds = epoll_wait(self->epfd, evs, maxevents, (int)ms);
1608 if (self->epfd < 0)