/external/toybox/toys/other/ |
netcat.c | 86 struct pollfd pollfds[2]; local 88 memset(pollfds, 0, 2*sizeof(struct pollfd)); 89 pollfds[0].events = pollfds[1].events = POLLIN; 100 if (TT.filename) pollfds[0].fd = xopen(TT.filename, O_RDWR); 128 pollfds[0].fd = sockfd; 155 pollfds[0].fd = accept(sockfd, (struct sockaddr *)&address, &len); 156 if (pollfds[0].fd<0) perror_exit("accept"); 161 child = forkpty(&(pollfds[1].fd), NULL, NULL, NULL); 168 int fd = pollfds[0].fd [all...] |
/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...] |
/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);
|
/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);
|
/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...] |
/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/extras/simpleperf/ |
event_selection_set.h | 61 void PreparePollForEventFiles(std::vector<pollfd>* pollfds);
|
event_selection_set.cpp | 123 void EventSelectionSet::PreparePollForEventFiles(std::vector<pollfd>* pollfds) { 128 pollfds->push_back(poll_fd);
|
cmd_record.cpp | 124 std::vector<pollfd> pollfds; local 125 event_selection_set_.PreparePollForEventFiles(&pollfds); 162 poll(&pollfds[0], pollfds.size(), -1);
|
/external/wpa_supplicant_8/src/utils/ |
eloop.c | 77 int max_poll_fds; /* number of pollfds currently allocated */ 78 struct pollfd *pollfds; member in struct:eloop_data 205 n = os_realloc_array(eloop.pollfds, nmax, 211 eloop.pollfds = n; 345 struct pollfd *pollfds, 361 pollfds[nxt].fd = fd; 362 pollfds[nxt].events = POLLIN; 363 pollfds[nxt].revents = 0; 364 pollfds_map[fd] = &(pollfds[nxt]); 379 pfd = &(pollfds[nxt]) [all...] |
/system/core/debuggerd/ |
debuggerd.cpp | 196 pollfd pollfds[1]; local 197 pollfds[0].fd = fd; 198 pollfds[0].events = POLLIN; 199 pollfds[0].revents = 0; 200 status = TEMP_FAILURE_RETRY(poll(pollfds, 1, 3000));
|
/system/core/liblog/ |
log_read_kern.c | 507 struct pollfd *p, *pollfds = NULL; local 545 pollfds = calloc(nfds, sizeof(struct pollfd)); 546 if (!pollfds) { 551 p = pollfds; 564 poll(pollfds, nfds, logger_list->timeout_ms)); 692 free(pollfds);
|
/external/linux-tools-perf/src/tools/perf/ |
builtin-kvm.c | 1066 struct pollfd *pollfds = NULL; local 1094 /* copy pollfds -- need to add timerfd and stdin */ 1096 pollfds = zalloc(sizeof(struct pollfd) * (nr_fds + 2)); 1097 if (!pollfds) { 1101 memcpy(pollfds, kvm->evlist->pollfd, 1110 pollfds[nr_fds].fd = kvm->timerfd; 1111 pollfds[nr_fds].events = POLLIN; 1114 pollfds[nr_fds].fd = fileno(stdin); 1115 pollfds[nr_fds].events = POLLIN; 1135 if (pollfds[nr_stdin].revents & POLLIN [all...] |
/bionic/libc/bionic/ |
system_properties.cpp | 511 pollfd pollfds[1]; local 512 pollfds[0].fd = fd; 513 pollfds[0].events = 0; 514 const int poll_result = TEMP_FAILURE_RETRY(poll(pollfds, 1, 250 /* ms */)); 515 if (poll_result == 1 && (pollfds[0].revents & POLLHUP) != 0) {
|
/external/libusb/libusb/ |
io.c | [all...] |
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...] |
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
eventlib_p.h | 234 struct pollfd *pollfds; /* Allocated as needed */ member in struct:__anon1093
|