Home
last modified time | relevance | path

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

/external/ipsec-tools/
Dmain.c131 static struct pollfd pollfds[10]; variable
152 pollfds[monitors].fd = fd; in monitor_fd()
153 pollfds[monitors].events = callback ? POLLIN : 0; in monitor_fd()
194 if (poll(pollfds, monitors, timeout) > 0) { in main()
197 if (pollfds[i].revents & POLLHUP) { in main()
198 do_plog(LLV_ERROR, "Connection is closed\n", pollfds[i].fd); in main()
201 if (pollfds[i].revents & POLLIN) { in main()
202 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(eloop.pollfds, sizeof(struct pollfd) * nmax); in eloop_sock_table_add_sock()
173 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.c1773 struct pollfd pollfds[NumConnectionKind]; in gdb_relay() local
1776 pollfds[FROM_GDB].fd = from_gdb; in gdb_relay()
1777 pollfds[FROM_GDB].events = POLLIN; in gdb_relay()
1778 pollfds[FROM_GDB].revents = 0; in gdb_relay()
1779 pollfds[TO_GDB].fd = to_gdb; in gdb_relay()
1780 pollfds[TO_GDB].events = 0; in gdb_relay()
1781 pollfds[TO_GDB].revents = 0; in gdb_relay()
1784 pollfds[FROM_PID].fd = from_pid; in gdb_relay()
1785 pollfds[FROM_PID].events = POLLIN; in gdb_relay()
1786 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/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
/external/bluetooth/glib/
DChangeLog.pre-2-02884 changed pollfds, unlock context.
4207 * gmain.c (g_source_destroy_internal): Remove pollfds