/external/toybox/toys/other/ |
netcat.c | 96 struct pollfd pollfds[2]; local 98 memset(pollfds, 0, 2*sizeof(struct pollfd)); 99 pollfds[0].events = pollfds[1].events = POLLIN; 108 if (TT.filename) pollfds[0].fd = xopen(TT.filename, O_RDWR); 136 pollfds[0].fd = sockfd; 163 pollfds[0].fd = accept(sockfd, (struct sockaddr *)&address, &len); 164 if (pollfds[0].fd<0) perror_exit("accept"); 169 child = forkpty(&(pollfds[1].fd), NULL, NULL, NULL); 179 int fd = pollfds[0].fd [all...] |
/external/ipsec-tools/ |
main.c | 132 static struct pollfd pollfds[10]; variable in typeref:struct:pollfd 153 pollfds[monitors].fd = fd; 154 pollfds[monitors].events = callback ? POLLIN : 0; 200 if (poll(pollfds, monitors, timeout) > 0) { 203 if (pollfds[i].revents & POLLHUP) { 204 do_plog(LLV_INFO, "Connection is closed\n", pollfds[i].fd); 209 if (pollfds[i].revents & POLLIN) { 210 callbacks[i](pollfds[i].fd);
|
/build/tools/makeparallel/ |
makeparallel.cpp | 244 pollfd pollfds[] = {{in_fd, POLLIN, 0}}; local 246 while ((ret = TEMP_FAILURE_RETRY(poll(pollfds, 1, 0))) != 0) { 249 } else if (pollfds[0].revents != POLLIN) { 250 error(EXIT_FAILURE, 0, "unexpected event %d\n", pollfds[0].revents);
|
/external/google-breakpad/src/client/linux/crash_generation/ |
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[0]), -1) [all...] |
/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...] |
/device/google/contexthub/util/nanotool/ |
androidcontexthub.cpp | 217 struct pollfd pollfds[kDeviceFileCount]; local 218 int fd_count = ResetPollFds(pollfds, kDeviceFileCount); 221 int ret = poll(pollfds, fd_count, timeout); 233 if (pollfds[i].revents & POLLIN) { 234 read_fd = pollfds[i].fd;
|
/external/toybox/toys/pending/ |
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);
|
/system/core/adb/ |
fdevent.cpp | 220 static std::string dump_pollfds(const std::vector<adb_pollfd>& pollfds) { 222 for (const auto& pollfd : pollfds) { 236 std::vector<adb_pollfd> pollfds; local 238 pollfds.push_back(pair.second.pollfd); 240 CHECK_GT(pollfds.size(), 0u); 241 D("poll(), pollfds = %s", dump_pollfds(pollfds).c_str()); 242 int ret = adb_poll(&pollfds[0], pollfds.size(), -1); 247 for (const auto& pollfd : pollfds) { [all...] |
/external/avahi/avahi-common/ |
simple-watch.c | 68 struct pollfd* pollfds; member in struct:AvahiSimplePoll 179 w->simple_poll->pollfds[w->idx] = w->pollfd; 189 return w->simple_poll->pollfds[w->idx].revents; 343 s->pollfds = NULL; 374 avahi_free(s->pollfds); 396 if (!(n = avahi_realloc(s->pollfds, sizeof(struct pollfd) * s->max_pollfds))) 399 s->pollfds = n; 403 s->pollfds[0].fd = s->wakeup_pipe[0]; 404 s->pollfds[0].events = POLLIN; 405 s->pollfds[0].revents = 0 [all...] |
/external/libmicrohttpd/src/testspdy/ |
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);
|
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);
|
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/src/utils/ |
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[nxt]) [all...] |
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/ |
mpu_iio.c | 62 static struct pollfd pollfds[FEAT_NUM]; variable in typeref:struct:pollfd 472 VARVAL("%d", pollfds[i].fd); 473 VARVAL("%d", pollfds[i].events); 474 VARVAL("%d", pollfds[i].revents); 488 pollfds[j].fd = open(file_name, O_RDONLY | O_NONBLOCK); 489 if (pollfds[j].fd < 0) { 494 pollfds[j].events = POLLPRI | POLLERR; 495 pollfds[j].revents = 0; 497 dmp_feat[i].pollfd = &pollfds[j]; 506 close(pollfds[i].fd) [all...] |
/system/core/debuggerd/ |
debuggerd.cpp | 198 pollfd pollfds[1]; local 199 pollfds[0].fd = fd; 200 pollfds[0].events = POLLIN; 201 pollfds[0].revents = 0; 202 status = TEMP_FAILURE_RETRY(poll(pollfds, 1, 3000));
|
/system/extras/simpleperf/ |
cmd_record.cpp | 242 std::vector<pollfd> pollfds; local 243 event_selection_set_.PreparePollForEventFiles(&pollfds); 265 poll(&pollfds[0], pollfds.size(), -1);
|
/bionic/libc/bionic/ |
system_properties.cpp | 563 pollfd pollfds[1]; local 564 pollfds[0].fd = fd; 565 pollfds[0].events = 0; 566 const int poll_result = TEMP_FAILURE_RETRY(poll(pollfds, 1, 250 /* ms */)); 567 if (poll_result == 1 && (pollfds[0].revents & POLLHUP) != 0) { [all...] |
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
eventlib_p.h | 234 struct pollfd *pollfds; /* Allocated as needed */ member in struct:__anon1181
|
/external/libusb/libusb/ |
libusbi.h | 167 struct list_head pollfds; member in struct:libusb_context
|
/external/valgrind/coregrind/ |
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_PID].revents = 0 [all...] |
/external/avahi/avahi-autoipd/ |
main.c | 1067 struct pollfd pollfds[FD_MAX]; local 1142 memset(pollfds, 0, sizeof(pollfds)); 1143 pollfds[FD_ARP].fd = fd; 1144 pollfds[FD_ARP].events = POLLIN; 1145 pollfds[FD_IFACE].fd = iface_fd; 1146 pollfds[FD_IFACE].events = POLLIN; 1147 pollfds[FD_SIGNAL].fd = daemon_signal_fd(); 1148 pollfds[FD_SIGNAL].events = POLLIN; [all...] |
/external/ppp/pppd/ |
sys-solaris.c | 228 static struct pollfd pollfds[MAX_POLLFDS]; variable in typeref:struct:pollfd [all...] |