/external/toybox/lib/ |
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[i].revents = POLLHUP [all...] |
/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; 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/ |
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/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 | 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[2].revents) [all...] |
/hardware/qcom/camera/msm8998/QCamera2/HAL3/test/ |
QCameraHAL3RawSnapshotTest.cpp | 224 struct pollfd pollfds; local 228 pollfds.fd = readfd; 229 pollfds.events = POLLIN | POLLPRI; 231 ready = poll(&pollfds, (nfds_t)num_of_fds, -1); 233 if (pollfds.revents & (POLLIN | POLLPRI)) { 236 nread = read(pollfds.fd, &msg, sizeof(buffer_thread_msg_t));
|
QCameraHAL3SnapshotTest.cpp | 214 struct pollfd pollfds; local 218 pollfds.fd = readfd; 219 pollfds.events = POLLIN | POLLPRI; 221 ready = poll(&pollfds, (nfds_t)num_of_fds, -1); 224 if (pollfds.revents & (POLLIN | POLLPRI)) { 227 nread = read(pollfds.fd, &msg, sizeof(buffer_thread_msg_t));
|
/build/make/tools/makeparallel/ |
makeparallel.cpp | 245 pollfd pollfds[] = {{in_fd, POLLIN, 0}}; local 247 while ((ret = TEMP_FAILURE_RETRY(poll(pollfds, 1, 0))) != 0) { 250 } else if (pollfds[0].revents != POLLIN) { 251 error(EXIT_FAILURE, 0, "unexpected event %d\n", pollfds[0].revents);
|
/device/google/contexthub/util/nanotool/ |
androidcontexthub.cpp | 241 struct pollfd pollfds[kDeviceFileCount]; local 242 int fd_count = ResetPollFds(pollfds, kDeviceFileCount); 245 int ret = poll(pollfds, fd_count, timeout); 257 if (pollfds[i].revents & POLLIN) { 258 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);
|
/external/v4l2_codec2/vda/ |
v4l2_device.cc | 150 struct pollfd pollfds[2]; local 154 pollfds[0].fd = device_poll_interrupt_fd_.get(); 155 pollfds[0].events = POLLIN | POLLERR; 160 pollfds[nfds].fd = device_fd_.get(); 161 pollfds[nfds].events = POLLIN | POLLOUT | POLLERR | POLLPRI; 166 if (HANDLE_EINTR(poll(pollfds, nfds, -1)) == -1) { 170 *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI);
|
/system/core/adb/ |
fdevent.cpp | 226 static std::string dump_pollfds(const std::vector<adb_pollfd>& pollfds) { 228 for (const auto& pollfd : pollfds) { 242 std::vector<adb_pollfd> pollfds; local 244 pollfds.push_back(pair.second.pollfd); 246 CHECK_GT(pollfds.size(), 0u); 247 D("poll(), pollfds = %s", dump_pollfds(pollfds).c_str()); 248 int ret = adb_poll(&pollfds[0], pollfds.size(), -1); 253 for (const auto& pollfd : pollfds) { [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...] |
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
eventlib_p.h | 234 struct pollfd *pollfds; /* Allocated as needed */ member in struct:__anon1335
|
/external/valgrind/coregrind/ |
vgdb.c | 841 struct pollfd pollfds[NumConnectionKind]; local 844 pollfds[FROM_GDB].fd = from_gdb; 845 pollfds[FROM_GDB].events = POLLIN; 846 pollfds[FROM_GDB].revents = 0; 847 pollfds[TO_GDB].fd = to_gdb; 848 pollfds[TO_GDB].events = 0; 849 pollfds[TO_GDB].revents = 0; 852 pollfds[FROM_PID].fd = from_pid; 853 pollfds[FROM_PID].events = POLLIN; 854 pollfds[FROM_PID].revents = 0 [all...] |
/external/libusb/libusb/ |
libusbi.h | 318 struct pollfd *pollfds; member in struct:libusb_context 337 /* The list of pollfds has been modified */ [all...] |
/external/ppp/pppd/ |
sys-solaris.c | 228 static struct pollfd pollfds[MAX_POLLFDS]; variable in typeref:struct:pollfd [all...] |