/external/ipsec-tools/ |
H A D | main.c | 132 static struct pollfd pollfds[10]; variable in typeref:struct:pollfd 153 pollfds[monitors].fd = fd; 154 pollfds[monitors].events = callback ? POLLIN : 0; 195 if (poll(pollfds, monitors, timeout) > 0) { 198 if (pollfds[i].revents & POLLHUP) { 199 do_plog(LLV_INFO, "Connection is closed\n", pollfds[i].fd); 204 if (pollfds[i].revents & POLLIN) { 205 callbacks[i](pollfds[i].fd);
|
/external/chromium_org/content/common/gpu/media/ |
H A D | exynos_v4l2_video_device.cc | 49 struct pollfd pollfds[2]; local 53 pollfds[0].fd = device_poll_interrupt_fd_; 54 pollfds[0].events = POLLIN | POLLERR; 59 pollfds[nfds].fd = device_fd_; 60 pollfds[nfds].events = POLLIN | POLLOUT | POLLERR | POLLPRI; 65 if (HANDLE_EINTR(poll(pollfds, nfds, -1)) == -1) { 69 *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI);
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
H A D | event_test.cc | 251 pollfds[index].fd = fds[index]; 252 pollfds[index].events = POLLIN | POLLOUT; 253 pollfds[index].revents = -1; 269 struct pollfd pollfds[MAX_FDS]; member in class:SelectPollTest 283 ASSERT_EQ(2, kp->poll(pollfds, 2, 0)); 284 ASSERT_EQ(POLLIN | POLLOUT, pollfds[0].revents); 285 ASSERT_EQ(POLLIN | POLLOUT, pollfds[1].revents); 292 ASSERT_EQ(2, kp->poll(pollfds, 2, 0)); 294 // EXPECT_EQ(0, pollfds[0].revents); 296 ASSERT_EQ(POLLOUT, pollfds[ [all...] |
/external/mtpd/ |
H A D | mtpd.c | 156 struct pollfd pollfds[3]; local 184 pollfds[0].fd = the_socket; 185 pollfds[0].events = POLLIN; 186 pollfds[1].fd = signals[0]; 187 pollfds[1].events = POLLIN; 188 pollfds[2].fd = control; 189 pollfds[2].events = 0; 192 if (poll(pollfds, 3, timeout ? timeout : -1) == -1 && errno != EINTR) { 196 if (pollfds[1].revents) { 199 if (pollfds[ [all...] |
/external/wpa_supplicant_8/hostapd/src/utils/ |
H A D | eloop.c | 77 int max_poll_fds; /* number of pollfds currently allocated */ 78 struct pollfd *pollfds; member in struct:eloop_data 205 n = os_realloc_array(eloop.pollfds, nmax, 211 eloop.pollfds = n; 343 struct pollfd *pollfds, 359 pollfds[nxt].fd = fd; 360 pollfds[nxt].events = POLLIN; 361 pollfds[nxt].revents = 0; 362 pollfds_map[fd] = &(pollfds[nxt]); 377 pfd = &(pollfds[nx 340 eloop_sock_table_set_fds(struct eloop_sock_table *readers, struct eloop_sock_table *writers, struct eloop_sock_table *exceptions, struct pollfd *pollfds, struct pollfd **pollfds_map, int max_pollfd_map) argument [all...] |
/external/wpa_supplicant_8/src/utils/ |
H A D | eloop.c | 77 int max_poll_fds; /* number of pollfds currently allocated */ 78 struct pollfd *pollfds; member in struct:eloop_data 205 n = os_realloc_array(eloop.pollfds, nmax, 211 eloop.pollfds = n; 343 struct pollfd *pollfds, 359 pollfds[nxt].fd = fd; 360 pollfds[nxt].events = POLLIN; 361 pollfds[nxt].revents = 0; 362 pollfds_map[fd] = &(pollfds[nxt]); 377 pfd = &(pollfds[nx 340 eloop_sock_table_set_fds(struct eloop_sock_table *readers, struct eloop_sock_table *writers, struct eloop_sock_table *exceptions, struct pollfd *pollfds, struct pollfd **pollfds_map, int max_pollfd_map) argument [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/utils/ |
H A D | eloop.c | 77 int max_poll_fds; /* number of pollfds currently allocated */ 78 struct pollfd *pollfds; member in struct:eloop_data 205 n = os_realloc_array(eloop.pollfds, nmax, 211 eloop.pollfds = n; 343 struct pollfd *pollfds, 359 pollfds[nxt].fd = fd; 360 pollfds[nxt].events = POLLIN; 361 pollfds[nxt].revents = 0; 362 pollfds_map[fd] = &(pollfds[nxt]); 377 pfd = &(pollfds[nx 340 eloop_sock_table_set_fds(struct eloop_sock_table *readers, struct eloop_sock_table *writers, struct eloop_sock_table *exceptions, struct pollfd *pollfds, struct pollfd **pollfds_map, int max_pollfd_map) argument [all...] |
/external/chromium_org/third_party/libusb/src/libusb/ |
H A D | libusbi.h | 251 struct list_head pollfds; member in struct:libusb_context
|
/external/libusb/libusb/ |
H A D | libusbi.h | 167 struct list_head pollfds; member in struct:libusb_context
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/ |
H A D | kernel_proxy.cc | 1124 std::vector<pollfd> pollfds; local 1147 pollfds.push_back(info); 1170 int result = poll(&pollfds[0], pollfds.size(), ms_timeout); 1175 for (size_t index = 0; index < pollfds.size(); index++) { 1176 pollfd* info = &pollfds[index];
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/ |
H A D | builtin-kvm.c | 1066 struct pollfd *pollfds = NULL; local 1094 /* copy pollfds -- need to add timerfd and stdin */ 1096 pollfds = zalloc(sizeof(struct pollfd) * (nr_fds + 2)); 1097 if (!pollfds) { 1101 memcpy(pollfds, kvm->evlist->pollfd, 1110 pollfds[nr_fds].fd = kvm->timerfd; 1111 pollfds[nr_fds].events = POLLIN; 1114 pollfds[nr_fds].fd = fileno(stdin); 1115 pollfds[nr_fds].events = POLLIN; 1135 if (pollfds[nr_stdi [all...] |
/external/ppp/pppd/ |
H A D | sys-solaris.c | 228 static struct pollfd pollfds[MAX_POLLFDS]; variable in typeref:struct:pollfd 1371 if (poll(pollfds, n_pollfds, t) < 0 && errno != EINTR) 1384 if (pollfds[n].fd == fd) 1387 pollfds[n_pollfds].fd = fd; 1388 pollfds[n_pollfds].events = POLLIN | POLLPRI | POLLHUP; 1403 if (pollfds[n].fd == fd) { 1405 pollfds[n-1] = pollfds[n];
|
/external/valgrind/main/coregrind/ |
H A D | vgdb.c | 840 struct pollfd pollfds[NumConnectionKind]; local 843 pollfds[FROM_GDB].fd = from_gdb; 844 pollfds[FROM_GDB].events = POLLIN; 845 pollfds[FROM_GDB].revents = 0; 846 pollfds[TO_GDB].fd = to_gdb; 847 pollfds[TO_GDB].events = 0; 848 pollfds[TO_GDB].revents = 0; 851 pollfds[FROM_PID].fd = from_pid; 852 pollfds[FROM_PID].events = POLLIN; 853 pollfds[FROM_PI [all...] |