/third_party/ltp/testcases/kernel/syscalls/epoll/ |
H A D | epoll-ltp.c | 43 Next run epoll_ctl on that fd (epoll_fd) with a variety of 174 #define PROTECT_FUNC(fn, errval, epoll_fd) ( \ 182 return fn(epoll_fd); \ 205 int epoll_fd = -1; in test_epoll_create() local 215 epoll_fd = epoll_create(fd_set_size); in test_epoll_create() 216 if (epoll_fd >= 0) { in test_epoll_create() 220 close(epoll_fd); in test_epoll_create() 238 epoll_fd = epoll_create(fd_set_size); in test_epoll_create() 239 if (epoll_fd == -1) { in test_epoll_create() 254 close(epoll_fd); in test_epoll_create() 387 test_epoll_ctl(int epoll_fd) test_epoll_ctl() argument [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | epoll_pwait.c | 37 int epoll_fd = epoll_create(1); in epoll_pwait_0100() local 38 if (epoll_fd == -1) { in epoll_pwait_0100() 43 int result = epoll_pwait(epoll_fd, events, 1, 1, NULL); in epoll_pwait_0100() 56 int epoll_fd = epoll_create(1); in epoll_pwait_0200() local 57 if (epoll_fd == -1) { in epoll_pwait_0200() 66 int result = epoll_pwait(epoll_fd, events, 1, 1, &ss); in epoll_pwait_0200()
|
H A D | epoll_wait.c | 36 int epoll_fd = epoll_create(1); in epoll_wait_0100() local 37 if (epoll_fd == -1) { in epoll_wait_0100() 42 int result = epoll_wait(epoll_fd, events, 1, 1); in epoll_wait_0100()
|
H A D | epoll_create.c | 37 int epoll_fd = epoll_create(1); in epoll_create_0100() local 38 if (epoll_fd == -1) { in epoll_create_0100()
|
/third_party/node/deps/cares/src/lib/ |
H A D | ares_event_epoll.c | 41 int epoll_fd; member 57 if (ep->epoll_fd != -1) { in ares_evsys_epoll_destroy() 58 close(ep->epoll_fd); in ares_evsys_epoll_destroy() 76 ep->epoll_fd = epoll_create1(0); in ares_evsys_epoll_init() 77 if (ep->epoll_fd == -1) { in ares_evsys_epoll_init() 83 fcntl(ep->epoll_fd, F_SETFD, FD_CLOEXEC); in ares_evsys_epoll_init() 110 if (epoll_ctl(ep->epoll_fd, EPOLL_CTL_ADD, event->fd, &epev) != 0) { in ares_evsys_epoll_event_add() 124 epoll_ctl(ep->epoll_fd, EPOLL_CTL_DEL, event->fd, &epev); in ares_evsys_epoll_event_del() 143 epoll_ctl(ep->epoll_fd, EPOLL_CTL_MOD, event->fd, &epev); in ares_evsys_epoll_event_mod() 158 rv = epoll_wait(ep->epoll_fd, event in ares_evsys_epoll_wait() [all...] |
/third_party/rust/crates/rustix/src/backend/linux_raw/io/ |
H A D | epoll.rs | 120 epoll_fd: OwnedFd, 135 epoll_fd: epoll_create(flags)?, in new() 158 self.epoll_fd.as_fd(), in add() 185 self.epoll_fd.as_fd(), in mod_() 205 epoll_del(self.epoll_fd.as_fd(), raw_fd)?; in del() 226 self.epoll_fd.as_fd(), in wait() 242 self.epoll_fd.as_raw_fd() in as_raw_fd() 249 self.epoll_fd.into_raw_fd() in into_raw_fd() 257 epoll_fd: OwnedFd::from_raw_fd(fd), in from_raw_fd() 266 self.epoll_fd in as_fd() [all...] |
/third_party/rust/crates/rustix/src/backend/libc/io/ |
H A D | epoll.rs | 120 epoll_fd: OwnedFd, 136 epoll_fd: ret_owned_fd(c::epoll_create1(flags.bits()))?, in new() 160 self.epoll_fd.as_fd().as_raw_fd(), in add() 188 self.epoll_fd.as_fd().as_raw_fd(), in mod_() 210 self.epoll_fd.as_fd().as_raw_fd(), in del() 235 self.epoll_fd.as_fd().as_raw_fd(), in wait() 251 self.epoll_fd.as_raw_fd() in as_raw_fd() 258 self.epoll_fd.into_raw_fd() in into_raw_fd() 266 epoll_fd: OwnedFd::from_raw_fd(fd), in from_raw_fd() 275 self.epoll_fd in as_fd() [all...] |
/third_party/libbpf/src/ |
H A D | ringbuf.c | 39 int epoll_fd; member 51 int epoll_fd; member 157 if (epoll_ctl(rb->epoll_fd, EPOLL_CTL_ADD, map_fd, e) < 0) { in ring_buffer__add() 181 if (rb->epoll_fd >= 0) in ring_buffer__free() 182 close(rb->epoll_fd); in ring_buffer__free() 205 rb->epoll_fd = epoll_create1(EPOLL_CLOEXEC); in ring_buffer__new() 206 if (rb->epoll_fd < 0) { in ring_buffer__new() 309 cnt = epoll_wait(rb->epoll_fd, rb->events, rb->ring_cnt, timeout_ms); in ring_buffer__poll() 330 return rb->epoll_fd; in ring_buffer__epoll_fd() 404 if (rb->epoll_fd > in user_ring_buffer__free() [all...] |
H A D | libbpf.c | 12846 int epoll_fd; /* perf event FD */ member 12884 if (pb->epoll_fd >= 0) 12885 close(pb->epoll_fd); 13054 pb->epoll_fd = epoll_create1(EPOLL_CLOEXEC); 13055 if (pb->epoll_fd < 0) { 13126 if (epoll_ctl(pb->epoll_fd, EPOLL_CTL_ADD, cpu_buf->fd, 13210 return pb->epoll_fd; 13217 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, timeout_ms);
|
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/ |
H A D | daemon.c | 732 return add_to_fd_set (daemon->epoll_fd, read_fd_set, max_fd, fd_setsize); in MHD_get_fdset2() 1550 if (0 != epoll_ctl (daemon->epoll_fd, in internal_add_connection() 1672 if (0 != epoll_ctl (daemon->epoll_fd, in MHD_suspend_connection() 2020 (MHD_INVALID_SOCKET != daemon->epoll_fd) && in MHD_cleanup_connections() 2029 if (0 != epoll_ctl (daemon->epoll_fd, in MHD_cleanup_connections() 2182 if (daemon->epoll_fd >= FD_SETSIZE) in MHD_run_from_select() 2184 if (FD_ISSET (daemon->epoll_fd, read_fd_set)) in MHD_run_from_select() 2650 if (-1 == daemon->epoll_fd) in MHD_epoll() 2660 if (0 != epoll_ctl (daemon->epoll_fd, in MHD_epoll() 2679 if (0 != epoll_ctl (daemon->epoll_fd, in MHD_epoll() [all...] |
H A D | internal.h | 1135 int epoll_fd; member
|
H A D | connection.c | 2727 if (0 != epoll_ctl (daemon->epoll_fd,
|
/third_party/libinput/tools/ |
H A D | libinput-record.c | 123 int epoll_fd; member 2120 if (epoll_ctl(ctx->epoll_fd, EPOLL_CTL_ADD, fd, &ep) < 0) { in add_source() 2132 epoll_ctl(ctx->epoll_fd, EPOLL_CTL_DEL, source->fd, NULL); in destroy_source() 2206 count = epoll_wait(ctx->epoll_fd, ep, ARRAY_LENGTH(ep), ctx->timeout); in dispatch_sources() 2232 ctx->epoll_fd = epoll_create1(0); in mainloop() 2233 assert(ctx->epoll_fd >= 0); in mainloop() 2394 close(ctx->epoll_fd); in mainloop()
|
/third_party/libinput/src/ |
H A D | libinput.c | 1830 if (epoll_ctl(libinput->epoll_fd, EPOLL_CTL_ADD, fd, &ep) < 0) { in libinput_add_fd() 1842 epoll_ctl(libinput->epoll_fd, EPOLL_CTL_DEL, source->fd, NULL); in libinput_remove_source() 1856 libinput->epoll_fd = epoll_create1(EPOLL_CLOEXEC); in libinput_init() 1857 if (libinput->epoll_fd < 0) in libinput_init() 1875 close(libinput->epoll_fd); in libinput_init() 1993 close(libinput->epoll_fd); in libinput_unref() 2182 return libinput->epoll_fd; in libinput_get_fd() 2201 count = epoll_wait(libinput->epoll_fd, ep, ARRAY_LENGTH(ep), 0); in libinput_dispatch()
|
H A D | libinput-private.h | 129 int epoll_fd; member
|
/third_party/libuv/src/unix/ |
H A D | internal.h | 272 int uv__epoll_ctl(int epoll_fd, int op, int fd, struct epoll_event* event);
|
H A D | linux.c | 73 int uv__epoll_ctl(int epoll_fd, int op, int fd, struct epoll_event* event) { in uv__epoll_ctl() argument 80 return epoll_ctl(epoll_fd, op, fd ,event); in uv__epoll_ctl()
|