/external/ltp/testcases/kernel/syscalls/epoll_pwait/ |
H A D | epoll_pwait.h | 28 int epoll_pwait(int epfd, struct epoll_event *events, int maxevents, argument 31 return ltp_syscall(__NR_epoll_pwait, epfd, events, maxevents,
|
H A D | epoll_pwait01.c | 43 static int epfd, fds[2]; variable 102 epfd = epoll_create(1); 103 if (epfd == -1) { 111 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fds[0], &epevs) == -1) { 164 TEST(epoll_pwait(epfd, &epevs, 1, 100, sigmask)); 189 if (epfd > 0 && close(epfd)) 190 tst_resm(TWARN | TERRNO, "failed to close epfd");
|
/external/strace/tests/ |
H A D | epoll_ctl.c | 12 invoke_syscall(unsigned long epfd, unsigned long op, unsigned long fd, void *ev) argument 14 return syscall(__NR_epoll_ctl, epfd, F8ILL_KULONG_MASK | op,
|
/external/strace/tests-m32/ |
H A D | epoll_ctl.c | 12 invoke_syscall(unsigned long epfd, unsigned long op, unsigned long fd, void *ev) argument 14 return syscall(__NR_epoll_ctl, epfd, F8ILL_KULONG_MASK | op,
|
/external/strace/tests-mx32/ |
H A D | epoll_ctl.c | 12 invoke_syscall(unsigned long epfd, unsigned long op, unsigned long fd, void *ev) argument 14 return syscall(__NR_epoll_ctl, epfd, F8ILL_KULONG_MASK | op,
|
/external/libevent/ |
H A D | epoll_sub.c | 51 epoll_ctl(int epfd, int op, int fd, struct epoll_event *event) argument 54 return (syscall(__NR_epoll_ctl, epfd, op, fd, event)); 58 epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) argument 61 return (syscall(__NR_epoll_pwait, epfd, events, maxevents, timeout, NULL, 0)); 63 return (syscall(__NR_epoll_wait, epfd, events, maxevents, timeout));
|
H A D | epoll.c | 59 int epfd; member in struct:epollop 110 int epfd; local 115 if ((epfd = epoll_create(32000)) == -1) { 121 evutil_make_socket_closeonexec(epfd); 124 close(epfd); 128 epollop->epfd = epfd; 134 close(epfd); 265 if (epoll_ctl(epollop->epfd, op, ch->fd, &epev) == -1) { 271 if (epoll_ctl(epollop->epfd, EPOLL_CTL_AD [all...] |
/external/ltp/testcases/kernel/syscalls/epoll_ctl/ |
H A D | epoll_ctl01.c | 38 static int epfd; variable 49 epfd = epoll_create(2); 50 if (epfd == -1) 62 if (epfd > 0) 63 SAFE_CLOSE(epfd); 99 res = epoll_wait(epfd, res_evs, 2, -1); 135 TEST(epoll_ctl(epfd, opt, fd, epvs));
|
H A D | epoll_ctl02.c | 21 * 1) epoll_ctl(2) fails if epfd is a invalid file descriptor. 24 * 4) epoll_ctl(2) fails if fd is the same as epfd. 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_AD [all...] |
/external/ltp/testcases/kernel/syscalls/epoll_wait/ |
H A D | epoll_wait02.c | 34 static int epfd, fds[2]; variable 73 TEST(epoll_wait(epfd, epevs, 1, sleep_ms)); 116 epfd = epoll_create(1); 117 if (epfd == -1) { 124 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fds[0], &epevs[0])) { 132 if (epfd > 0 && close(epfd)) 133 tst_resm(TWARN | TERRNO, "failed to close epfd");
|
H A D | epoll_wait01.c | 37 static int write_size, epfd, fds[2], fds2[2]; variable 84 epfd = epoll_create(3); 85 if (epfd == -1) { 94 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fds[0], &epevs[0]) || 95 epoll_ctl(epfd, EPOLL_CTL_ADD, fds[1], &epevs[1]) || 96 epoll_ctl(epfd, EPOLL_CTL_ADD, fds2[0], &epevs[2])) { 131 TEST(epoll_wait(epfd, epevs, 3, -1)); 168 TEST(epoll_wait(epfd, epevs, 3, -1)); 206 TEST(epoll_wait(epfd, epevs, 3, -1)); 264 if (epfd > [all...] |
H A D | epoll_wait03.c | 21 * 1) epoll_wait(2) fails if epfd is not a valid file descriptor 22 * 2) epoll_wait(2) fails if epfd is not an epoll file descriptor 45 static int page_size, fds[2], epfd, inv_epfd, bad_epfd = -1; variable 55 int *epfd; member in struct:test_case_t 65 {&epfd, &ev_rdwr, -1, EINVAL}, 67 {&epfd, &ev_rdwr, 0, EINVAL}, 69 {&epfd, &ev_rdonly, 1, EFAULT} 111 epfd = epoll_create(1); 112 if (epfd == -1) { 119 if (epoll_ctl(epfd, EPOLL_CTL_AD [all...] |
/external/linux-kselftest/tools/testing/selftests/net/ |
H A D | reuseport_dualstack.c | 101 static int receive_once(int epfd, int proto) argument 107 i = epoll_wait(epfd, &ev, 1, -1); 130 int epfd, i, test_fd; local 134 epfd = epoll_create(1); 135 if (epfd < 0) 141 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev)) 147 test_fd = receive_once(epfd, proto); 154 close(epfd);
|
H A D | reuseport_bpf_cpu.c | 150 void receive_on_cpu(int *rcv_fd, int len, int epfd, int cpu_id, int proto) argument 156 i = epoll_wait(epfd, &ev, 1, -1); 186 int epfd, cpu; local 191 epfd = epoll_create(1); 192 if (epfd < 0) 197 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[cpu], &ev)) 204 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); 210 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); 216 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); 222 receive_on_cpu(rcv_fd, len, epfd, cp [all...] |
H A D | reuseport_bpf_numa.c | 158 void receive_on_node(int *rcv_fd, int len, int epfd, int node_id, int proto) argument 164 i = epoll_wait(epfd, &ev, 1, -1); 194 int epfd, node; local 199 epfd = epoll_create(1); 200 if (epfd < 0) 205 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[node], &ev)) 212 receive_on_node(rcv_fd, len, epfd, node, proto); 218 receive_on_node(rcv_fd, len, epfd, node, proto); 221 close(epfd);
|
H A D | reuseport_bpf.c | 215 int epfd, conn, i, sport, expected; local 218 epfd = epoll_create(1); 219 if (epfd < 0) 224 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd[i], &ev)) 238 i = epoll_wait(epfd, &ev, 1, -1);
|
/external/compiler-rt/lib/msan/ |
H A D | msan_interceptors.cc | 879 INTERCEPTOR(int, epoll_wait, int epfd, void *events, int maxevents, argument 882 int res = REAL(epoll_wait)(epfd, events, maxevents, timeout); 894 INTERCEPTOR(int, epoll_pwait, int epfd, void *events, int maxevents, argument 897 int res = REAL(epoll_pwait)(epfd, events, maxevents, timeout, sigmask);
|
/external/python/cpython2/Modules/ |
H A D | selectmodule.c | 730 SOCKET epfd; /* epoll control file descriptor */ member in struct:__anon17670 747 if (self->epfd >= 0) { 748 int epfd = self->epfd; local 749 self->epfd = -1; 751 if (close(epfd) < 0) 780 self->epfd = epoll_create(sizehint); 784 self->epfd = fd; 786 if (self->epfd < 0) { 836 if (self->epfd < 872 pyepoll_internal_ctl(int epfd, int op, PyObject *pfd, unsigned int events) argument [all...] |
/external/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_interceptors.cc | 1722 TSAN_INTERCEPTOR(int, epoll_ctl, int epfd, int op, int fd, void *ev) { argument 1723 SCOPED_TSAN_INTERCEPTOR(epoll_ctl, epfd, op, fd, ev); 1724 if (epfd >= 0) 1725 FdAccess(thr, pc, epfd); 1726 if (epfd >= 0 && fd >= 0) 1728 if (op == EPOLL_CTL_ADD && epfd >= 0) 1729 FdRelease(thr, pc, epfd); 1730 int res = REAL(epoll_ctl)(epfd, op, fd, ev); 1734 TSAN_INTERCEPTOR(int, epoll_wait, int epfd, void *ev, int cnt, int timeout) { argument 1735 SCOPED_TSAN_INTERCEPTOR(epoll_wait, epfd, e 1744 TSAN_INTERCEPTOR(int, epoll_pwait, int epfd, void *ev, int cnt, int timeout, void *sigmask) argument [all...] |