Home
last modified time | relevance | path

Searched refs:pollfds (Results 1 – 10 of 10) sorted by relevance

/external/ipsec-tools/
Dmain.c132 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/
Dmtpd.c156 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/
Deloop.c63 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/
Dvgdb.c1795 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/
Dio.c1015 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()
Dlibusbi.h167 struct list_head pollfds; member
/external/libusb_aah/libusb/
Dio.c1143 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()
Dlibusbi.h276 struct list_head pollfds; member
/external/ppp/pppd/
Dsys-solaris.c228 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/
DChangeLog1410 pollfds mutex protection