/external/grpc-grpc/test/core/iomgr/ |
D | wakeup_fd_cv_test.cc | 104 struct pollfd pfds[6]; in test_poll_cv_trigger() local 117 pfds[0].fd = cvfd1.read_fd; in test_poll_cv_trigger() 118 pfds[1].fd = cvfd2.read_fd; in test_poll_cv_trigger() 119 pfds[2].fd = 20; in test_poll_cv_trigger() 120 pfds[3].fd = 30; in test_poll_cv_trigger() 121 pfds[4].fd = cvfd3.read_fd; in test_poll_cv_trigger() 122 pfds[5].fd = 50; in test_poll_cv_trigger() 124 pfds[0].events = 0; in test_poll_cv_trigger() 125 pfds[1].events = POLLIN; in test_poll_cv_trigger() 126 pfds[2].events = POLLIN | POLLHUP; in test_poll_cv_trigger() [all …]
|
/external/ltp/testcases/kernel/syscalls/lseek/ |
D | lseek02.c | 28 static int pfds[2]; variable 44 {&pfds[0], SEEK_SET, ESPIPE}, 45 {&pfds[0], SEEK_CUR, ESPIPE}, 46 {&pfds[0], SEEK_END, ESPIPE}, 78 SAFE_PIPE(pfds); in setup() 91 if (pfds[0] > 0) in cleanup() 92 SAFE_CLOSE(pfds[0]); in cleanup() 94 if (pfds[1] > 0) in cleanup() 95 SAFE_CLOSE(pfds[1]); in cleanup()
|
/external/toybox/toys/pending/ |
D | telnet.c | 236 struct pollfd pfds[2]; in telnet_main() local 252 pfds[0].fd = 0; in telnet_main() 253 pfds[0].events = POLLIN; in telnet_main() 254 pfds[1].fd = TT.sock; in telnet_main() 255 pfds[1].events = POLLIN; in telnet_main() 257 if (poll(pfds, 2, -1) < 0) { in telnet_main() 261 if (pfds[0].revents) { in telnet_main() 265 if (pfds[1].revents) { in telnet_main()
|
/external/bcc/src/cc/ |
D | perf_reader.c | 222 struct pollfd pfds[num_readers]; in perf_reader_poll() local 226 pfds[i].fd = readers[i]->fd; in perf_reader_poll() 227 pfds[i].events = POLLIN; in perf_reader_poll() 230 if (poll(pfds, num_readers, timeout) > 0) { in perf_reader_poll() 232 if (pfds[i].revents & POLLIN) in perf_reader_poll()
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/ |
D | ev_poll_posix.cc | 978 struct pollfd* pfds; local 983 pfds = pollfd_space; 987 const size_t pfd_size = sizeof(*pfds) * (pollset->fd_count + 2); 990 pfds = static_cast<struct pollfd*>(buf); 997 pfds[0].fd = GRPC_WAKEUP_FD_GET_READ_FD(&worker.wakeup_fd->fd); 998 pfds[0].events = POLLIN; 999 pfds[0].revents = 0; 1008 pfds[pfd_count].fd = pollset->fds[i]->fd; 1009 pfds[pfd_count].revents = 0; 1018 pfds[i].events = static_cast<short>( [all …]
|
/external/ltp/testcases/kernel/syscalls/poll/ |
D | poll02.c | 35 struct pollfd pfds[] = { in sample_fn() local 40 TEST(poll(pfds, 1, sleep_ms)); in sample_fn()
|
/external/libcups/cups/ |
D | http-addrlist.c | 74 struct pollfd pfds[100]; /* Polled file descriptors */ in httpAddrConnect2() local 274 pfds[i].fd = fds[i]; in httpAddrConnect2() 275 pfds[i].events = POLLIN | POLLOUT; in httpAddrConnect2() 278 result = poll(pfds, (nfds_t)nfds, addrlist ? 100 : remaining > 250 ? 250 : remaining); in httpAddrConnect2() 310 DEBUG_printf(("pfds[%d].revents=%x\n", i, pfds[i].revents)); in httpAddrConnect2() 311 if (pfds[i].revents && !(pfds[i].revents & (POLLERR | POLLHUP))) in httpAddrConnect2() 328 else if (pfds[i].revents & (POLLERR | POLLHUP)) in httpAddrConnect2()
|
/external/adhd/cras/src/alsa_plugin/ |
D | pcm_cras.c | 85 static int snd_pcm_cras_poll_revents(snd_pcm_ioplug_t *io, struct pollfd *pfds, in snd_pcm_cras_poll_revents() argument 91 if (pfds == NULL || nfds != 1 || revents == NULL) in snd_pcm_cras_poll_revents() 93 rc = read(pfds[0].fd, buf, 1); in snd_pcm_cras_poll_revents() 98 *revents = pfds[0].revents & ~(POLLIN | POLLOUT); in snd_pcm_cras_poll_revents() 99 if (pfds[0].revents & POLLIN) in snd_pcm_cras_poll_revents()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | ev_poll_posix.cc | 1014 struct pollfd* pfds; local 1019 pfds = pollfd_space; 1023 const size_t pfd_size = sizeof(*pfds) * (pollset->fd_count + 2); 1026 pfds = static_cast<struct pollfd*>(buf); 1033 pfds[0].fd = GRPC_WAKEUP_FD_GET_READ_FD(&worker.wakeup_fd->fd); 1034 pfds[0].events = POLLIN; 1035 pfds[0].revents = 0; 1044 pfds[pfd_count].fd = pollset->fds[i]->fd; 1045 pfds[pfd_count].revents = 0; 1054 pfds[i].events = static_cast<short>( [all …]
|
/external/blktrace/ |
D | blktrace.c | 166 struct pollfd *pfds; member 231 struct pollfd *pfds; member 1648 free(tp->pfds); in close_ios() 1660 tp->pfds = calloc(ndevs, sizeof(struct pollfd)); in open_ios() 1661 memset(tp->pfds, 0, ndevs * sizeof(struct pollfd)); in open_ios() 1665 pfd = tp->pfds; in open_ios() 1721 struct pollfd *pfd = tp->pfds; in handle_pfds_file() 1764 struct pollfd *pfd = tp->pfds; in handle_pfds_netclient() 1798 struct pollfd *pfd = tp->pfds; in handle_pfds_entries() 1856 ndone = poll(tp->pfds, ndevs, to_val); in thread_main() [all …]
|
/external/grpc-grpc/test/cpp/end2end/ |
D | nonblocking_test.cc | 47 int maybe_assert_non_blocking_poll(struct pollfd* pfds, nfds_t nfds, in maybe_assert_non_blocking_poll() argument 52 return poll(pfds, nfds, timeout); in maybe_assert_non_blocking_poll()
|
/external/fmtlib/test/ |
D | posix-mock.h | 63 int pipe(int* pfds, unsigned psize, int textmode);
|
D | posix-mock-test.cc | 157 int test::pipe(int* pfds, unsigned psize, int textmode) { in pipe() argument 159 return _pipe(pfds, psize, textmode); in pipe()
|
/external/mesa3d/src/vulkan/wsi/ |
D | wsi_common_x11.c | 914 struct pollfd pfds; in x11_acquire_next_image_poll_x11() local 942 pfds.fd = xcb_get_file_descriptor(chain->conn); in x11_acquire_next_image_poll_x11() 943 pfds.events = POLLIN; in x11_acquire_next_image_poll_x11() 944 ret = poll(&pfds, 1, timeout / 1000 / 1000); in x11_acquire_next_image_poll_x11()
|
/external/adhd/cras/src/tests/ |
D | alsa_card_unittest.cc | 1160 struct pollfd* pfds, in snd_hctl_poll_descriptors() argument 1163 memcpy(pfds, snd_hctl_poll_descriptors_fds, num * sizeof(*pfds)); in snd_hctl_poll_descriptors()
|
D | alsa_io_unittest.cc | 2987 struct pollfd* pfds, in snd_pcm_poll_descriptors() argument 2990 pfds[0].events = POLLIN; in snd_pcm_poll_descriptors() 2991 pfds[0].fd = 99; in snd_pcm_poll_descriptors()
|