Searched refs:pollfds (Results 1 – 10 of 10) sorted by relevance
/external/ipsec-tools/ |
D | main.c | 132 static struct pollfd pollfds[10]; variable 153 pollfds[monitors].fd = fd; in monitor_fd() 154 pollfds[monitors].events = callback ? POLLIN : 0; in monitor_fd() 195 if (poll(pollfds, monitors, timeout) > 0) { in main() 198 if (pollfds[i].revents & POLLHUP) { in main() 199 do_plog(LLV_INFO, "Connection is closed\n", pollfds[i].fd); in main() 204 if (pollfds[i].revents & POLLIN) { in main() 205 callbacks[i](pollfds[i].fd); in main()
|
/external/mtpd/ |
D | mtpd.c | 156 struct pollfd pollfds[3]; in main() local 184 pollfds[0].fd = the_socket; in main() 185 pollfds[0].events = POLLIN; in main() 186 pollfds[1].fd = signals[0]; in main() 187 pollfds[1].events = POLLIN; in main() 188 pollfds[2].fd = control; in main() 189 pollfds[2].events = 0; in main() 192 if (poll(pollfds, 3, timeout ? timeout : -1) == -1 && errno != EINTR) { in main() 196 if (pollfds[1].revents) { in main() 199 if (pollfds[2].revents) { in main() [all …]
|
/external/wpa_supplicant_8/src/utils/ |
D | eloop.c | 63 struct pollfd *pollfds; member 168 n = os_realloc_array(eloop.pollfds, nmax, in eloop_sock_table_add_sock() 174 eloop.pollfds = n; in eloop_sock_table_add_sock() 240 struct pollfd *pollfds, in eloop_sock_table_set_fds() argument 256 pollfds[nxt].fd = fd; in eloop_sock_table_set_fds() 257 pollfds[nxt].events = POLLIN; in eloop_sock_table_set_fds() 258 pollfds[nxt].revents = 0; in eloop_sock_table_set_fds() 259 pollfds_map[fd] = &(pollfds[nxt]); in eloop_sock_table_set_fds() 274 pfd = &(pollfds[nxt]); in eloop_sock_table_set_fds() 277 pollfds[i].revents = 0; in eloop_sock_table_set_fds() [all …]
|
/external/valgrind/main/coregrind/ |
D | vgdb.c | 1795 struct pollfd pollfds[NumConnectionKind]; in gdb_relay() local 1798 pollfds[FROM_GDB].fd = from_gdb; in gdb_relay() 1799 pollfds[FROM_GDB].events = POLLIN; in gdb_relay() 1800 pollfds[FROM_GDB].revents = 0; in gdb_relay() 1801 pollfds[TO_GDB].fd = to_gdb; in gdb_relay() 1802 pollfds[TO_GDB].events = 0; in gdb_relay() 1803 pollfds[TO_GDB].revents = 0; in gdb_relay() 1806 pollfds[FROM_PID].fd = from_pid; in gdb_relay() 1807 pollfds[FROM_PID].events = POLLIN; in gdb_relay() 1808 pollfds[FROM_PID].revents = 0; in gdb_relay() [all …]
|
/external/libusb/libusb/ |
D | io.c | 1015 list_init(&ctx->pollfds); in usbi_io_init() 1786 list_for_each_entry(ipollfd, &ctx->pollfds, list) in handle_events() 1794 list_for_each_entry(ipollfd, &ctx->pollfds, list) { in handle_events() 2194 list_add_tail(&ipollfd->list, &ctx->pollfds); in usbi_add_pollfd() 2210 list_for_each_entry(ipollfd, &ctx->pollfds, list) in usbi_remove_pollfd() 2250 list_for_each_entry(ipollfd, &ctx->pollfds, list) in libusb_get_pollfds() 2257 list_for_each_entry(ipollfd, &ctx->pollfds, list) in libusb_get_pollfds()
|
D | libusbi.h | 167 struct list_head pollfds; member
|
/external/libusb_aah/libusb/ |
D | io.c | 1143 list_init(&ctx->pollfds); in usbi_io_init() 1944 list_for_each_entry(ipollfd, &ctx->pollfds, list, struct usbi_pollfd) in handle_events() 1954 list_for_each_entry(ipollfd, &ctx->pollfds, list, struct usbi_pollfd) { in handle_events() 2413 list_add_tail(&ipollfd->list, &ctx->pollfds); in usbi_add_pollfd() 2429 list_for_each_entry(ipollfd, &ctx->pollfds, list, struct usbi_pollfd) in usbi_remove_pollfd() 2475 list_for_each_entry(ipollfd, &ctx->pollfds, list, struct usbi_pollfd) in libusb_get_pollfds() 2482 list_for_each_entry(ipollfd, &ctx->pollfds, list, struct usbi_pollfd) in libusb_get_pollfds()
|
D | libusbi.h | 276 struct list_head pollfds; member
|
/external/ppp/pppd/ |
D | sys-solaris.c | 228 static struct pollfd pollfds[MAX_POLLFDS]; variable 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/libusb/ |
D | ChangeLog | 1410 pollfds mutex protection
|