Searched refs:backend_fd (Results 1 – 6 of 6) sorted by relevance
| /libev/ |
| H A D | ev_epoll.c | 105 if (!epoll_ctl (backend_fd, EPOLL_CTL_ADD, fd, &ev)) in epoll_modify() 115 if (!epoll_ctl (backend_fd, EPOLL_CTL_MOD, fd, &ev)) in epoll_modify() 153 eventcnt = epoll_wait (backend_fd, epoll_events, epoll_eventmax, timeout * 1e3); in epoll_poll() 242 backend_fd = epoll_create1 (EPOLL_CLOEXEC); in epoll_init() 244 if (backend_fd < 0 && (errno == EINVAL || errno == ENOSYS)) in epoll_init() 246 backend_fd = epoll_create (256); in epoll_init() 248 if (backend_fd < 0) in epoll_init() 251 fcntl (backend_fd, F_SETFD, FD_CLOEXEC); in epoll_init() 273 close (backend_fd); in epoll_fork() 275 while ((backend_fd = epoll_create (256)) < 0) in epoll_fork() [all …]
|
| H A D | ev_port.c | 63 backend_fd, PORT_SOURCE_FD, fd, in port_associate_and_check() 86 port_dissociate (backend_fd, PORT_SOURCE_FD, fd); in port_modify() 106 res = port_getn (backend_fd, port_events, port_eventmax, &nget, &ts); in port_poll() 143 if ((backend_fd = port_create ()) < 0) in port_init() 148 fcntl (backend_fd, F_SETFD, FD_CLOEXEC); /* not sure if necessary, hopefully doesn't hurt */ in port_init() 175 close (backend_fd); in port_fork() 177 while ((backend_fd = port_create ()) < 0) in port_fork() 180 fcntl (backend_fd, F_SETFD, FD_CLOEXEC); in port_fork()
|
| H A D | ev_kqueue.c | 101 res = kevent (backend_fd, kqueue_changes, kqueue_changecnt, kqueue_events, kqueue_eventmax, &ts); in kqueue_poll() 160 if ((backend_fd = kqueue ()) < 0) in kqueue_init() 163 fcntl (backend_fd, F_SETFD, FD_CLOEXEC); /* not sure if necessary, hopefully doesn't hurt */ in kqueue_init() 200 close (backend_fd); in kqueue_fork() 203 while ((backend_fd = kqueue ()) < 0) in kqueue_fork() 206 fcntl (backend_fd, F_SETFD, FD_CLOEXEC); in kqueue_fork()
|
| H A D | ev_wrap.h | 13 #define backend_fd ((loop)->backend_fd) macro 112 #undef backend_fd
|
| H A D | ev_vars.h | 64 VARx(int, backend_fd)
|
| H A D | ev.c | 2875 backend_fd = -1; in loop_init() 2970 if (backend_fd >= 0) in ev_loop_destroy() 2971 close (backend_fd); in ev_loop_destroy() 4741 ev_io_init (&w->io, embed_io_cb, backend_fd, EV_READ); in ev_embed_start()
|