HomeSort by relevance Sort by last modified time
    Searched refs:pollfds (Results 1 - 25 of 34) sorted by null

1 2

  /external/toybox/lib/
net.c 74 struct pollfd pollfds[2]; local
77 memset(pollfds, 0, 2*sizeof(struct pollfd));
78 pollfds[0].events = pollfds[1].events = POLLIN;
79 pollfds[0].fd = in1;
80 pollfds[1].fd = in2;
84 if (!xpoll(pollfds, pollcount, timeout)) return pollcount;
87 if (pollfds[i].revents & POLLIN) {
88 int len = read(pollfds[i].fd, libbuf, sizeof(libbuf));
89 if (len<1) pollfds[i].revents = POLLHUP
    [all...]
  /cts/tests/tests/graphics/jni/
android_graphics_cts_SyncTest.cpp 43 std::unique_ptr<pollfd[]> pollfds = std::make_unique<pollfd[]>(n);
47 pollfds[i].fd = fds[i];
48 pollfds[i].events = POLLIN;
54 ret = poll(pollfds.get(), n, -1 /* infinite timeout */);
61 if (pollfds[i].fd < 0)
63 if ((pollfds[i].revents & (POLLERR | POLLNVAL)) != 0)
65 else if ((pollfds[i].revents & POLLIN) != 0)
  /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/adhd/cras/src/server/
cras_server.c 415 struct pollfd *pollfds; local
419 pollfds = malloc(sizeof(*pollfds) * pollfds_size);
507 pollfds = realloc(pollfds,
508 sizeof(*pollfds) * pollfds_size);
511 pollfds[0].fd = socket_fd;
512 pollfds[0].events = POLLIN;
516 pollfds[num_pollfds].fd = elm->fd;
517 pollfds[num_pollfds].events = POLLIN
    [all...]
cras_alsa_card.c 535 struct pollfd *pollfds; local
538 pollfds = malloc(n * sizeof(*pollfds));
539 if (pollfds == NULL) {
544 n = snd_hctl_poll_descriptors(alsa_card->hctl, pollfds, n);
548 free(pollfds);
552 registered_fd->fd = pollfds[i].fd;
561 free(pollfds);
565 free(pollfds);
audio_thread.c 1526 struct pollfd *pollfds; local
    [all...]
cras_bt_device.c 820 struct pollfd *pollfds; local
847 pollfds = (struct pollfd *)malloc(sizeof(*pollfds));
848 pollfds[0].fd = sk;
849 pollfds[0].events = POLLOUT;
860 err = ppoll(pollfds, 1, &timeout, NULL);
866 if (pollfds[0].revents & (POLLERR | POLLHUP)) {
868 pollfds[0].revents);
  /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...]
  /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);
  /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/ltp/testcases/kernel/pty/
hangup01.c 92 struct pollfd pollfds[1]; local
99 pollfds[0].fd = masterfd;
100 pollfds[0].events = POLLIN;
104 while ((i = poll(pollfds, 1, -1)) == 1) {
  /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);
  /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));
  /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...]
  /bionic/libc/bionic/
system_property_set.cpp 200 pollfd pollfds[1];
201 pollfds[0].fd = s;
202 pollfds[0].events = 0;
203 const int poll_result = TEMP_FAILURE_RETRY(poll(pollfds, 1, 250 /* ms */));
204 if (poll_result == 1 && (pollfds[0].revents & POLLHUP) != 0) {
  /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...]
  /external/v4l2_codec2/vda/
v4l2_device.cc 156 struct pollfd pollfds[2]; local
160 pollfds[0].fd = device_poll_interrupt_fd_.get();
161 pollfds[0].events = POLLIN | POLLERR;
166 pollfds[nfds].fd = device_fd_.get();
167 pollfds[nfds].events = POLLIN | POLLOUT | POLLERR | POLLPRI;
172 if (HANDLE_EINTR(poll(pollfds, nfds, -1)) == -1) {
176 *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI);
  /external/libusb/libusb/
io.c     [all...]
  /external/libmicrohttpd/src/testspdy/
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_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);
  /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);
  /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...]
  /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/adhd/cras/src/libcras/
cras_client.c 977 struct pollfd pollfds[2]; local
983 pollfds[0].fd = wake_fd;
984 pollfds[0].events = POLLIN;
987 pollfds[1].fd = read_fd;
988 pollfds[1].events = POLLIN;
991 rc = poll(pollfds, nfds, -1);
994 if (read_fd >= 0 && pollfds[1].revents & POLLIN) {
999 if (pollfds[0].revents & POLLIN) {
1918 struct pollfd pollfds[4]; local
    [all...]

Completed in 1269 milliseconds

1 2