/external/ipsec-tools/ |
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; 194 if (poll(pollfds, monitors, timeout) > 0) { 197 if (pollfds[i].revents & POLLHUP) { 198 do_plog(LLV_ERROR, "Connection is closed\n", pollfds[i].fd); 201 if (pollfds[i].revents & POLLIN) { 202 callbacks[i](pollfds[i].fd);
|
/bionic/libc/bionic/ |
system_properties.c | 160 struct pollfd pollfds[1]; local 194 pollfds[0].fd = s; 195 pollfds[0].events = 0; 196 r = TEMP_FAILURE_RETRY(poll(pollfds, 1, 250 /* ms */)); 197 if (r == 1 && (pollfds[0].revents & POLLHUP) != 0) {
|
/external/mtpd/ |
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[2].revents) [all...] |
/system/core/debuggerd/ |
debuggerd.c | 199 struct pollfd pollfds[1]; local 200 pollfds[0].fd = fd; 201 pollfds[0].events = POLLIN; 202 pollfds[0].revents = 0; 203 status = TEMP_FAILURE_RETRY(poll(pollfds, 1, 3000));
|
/external/wpa_supplicant_8/src/utils/ |
eloop.c | 62 int max_poll_fds; /* number of pollfds currently allocated */ 63 struct pollfd *pollfds; member in struct:eloop_data 168 n = os_realloc(eloop.pollfds, sizeof(struct pollfd) * nmax); 173 eloop.pollfds = n; 240 struct pollfd *pollfds, 256 pollfds[nxt].fd = fd; 257 pollfds[nxt].events = POLLIN; 258 pollfds[nxt].revents = 0; 259 pollfds_map[fd] = &(pollfds[nxt]); 274 pfd = &(pollfds[nxt]) [all...] |
/external/libusb/libusb/ |
libusbi.h | 167 struct list_head pollfds; member in struct:libusb_context
|
/external/ppp/pppd/ |
sys-solaris.c | 228 static struct pollfd pollfds[MAX_POLLFDS]; variable in typeref:struct:pollfd [all...] |
/external/valgrind/main/coregrind/ |
vgdb.c | 1773 struct pollfd pollfds[NumConnectionKind]; local [all...] |