/bionic/tests/ |
sys_epoll_test.cpp | 26 int epoll_fd = epoll_create(1); local 27 ASSERT_NE(-1, epoll_fd) << strerror(errno); 31 ASSERT_EQ(0, epoll_wait(epoll_fd, events, 1, 1)); 34 ASSERT_EQ(0, epoll_pwait(epoll_fd, events, 1, 1, NULL)); 40 ASSERT_EQ(0, epoll_pwait(epoll_fd, events, 1, 1, &ss)); 44 int epoll_fd = epoll_create(1); local 45 ASSERT_NE(-1, epoll_fd) << strerror(errno); 56 ASSERT_NE(-1, epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fds[0], &ev)); 63 ASSERT_EQ(1, epoll_wait(epoll_fd, events, 1, 1));
|
/system/extras/tests/suspend_stress/ |
suspend_stress.cpp | 104 int epoll_fd = epoll_create(1); local 105 if (epoll_fd < 0) { 112 int ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev); 139 ret = epoll_wait(epoll_fd, &out_ev, 1, -1);
|
/system/bt/osi/src/ |
reactor.c | 41 int epoll_fd; member in struct:reactor_t 68 ret->epoll_fd = INVALID_FD; 71 ret->epoll_fd = epoll_create(MAX_EVENTS); 72 if (ret->epoll_fd == INVALID_FD) { 94 if (epoll_ctl(ret->epoll_fd, EPOLL_CTL_ADD, ret->event_fd, &event) == -1) { 112 close(reactor->epoll_fd); 157 if (epoll_ctl(reactor->epoll_fd, EPOLL_CTL_ADD, fd, &event) == -1) { 180 if (epoll_ctl(object->reactor->epoll_fd, EPOLL_CTL_MOD, object->fd, &event) == -1) { 198 if (epoll_ctl(reactor->epoll_fd, EPOLL_CTL_DEL, obj->fd, NULL) == -1) 240 OSI_NO_INTR(ret = epoll_wait(reactor->epoll_fd, events, MAX_EVENTS, -1)) [all...] |
/system/core/init/ |
init.cpp | 86 static int epoll_fd = -1; variable 92 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev) == -1) { 669 epoll_fd = epoll_create1(EPOLL_CLOEXEC); 670 if (epoll_fd == -1) { 740 int nr = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd, &ev, 1, timeout));
|
/device/generic/goldfish/gps/ |
gps_qemu.c | 643 epoll_register( int epoll_fd, int fd ) 655 ret = epoll_ctl( epoll_fd, EPOLL_CTL_ADD, fd, &ev ); 662 epoll_deregister( int epoll_fd, int fd ) 666 ret = epoll_ctl( epoll_fd, EPOLL_CTL_DEL, fd, NULL ); 680 int epoll_fd = epoll_create(2); local 688 epoll_register( epoll_fd, control_fd ); 689 epoll_register( epoll_fd, gps_fd ); 698 nevents = epoll_wait( epoll_fd, events, 2, -1 );
|
/device/generic/goldfish/qemud/ |
qemud.c | 335 int epoll_fd; member in struct:__anon2835 346 l->epoll_fd = epoll_create(4); 362 close(l->epoll_fd); 363 l->epoll_fd = -1; 401 epoll_ctl( l->epoll_fd, EPOLL_CTL_MOD, hook->fd, &ev ); 430 epoll_ctl( l->epoll_fd, EPOLL_CTL_ADD, fd, &ev ); 449 epoll_ctl( l->epoll_fd, EPOLL_CTL_DEL, fd, NULL ); 473 epoll_ctl( l->epoll_fd, EPOLL_CTL_MOD, fd, &ev ); 498 epoll_ctl( l->epoll_fd, EPOLL_CTL_MOD, fd, &ev ); 512 count = epoll_wait( l->epoll_fd, l->events, l->num_fds, -1 ) [all...] |
/external/libmicrohttpd/src/microhttpd/ |
internal.h | 1132 int epoll_fd; member in struct:MHD_Daemon [all...] |