/external/ltp/testcases/kernel/syscalls/epoll_ctl/ |
D | epoll_ctl02.c | 47 static int epfd; variable 64 {&epfd, EPOLL_CTL_ADD, &inv, &events[1], EBADF}, 65 {&epfd, -1, &fd[1], &events[1], EINVAL}, 66 {&epfd, EPOLL_CTL_ADD, &epfd, &events[1], EINVAL}, 67 {&epfd, EPOLL_CTL_DEL, &fd[1], &events[1], ENOENT}, 68 {&epfd, EPOLL_CTL_MOD, &fd[1], &events[1], ENOENT}, 69 {&epfd, EPOLL_CTL_ADD, &fd[0], &events[0], EEXIST} 74 epfd = epoll_create(2); in setup() 75 if (epfd == -1) in setup() 83 TEST(epoll_ctl(epfd, EPOLL_CTL_ADD, fd[0], &events[0])); in setup() [all …]
|
D | epoll_ctl01.c | 38 static int epfd; variable 49 epfd = epoll_create(2); in setup() 50 if (epfd == -1) in setup() 62 if (epfd > 0) in cleanup() 63 SAFE_CLOSE(epfd); in cleanup() 99 res = epoll_wait(epfd, res_evs, 2, -1); in check_epoll_ctl() 135 TEST(epoll_ctl(epfd, opt, fd, epvs)); in opera_epoll_ctl()
|
/external/ltp/testcases/kernel/syscalls/epoll_wait/ |
D | epoll_wait03.c | 45 static int page_size, fds[2], epfd, inv_epfd, bad_epfd = -1; variable 55 int *epfd; member 65 {&epfd, &ev_rdwr, -1, EINVAL}, 67 {&epfd, &ev_rdwr, 0, EINVAL}, 69 {&epfd, &ev_rdonly, 1, EFAULT} 111 epfd = epoll_create(1); in setup() 112 if (epfd == -1) { in setup() 119 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fds[1], &epevs[0])) { in setup() 127 TEST(epoll_wait(*(tc->epfd), *(tc->ev), tc->maxevents, -1)); in verify_epoll_wait() 145 if (epfd > 0 && close(epfd)) in cleanup()
|
D | epoll_wait02.c | 34 static int epfd, fds[2]; variable 73 TEST(epoll_wait(epfd, epevs, 1, sleep_ms)); in main() 116 epfd = epoll_create(1); in setup() 117 if (epfd == -1) { in setup() 124 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fds[0], &epevs[0])) { in setup() 132 if (epfd > 0 && close(epfd)) in cleanup()
|
D | epoll_wait01.c | 37 static int write_size, epfd, fds[2], fds2[2]; variable 84 epfd = epoll_create(3); in setup() 85 if (epfd == -1) { in setup() 94 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fds[0], &epevs[0]) || in setup() 95 epoll_ctl(epfd, EPOLL_CTL_ADD, fds[1], &epevs[1]) || in setup() 96 epoll_ctl(epfd, EPOLL_CTL_ADD, fds2[0], &epevs[2])) { in setup() 131 TEST(epoll_wait(epfd, epevs, 3, -1)); in verify_epollout() 168 TEST(epoll_wait(epfd, epevs, 3, -1)); in verify_epollin() 206 TEST(epoll_wait(epfd, epevs, 3, -1)); in verify_epollio() 264 if (epfd > 0 && close(epfd)) in cleanup()
|
/external/ltp/testcases/kernel/syscalls/epoll2/src/ |
D | epoll.c | 19 #define __sys_epoll_ctl(epfd, op, fd, event) _syscall4(int, epoll_ctl, \ argument 20 int, epfd, int, op, int, fd, struct epoll_event *, event) 21 #define __sys_epoll_wait(epfd, pevents, maxevents, timeout) _syscall4(int, epoll_wait, \ argument 22 int, epfd, struct epoll_event *, pevents, int, maxevents, int, timeout) 26 __sys_epoll_ctl(epfd, op, fd, event) 28 __sys_epoll_wait(epfd, pevents, maxevents, timeout)
|
/external/libevent/ |
D | epoll.c | 59 int epfd; member 110 int epfd; in epoll_init() local 115 if ((epfd = epoll_create(32000)) == -1) { in epoll_init() 121 evutil_make_socket_closeonexec(epfd); in epoll_init() 124 close(epfd); in epoll_init() 128 epollop->epfd = epfd; in epoll_init() 134 close(epfd); in epoll_init() 265 if (epoll_ctl(epollop->epfd, op, ch->fd, &epev) == -1) { in epoll_apply_one_change() 271 if (epoll_ctl(epollop->epfd, EPOLL_CTL_ADD, ch->fd, &epev) == -1) { in epoll_apply_one_change() 288 if (epoll_ctl(epollop->epfd, EPOLL_CTL_MOD, ch->fd, &epev) == -1) { in epoll_apply_one_change() [all …]
|
D | epoll_sub.c | 51 epoll_ctl(int epfd, int op, int fd, struct epoll_event *event) in epoll_ctl() argument 54 return (syscall(__NR_epoll_ctl, epfd, op, fd, event)); in epoll_ctl() 58 epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) in epoll_wait() argument 61 return (syscall(__NR_epoll_pwait, epfd, events, maxevents, timeout, NULL, 0)); in epoll_wait() 63 return (syscall(__NR_epoll_wait, epfd, events, maxevents, timeout)); in epoll_wait()
|
D | configure.ac | 503 int epfd; 505 epfd = epoll_create(256); 506 exit (epfd == -1 ? 1 : 0);
|
/external/ltp/testcases/kernel/syscalls/epoll_pwait/ |
D | epoll_pwait01.c | 43 static int epfd, fds[2]; variable 102 epfd = epoll_create(1); in setup() 103 if (epfd == -1) { in setup() 111 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fds[0], &epevs) == -1) { in setup() 164 TEST(epoll_pwait(epfd, &epevs, 1, 100, sigmask)); in do_test() 189 if (epfd > 0 && close(epfd)) in cleanup()
|
D | epoll_pwait.h | 28 int epoll_pwait(int epfd, struct epoll_event *events, int maxevents, in epoll_pwait() argument 31 return ltp_syscall(__NR_epoll_pwait, epfd, events, maxevents, in epoll_pwait()
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | reuseport_bpf_cpu.c | 150 void receive_on_cpu(int *rcv_fd, int len, int epfd, int cpu_id, int proto) in receive_on_cpu() argument 156 i = epoll_wait(epfd, &ev, 1, -1); in receive_on_cpu() 186 int epfd, cpu; in test() local 191 epfd = epoll_create(1); in test() 192 if (epfd < 0) in test() 197 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[cpu], &ev)) in test() 204 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test() 210 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test() 216 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test() 222 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test() [all …]
|
D | reuseport_bpf_numa.c | 158 void receive_on_node(int *rcv_fd, int len, int epfd, int node_id, int proto) in receive_on_node() argument 164 i = epoll_wait(epfd, &ev, 1, -1); in receive_on_node() 194 int epfd, node; in test() local 199 epfd = epoll_create(1); in test() 200 if (epfd < 0) in test() 205 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[node], &ev)) in test() 212 receive_on_node(rcv_fd, len, epfd, node, proto); in test() 218 receive_on_node(rcv_fd, len, epfd, node, proto); in test() 221 close(epfd); in test()
|
D | reuseport_dualstack.c | 101 static int receive_once(int epfd, int proto) in receive_once() argument 107 i = epoll_wait(epfd, &ev, 1, -1); in receive_once() 130 int epfd, i, test_fd; in test() local 134 epfd = epoll_create(1); in test() 135 if (epfd < 0) in test() 141 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev)) in test() 147 test_fd = receive_once(epfd, proto); in test() 154 close(epfd); in test()
|
D | reuseport_bpf.c | 215 int epfd, conn, i, sport, expected; in test_recv_order() local 218 epfd = epoll_create(1); in test_recv_order() 219 if (epfd < 0) in test_recv_order() 224 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd[i], &ev)) in test_recv_order() 238 i = epoll_wait(epfd, &ev, 1, -1); in test_recv_order()
|
/external/ltp/testcases/kernel/syscalls/epoll2/man/ |
D | epoll_ctl.txt | 11 int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event) 14 Control an epoll descriptor, epfd, by requesting the operation op be 70 Add the target file descriptor fd to the epoll descriptor epfd 80 descriptor, epfd. 87 EBADF The epfd file descriptor is not a valid file descriptor. 91 EINVAL The supplied file descriptor, epfd, is not an epoll file
|
D | epoll_wait.txt | 11 int epoll_wait(int epfd, struct epoll_event * events, int maxevents, 15 Wait for events on the epoll file descriptor epfd for a maximum time of 49 EBADF epfd is not a valid file descriptor. 51 EINVAL The supplied file descriptor, epfd, is not an epoll file
|
/external/python/cpython2/Modules/ |
D | selectmodule.c | 730 SOCKET epfd; /* epoll control file descriptor */ member 747 if (self->epfd >= 0) { in pyepoll_internal_close() 748 int epfd = self->epfd; in pyepoll_internal_close() local 749 self->epfd = -1; in pyepoll_internal_close() 751 if (close(epfd) < 0) in pyepoll_internal_close() 780 self->epfd = epoll_create(sizehint); in newPyEpoll_Object() 784 self->epfd = fd; in newPyEpoll_Object() 786 if (self->epfd < 0) { in newPyEpoll_Object() 836 if (self->epfd < 0) in pyepoll_get_closed() 845 if (self->epfd < 0) in pyepoll_fileno() [all …]
|
/external/strace/tests/ |
D | epoll_ctl.c | 12 invoke_syscall(unsigned long epfd, unsigned long op, unsigned long fd, void *ev) in invoke_syscall() argument 14 return syscall(__NR_epoll_ctl, epfd, F8ILL_KULONG_MASK | op, in invoke_syscall()
|
/external/strace/tests-mx32/ |
D | epoll_ctl.c | 12 invoke_syscall(unsigned long epfd, unsigned long op, unsigned long fd, void *ev) in invoke_syscall() argument 14 return syscall(__NR_epoll_ctl, epfd, F8ILL_KULONG_MASK | op, in invoke_syscall()
|
/external/strace/tests-m32/ |
D | epoll_ctl.c | 12 invoke_syscall(unsigned long epfd, unsigned long op, unsigned long fd, void *ev) in invoke_syscall() argument 14 return syscall(__NR_epoll_ctl, epfd, F8ILL_KULONG_MASK | op, in invoke_syscall()
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_interceptors.cc | 1722 TSAN_INTERCEPTOR(int, epoll_ctl, int epfd, int op, int fd, void *ev) { in TSAN_INTERCEPTOR() argument 1723 SCOPED_TSAN_INTERCEPTOR(epoll_ctl, epfd, op, fd, ev); in TSAN_INTERCEPTOR() 1724 if (epfd >= 0) in TSAN_INTERCEPTOR() 1725 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR() 1726 if (epfd >= 0 && fd >= 0) in TSAN_INTERCEPTOR() 1728 if (op == EPOLL_CTL_ADD && epfd >= 0) in TSAN_INTERCEPTOR() 1729 FdRelease(thr, pc, epfd); in TSAN_INTERCEPTOR() 1730 int res = REAL(epoll_ctl)(epfd, op, fd, ev); in TSAN_INTERCEPTOR() 1734 TSAN_INTERCEPTOR(int, epoll_wait, int epfd, void *ev, int cnt, int timeout) { in TSAN_INTERCEPTOR() argument 1735 SCOPED_TSAN_INTERCEPTOR(epoll_wait, epfd, ev, cnt, timeout); in TSAN_INTERCEPTOR() [all …]
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 1207 #define __sanitizer_syscall_pre_epoll_ctl(epfd, op, fd, event) \ argument 1208 __sanitizer_syscall_pre_impl_epoll_ctl((long)(epfd), (long)(op), (long)(fd), \ 1210 #define __sanitizer_syscall_post_epoll_ctl(res, epfd, op, fd, event) \ argument 1211 __sanitizer_syscall_post_impl_epoll_ctl(res, (long)(epfd), (long)(op), \ 1213 #define __sanitizer_syscall_pre_epoll_wait(epfd, events, maxevents, timeout) \ argument 1214 __sanitizer_syscall_pre_impl_epoll_wait((long)(epfd), (long)(events), \ 1216 #define __sanitizer_syscall_post_epoll_wait(res, epfd, events, maxevents, \ argument 1218 __sanitizer_syscall_post_impl_epoll_wait(res, (long)(epfd), (long)(events), \ 1220 #define __sanitizer_syscall_pre_epoll_pwait(epfd, events, maxevents, timeout, \ argument 1223 (long)(epfd), (long)(events), (long)(maxevents), (long)(timeout), \ [all …]
|
/external/compiler-rt/lib/msan/ |
D | msan_interceptors.cc | 879 INTERCEPTOR(int, epoll_wait, int epfd, void *events, int maxevents, in INTERCEPTOR() argument 882 int res = REAL(epoll_wait)(epfd, events, maxevents, timeout); in INTERCEPTOR() 894 INTERCEPTOR(int, epoll_pwait, int epfd, void *events, int maxevents, in INTERCEPTOR() argument 897 int res = REAL(epoll_pwait)(epfd, events, maxevents, timeout, sigmask); in INTERCEPTOR()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_syscalls.inc | 1936 PRE_SYSCALL(epoll_ctl)(long epfd, long op, long fd, void *event) {} 1938 POST_SYSCALL(epoll_ctl)(long res, long epfd, long op, long fd, void *event) { 1944 PRE_SYSCALL(epoll_wait)(long epfd, void *events, long maxevents, long timeout) { 1947 POST_SYSCALL(epoll_wait)(long res, long epfd, void *events, long maxevents, 1954 PRE_SYSCALL(epoll_pwait)(long epfd, void *events, long maxevents, long timeout, 1959 POST_SYSCALL(epoll_pwait)(long res, long epfd, void *events, long maxevents,
|