HomeSort by relevance Sort by last modified time
    Searched defs:epfd (Results 1 - 21 of 21) sorted by null

  /external/ltp/testcases/kernel/syscalls/epoll_wait/
epoll_wait02.c 30 static int epfd, fds[2]; variable
40 TEST(epoll_wait(epfd, epevs, 1, sleep_ms));
57 epfd = epoll_create(1);
58 if (epfd == -1)
63 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fds[0], &epevs[0]))
69 if (epfd > 0)
70 SAFE_CLOSE(epfd);
epoll_wait01.c 33 static int write_size, epfd, fds[2]; variable
75 epfd = epoll_create(3);
76 if (epfd == -1)
79 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fds[0], &epevs[0]) ||
80 epoll_ctl(epfd, EPOLL_CTL_ADD, fds[1], &epevs[1])) {
112 TEST(epoll_wait(epfd, &ret_evs, 1, -1));
150 TEST(epoll_wait(epfd, &ret_evs, 1, -1));
194 TEST(epoll_wait(epfd, ret_evs, 2, -1));
230 if (epfd > 0)
231 SAFE_CLOSE(epfd);
    [all...]
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_ADD, fds[1], &epevs[0]))
    [all...]
  /external/ltp/testcases/kernel/syscalls/epoll_ctl/
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);
103 res = epoll_wait(epfd, res_evs, 2, -1);
137 TEST(epoll_ctl(epfd, opt, fd, epvs));
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_ADD, &fd[0], &events[0], EEXIST
    [all...]
  /libcore/ojluni/src/main/native/
EPoll.c 63 int epfd = epoll_create(256); local
64 if (epfd < 0) {
67 return epfd;
71 Java_sun_nio_ch_EPoll_epollCtl(JNIEnv *env, jclass c, jint epfd,
80 RESTARTABLE(epoll_ctl(epfd, (int)opcode, (int)fd, &event), res);
87 jint epfd, jlong address, jint numfds)
92 RESTARTABLE(epoll_wait(epfd, events, numfds, -1), res);
100 Java_sun_nio_ch_EPoll_close0(JNIEnv *env, jclass c, jint epfd) {
102 RESTARTABLE(close(epfd), res);
  /prebuilts/go/darwin-x86/src/runtime/
netpoll_epoll.go 15 func epollctl(epfd, op, fd int32, ev *epollevent) int32
18 func epollwait(epfd int32, ev *epollevent, nev, timeout int32) int32
22 epfd int32 = -1 // epoll descriptor
26 epfd = epollcreate1(_EPOLL_CLOEXEC)
27 if epfd >= 0 {
30 epfd = epollcreate(1024)
31 if epfd >= 0 {
32 closeonexec(epfd)
35 println("runtime: epollcreate failed with", -epfd)
40 return uintptr(epfd)
21 epfd int32 = -1 \/\/ epoll descriptor var
    [all...]
  /prebuilts/go/linux-x86/src/runtime/
netpoll_epoll.go 15 func epollctl(epfd, op, fd int32, ev *epollevent) int32
18 func epollwait(epfd int32, ev *epollevent, nev, timeout int32) int32
22 epfd int32 = -1 // epoll descriptor
26 epfd = epollcreate1(_EPOLL_CLOEXEC)
27 if epfd >= 0 {
30 epfd = epollcreate(1024)
31 if epfd >= 0 {
32 closeonexec(epfd)
35 println("runtime: epollcreate failed with", -epfd)
40 return uintptr(epfd)
21 epfd int32 = -1 \/\/ epoll descriptor var
    [all...]
  /external/ltp/testcases/kernel/syscalls/epoll_pwait/
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/linux-kselftest/tools/testing/selftests/net/
reuseport_dualstack.c 102 static int receive_once(int epfd, int proto)
108 i = epoll_wait(epfd, &ev, 1, -1);
131 int epfd, i, test_fd; local
135 epfd = epoll_create(1);
136 if (epfd < 0)
142 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev))
148 test_fd = receive_once(epfd, proto);
155 close(epfd);
reuseport_bpf_cpu.c 151 void receive_on_cpu(int *rcv_fd, int len, int epfd, int cpu_id, int proto)
157 i = epoll_wait(epfd, &ev, 1, -1);
187 int epfd, cpu; local
192 epfd = epoll_create(1);
193 if (epfd < 0)
198 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[cpu], &ev))
205 receive_on_cpu(rcv_fd, len, epfd, cpu, proto);
211 receive_on_cpu(rcv_fd, len, epfd, cpu, proto);
217 receive_on_cpu(rcv_fd, len, epfd, cpu, proto);
223 receive_on_cpu(rcv_fd, len, epfd, cpu, proto)
    [all...]
reuseport_bpf_numa.c 159 void receive_on_node(int *rcv_fd, int len, int epfd, int node_id, int proto)
165 i = epoll_wait(epfd, &ev, 1, -1);
195 int epfd, node; local
200 epfd = epoll_create(1);
201 if (epfd < 0)
206 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[node], &ev))
213 receive_on_node(rcv_fd, len, epfd, node, proto);
219 receive_on_node(rcv_fd, len, epfd, node, proto);
222 close(epfd);
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/libevent/
epoll.c 89 int epfd; member in struct:epollop
143 int epfd = -1; local
148 epfd = epoll_create1(EPOLL_CLOEXEC);
150 if (epfd == -1) {
153 if ((epfd = epoll_create(32000)) == -1) {
158 evutil_make_socket_closeonexec(epfd);
162 close(epfd);
166 epollop->epfd = epfd;
172 close(epfd);
    [all...]
  /external/libxkbcommon/xkbcommon/test/
interactive-evdev.c 305 int epfd; local
310 epfd = epoll_create1(0);
311 if (epfd < 0) {
321 ret = epoll_ctl(epfd, EPOLL_CTL_ADD, kbd->fd, &ev);
331 ret = epoll_wait(epfd, evs, 16, -1);
350 close(epfd);
354 close(epfd);
  /libcore/ojluni/src/main/java/sun/nio/ch/
EPollPort.java 49 private final int epfd; field in class:EPollPort
89 this.epfd = epollCreate();
96 epollCtl(epfd, EPOLL_CTL_ADD, sv[0], Net.POLLIN);
98 close0(epfd);
129 close0(epfd);
174 int err = epollCtl(epfd, EPOLL_CTL_MOD, fd, (events | EPOLLONESHOT));
176 err = epollCtl(epfd, EPOLL_CTL_ADD, fd, (events | EPOLLONESHOT));
194 int n = epollWait(epfd, address, MAX_EPOLL_EVENTS);
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/
selectmodule.c 707 SOCKET epfd; /* epoll control file descriptor */ member in struct:__anon4238
724 if (self->epfd >= 0) {
725 int epfd = self->epfd; local
726 self->epfd = -1;
728 if (close(epfd) < 0)
757 self->epfd = epoll_create(sizehint);
761 self->epfd = fd;
763 if (self->epfd < 0) {
813 if (self->epfd < 0)
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
selectmodule.c 741 SOCKET epfd; /* epoll control file descriptor */ member in struct:__anon4539
758 if (self->epfd >= 0) {
759 int epfd = self->epfd; local
760 self->epfd = -1;
762 if (close(epfd) < 0)
791 self->epfd = epoll_create(sizehint);
795 self->epfd = fd;
797 if (self->epfd < 0) {
847 if (self->epfd < 0)
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
selectmodule.c 707 SOCKET epfd; /* epoll control file descriptor */ member in struct:__anon4809
724 if (self->epfd >= 0) {
725 int epfd = self->epfd; local
726 self->epfd = -1;
728 if (close(epfd) < 0)
757 self->epfd = epoll_create(sizehint);
761 self->epfd = fd;
763 if (self->epfd < 0) {
813 if (self->epfd < 0)
    [all...]
  /external/python/cpython2/Modules/
selectmodule.c 730 SOCKET epfd; /* epoll control file descriptor */ member in struct:__anon32863
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 < 0
    [all...]
  /external/python/cpython3/Modules/
selectmodule.c 1226 SOCKET epfd; \/* epoll control file descriptor *\/ member in struct:__anon33490
1244 int epfd = self->epfd; local
    [all...]

Completed in 333 milliseconds