/external/toybox/lib/ |
H A D | net.c | 66 struct pollfd pollfds[2]; local 69 memset(pollfds, 0, 2*sizeof(struct pollfd)); 70 pollfds[0].events = pollfds[1].events = POLLIN; 71 pollfds[0].fd = in1; 72 pollfds[1].fd = in2; 76 if (!xpoll(pollfds, pollcount, timeout)) return pollcount; 79 if (pollfds[i].revents & POLLIN) { 80 int len = read(pollfds[i].fd, libbuf, sizeof(libbuf)); 81 if (len<1) pollfds[ [all...] |
/external/google-breakpad/src/client/linux/crash_generation/ |
H A D | crash_generation_server.cc | 158 struct pollfd pollfds[2]; local 159 memset(&pollfds, 0, sizeof(pollfds)); 161 pollfds[0].fd = server_fd_; 162 pollfds[0].events = POLLIN; 164 pollfds[1].fd = control_pipe_in_; 165 pollfds[1].events = POLLIN; 169 int nevents = poll(pollfds, sizeof(pollfds)/sizeof(pollfds[ [all...] |
/external/mtpd/ |
H A D | mtpd.c | 157 struct pollfd pollfds[3]; local 185 pollfds[0].fd = the_socket; 186 pollfds[0].events = POLLIN; 187 pollfds[1].fd = signals[0]; 188 pollfds[1].events = POLLIN; 189 pollfds[2].fd = control; 190 pollfds[2].events = 0; 193 if (poll(pollfds, 3, timeout ? timeout : -1) == -1 && errno != EINTR) { 197 if (pollfds[1].revents) { 200 if (pollfds[ [all...] |
/external/ipsec-tools/ |
H A D | main.c | 131 static struct pollfd pollfds[10]; variable in typeref:struct:pollfd 152 pollfds[monitors].fd = fd; 153 pollfds[monitors].events = callback ? POLLIN : 0; 186 if (poll(pollfds, monitors, timeout) > 0) { 189 if (pollfds[i].revents & POLLHUP) { 190 do_plog(LLV_INFO, "Connection is closed\n", pollfds[i].fd); 197 if (pollfds[i].revents & POLLIN) { 198 callbacks[i](pollfds[i].fd);
|
/external/ltp/testcases/kernel/pty/ |
H A D | hangup01.c | 91 struct pollfd pollfds[1]; local 98 pollfds[0].fd = masterfd; 99 pollfds[0].events = POLLIN; 103 while ((i = poll(pollfds, 1, -1)) == 1) {
|
/external/toybox/toys/pending/ |
H A D | tftpd.c | 94 struct pollfd pollfds[1]; local 100 pollfds[0].fd = TT.sfd; 166 pollfds[0].events = POLLIN; 167 pollfds[0].fd = TT.sfd; 168 poll_ret = poll(pollfds, 1, timeout); 178 len = read(pollfds[0].fd, rpkt, blksize + 4);
|
/external/valgrind/coregrind/ |
H A D | vgdb.c | 846 struct pollfd pollfds[NumConnectionKind]; local 849 pollfds[FROM_GDB].fd = from_gdb; 850 pollfds[FROM_GDB].events = POLLIN; 851 pollfds[FROM_GDB].revents = 0; 852 pollfds[TO_GDB].fd = to_gdb; 853 pollfds[TO_GDB].events = 0; 854 pollfds[TO_GDB].revents = 0; 857 pollfds[FROM_PID].fd = from_pid; 858 pollfds[FROM_PID].events = POLLIN; 859 pollfds[FROM_PI [all...] |
/external/libusb/libusb/ |
H A D | io.c | 1200 if (ctx->pollfds) 1201 free(ctx->pollfds); 1804 * the availability of the events lock when we are modifying pollfds 2108 if (ctx->pollfds) { 2109 free(ctx->pollfds); 2110 ctx->pollfds = NULL; 2117 ctx->pollfds = calloc(ctx->pollfds_cnt, sizeof(*ctx->pollfds)); 2118 if (!ctx->pollfds) { 2127 ctx->pollfds[ 2759 libusb_free_pollfds(const struct libusb_pollfd **pollfds) argument [all...] |
H A D | libusbi.h | 318 struct pollfd *pollfds; member in struct:libusb_context 337 /* The list of pollfds has been modified */
|
H A D | libusb.h | 1869 void LIBUSB_CALL libusb_free_pollfds(const struct libusb_pollfd **pollfds);
|
/external/libmicrohttpd/src/testspdy/ |
H A D | test_notls.c | 613 struct pollfd pollfds[1]; local 642 pollfds[0].fd = fd; 643 ctl_poll(pollfds, &connection); 648 int nfds = poll(pollfds, npollfds, -1); 652 if(pollfds[0].revents & (POLLIN | POLLOUT)) { 655 if((pollfds[0].revents & POLLHUP) || (pollfds[0].revents & POLLERR)) { 658 ctl_poll(pollfds, &connection);
|
H A D | test_new_connection.c | 663 struct pollfd pollfds[1]; local 704 pollfds[0].fd = fd; 705 ctl_poll(pollfds, &connection); 710 int nfds = poll(pollfds, npollfds, -1); 714 if(pollfds[0].revents & (POLLIN | POLLOUT)) { 717 if((pollfds[0].revents & POLLHUP) || (pollfds[0].revents & POLLERR)) { 720 ctl_poll(pollfds, &connection);
|
H A D | test_request_response.c | 651 struct pollfd pollfds[1]; local 692 pollfds[0].fd = fd; 693 ctl_poll(pollfds, &connection); 698 int nfds = poll(pollfds, npollfds, -1); 702 if(pollfds[0].revents & (POLLIN | POLLOUT)) { 705 if((pollfds[0].revents & POLLHUP) || (pollfds[0].revents & POLLERR)) { 708 ctl_poll(pollfds, &connection);
|
/external/wpa_supplicant_8/hostapd/src/utils/ |
H A D | eloop.c | 83 int max_poll_fds; /* number of pollfds currently allocated */ 84 struct pollfd *pollfds; member in struct:eloop_data 293 n = os_realloc_array(eloop.pollfds, nmax, 299 eloop.pollfds = n; 438 struct pollfd *pollfds, 454 pollfds[nxt].fd = fd; 455 pollfds[nxt].events = POLLIN; 456 pollfds[nxt].revents = 0; 457 pollfds_map[fd] = &(pollfds[nxt]); 472 pfd = &(pollfds[nx 435 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 | 83 int max_poll_fds; /* number of pollfds currently allocated */ 84 struct pollfd *pollfds; member in struct:eloop_data 293 n = os_realloc_array(eloop.pollfds, nmax, 299 eloop.pollfds = n; 438 struct pollfd *pollfds, 454 pollfds[nxt].fd = fd; 455 pollfds[nxt].events = POLLIN; 456 pollfds[nxt].revents = 0; 457 pollfds_map[fd] = &(pollfds[nxt]); 472 pfd = &(pollfds[nx 435 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 | 83 int max_poll_fds; /* number of pollfds currently allocated */ 84 struct pollfd *pollfds; member in struct:eloop_data 293 n = os_realloc_array(eloop.pollfds, nmax, 299 eloop.pollfds = n; 438 struct pollfd *pollfds, 454 pollfds[nxt].fd = fd; 455 pollfds[nxt].events = POLLIN; 456 pollfds[nxt].revents = 0; 457 pollfds_map[fd] = &(pollfds[nxt]); 472 pfd = &(pollfds[nx 435 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/ppp/pppd/ |
H A D | sys-solaris.c | 228 static struct pollfd pollfds[MAX_POLLFDS]; variable in typeref:struct:pollfd 1374 if (poll(pollfds, n_pollfds, t) < 0 && errno != EINTR) 1387 if (pollfds[n].fd == fd) 1390 pollfds[n_pollfds].fd = fd; 1391 pollfds[n_pollfds].events = POLLIN | POLLPRI | POLLHUP; 1406 if (pollfds[n].fd == fd) { 1408 pollfds[n-1] = pollfds[n];
|
/external/libcups/cups/ |
H A D | http-support.c | 130 static int http_poll_cb(struct pollfd *pollfds, unsigned int num_pollfds, 2317 struct pollfd *pollfds, /* I - File descriptors */ 2325 return (poll(pollfds, num_pollfds, 2000)); 2316 http_poll_cb( struct pollfd *pollfds, unsigned int num_pollfds, int timeout, void *context) argument
|
H A D | dest.c | 192 static int cups_dnssd_poll_cb(struct pollfd *pollfds, 3149 struct pollfd *pollfds, /* I - File descriptors */ 3161 val = poll(pollfds, num_pollfds, 250); 3148 cups_dnssd_poll_cb( struct pollfd *pollfds, unsigned int num_pollfds, int timeout, void *context) argument
|
/external/libusb/include/libusb/ |
H A D | libusbi.h | 318 struct pollfd *pollfds; member in struct:libusb_context 337 /* The list of pollfds has been modified */
|
H A D | libusb.h | 1869 void LIBUSB_CALL libusb_free_pollfds(const struct libusb_pollfd **pollfds);
|