Home
last modified time | relevance | path

Searched refs:pollfd (Results 1 - 25 of 284) sorted by relevance

12345678910>>...12

/third_party/pulseaudio/src/pulsecore/
H A Drtpoll.c49 struct pollfd *pollfd, *pollfd2; member
75 struct pollfd *pollfd; member
96 p->pollfd = pa_xnew(struct pollfd, p->n_pollfd_alloc); in pa_rtpoll_new()
97 p->pollfd2 = pa_xnew(struct pollfd, p->n_pollfd_alloc); in pa_rtpoll_new()
108 struct pollfd *e, *t; in rtpoll_rebuild()
119 p->pollfd2 = pa_xrealloc(p->pollfd2, p->n_pollfd_alloc * sizeof(struct pollfd)); in rtpoll_rebuild()
128 size_t l = i->n_pollfd * sizeof(struct pollfd); in rtpoll_rebuild()
519 struct pollfd *pollfd; pa_rtpoll_item_new_fdsem() local
589 struct pollfd *pollfd; pa_rtpoll_item_new_asyncmsgq_read() local
623 struct pollfd *pollfd; pa_rtpoll_item_new_asyncmsgq_write() local
[all...]
/third_party/node/deps/cares/src/lib/
H A Dares_event_poll.c73 struct pollfd *pollfd = NULL; in ares_evsys_poll_wait() local
79 pollfd = ares_malloc_zero(sizeof(*pollfd) * num_fds); in ares_evsys_poll_wait()
83 pollfd[i].fd = ev->fd; in ares_evsys_poll_wait()
85 pollfd[i].events |= POLLIN; in ares_evsys_poll_wait()
88 pollfd[i].events |= POLLOUT; in ares_evsys_poll_wait()
94 rv = poll(pollfd, (nfds_t)num_fds, (timeout_ms == 0) ? -1 : (int)timeout_ms); in ares_evsys_poll_wait()
103 if (pollfd[i].revents == 0) { in ares_evsys_poll_wait()
109 ev = ares__htable_asvp_get_direct(e->ev_handles, pollfd[ in ares_evsys_poll_wait()
[all...]
/third_party/libwebsockets/lib/roles/raw-proxy/
H A Dops-raw-proxy.c29 struct lws_pollfd *pollfd) in rops_handle_POLLIN_raw_proxy()
37 if (!(pollfd->revents & LWS_POLLOUT)) in rops_handle_POLLIN_raw_proxy()
54 if ((pollfd->revents & pollfd->events & LWS_POLLIN) && in rops_handle_POLLIN_raw_proxy()
58 (pollfd->revents & pollfd->events & LWS_POLLOUT))) { in rops_handle_POLLIN_raw_proxy()
102 (pollfd->revents & pollfd->events & LWS_POLLOUT)) in rops_handle_POLLIN_raw_proxy()
108 if (!(pollfd->revents & LWS_POLLOUT)) in rops_handle_POLLIN_raw_proxy()
111 if (lws_handle_POLLOUT_event(wsi, pollfd)) { in rops_handle_POLLIN_raw_proxy()
28 rops_handle_POLLIN_raw_proxy(struct lws_context_per_thread *pt, struct lws *wsi, struct lws_pollfd *pollfd) rops_handle_POLLIN_raw_proxy() argument
[all...]
/third_party/node/test/wasi/c/
H A Dpoll.c9 struct pollfd fds[4]; in main()
27 fds[0] = (struct pollfd){.fd = -1, .events = 0, .revents = 0}; in main()
38 fds[0] = (struct pollfd){.fd = 1, .events = POLLOUT, .revents = 0}; in main()
39 fds[1] = (struct pollfd){.fd = 2, .events = POLLOUT, .revents = 0}; in main()
47 fds[0] = (struct pollfd){.fd = 1, .events = POLLOUT, .revents = 0}; in main()
48 fds[1] = (struct pollfd){.fd = 2, .events = POLLOUT, .revents = 0}; in main()
49 fds[2] = (struct pollfd){.fd = 1, .events = POLLOUT, .revents = 0}; in main()
50 fds[3] = (struct pollfd){.fd = 1, .events = POLLIN, .revents = 0}; in main()
63 fds[0] = (struct pollfd){.fd = 0, .events = POLLIN, .revents = 0}; in main()
/third_party/rust/crates/nix/src/
H A Dpoll.rs7 /// This is a wrapper around `libc::pollfd`.
18 pollfd: libc::pollfd,
26 pollfd: libc::pollfd {
37 PollFlags::from_bits(self.pollfd.revents) in revents()
62 PollFlags::from_bits(self.pollfd.events).unwrap() in events()
67 self.pollfd.events = events.bits(); in set_events()
73 self.pollfd.fd in as_raw_fd()
158 fds.as_mut_ptr() as *mut libc::pollfd, in poll()
[all...]
/third_party/pulseaudio/src/tests/
H A Drtpoll-test.c46 struct pollfd *pollfd; in START_TEST() local
54 pollfd = pa_rtpoll_item_get_pollfd(i, NULL); in START_TEST()
55 pollfd->fd = 0; in START_TEST()
56 pollfd->events = POLLIN; in START_TEST()
71 pollfd = pa_rtpoll_item_get_pollfd(i, NULL); in START_TEST()
72 pollfd->fd = 0; in START_TEST()
73 pollfd->events = POLLIN; in START_TEST()
H A Dlock-autospawn-test.c60 struct pollfd pollfd; in thread_func2() local
68 memset(&pollfd, 0, sizeof(pollfd)); in thread_func2()
69 pollfd.fd = fd; in thread_func2()
70 pollfd.events = POLLIN; in thread_func2()
72 fail_unless(pa_poll(&pollfd, 1, -1) == 1); in thread_func2()
/third_party/libwebsockets/lib/roles/raw-skt/
H A Dops-raw-skt.c80 struct lws_pollfd *pollfd)
91 if (!(pollfd->revents & LWS_POLLOUT))
114 !!(pollfd->revents & pollfd->events & LWS_POLLIN)))
121 if ((pollfd->revents & pollfd->events & LWS_POLLIN) &&
123 (pollfd->revents & pollfd->events & LWS_POLLOUT))) {
151 switch (lws_socks5c_handle_state(wsi, pollfd, &cce)) {
229 (pollfd
79 rops_handle_POLLIN_raw_skt(struct lws_context_per_thread *pt, struct lws *wsi, struct lws_pollfd *pollfd) global() argument
[all...]
/third_party/pulseaudio/src/modules/raop/
H A Draop-sink.c248 struct pollfd *pollfd; in sink_process_msg() local
252 pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, &nbfds); in sink_process_msg()
253 if (pollfd) { in sink_process_msg()
255 if (pollfd->fd >= 0) in sink_process_msg()
256 pa_close(pollfd->fd); in sink_process_msg()
257 pollfd++; in sink_process_msg()
442 struct pollfd *pollfd = NULL; in thread_func() local
466 pollfd in thread_func()
[all...]
/third_party/libwebsockets/lib/core-net/
H A Dservice.c62 lws_handle_POLLOUT_event(struct lws *wsi, struct lws_pollfd *pollfd) in lws_handle_POLLOUT_event() argument
133 if (pollfd) in lws_handle_POLLOUT_event()
135 lwsl_wsi_info(wsi, "failed at set pollfd"); in lws_handle_POLLOUT_event()
164 if (pollfd) { in lws_handle_POLLOUT_event()
169 lwsl_wsi_info(wsi, "failed at set pollfd"); in lws_handle_POLLOUT_event()
184 lwsl_wsi_info(wsi, "failed at set pollfd"); in lws_handle_POLLOUT_event()
638 lws_service_fd_tsi(struct lws_context *context, struct lws_pollfd *pollfd, in lws_service_fd_tsi() argument
653 if (!pollfd) { in lws_service_fd_tsi()
655 * calling with NULL pollfd for periodic background processing in lws_service_fd_tsi()
658 assert(pollfd); in lws_service_fd_tsi()
813 lws_service_fd(struct lws_context *context, struct lws_pollfd *pollfd) lws_service_fd() argument
[all...]
/third_party/pulseaudio/src/modules/
H A Dmodule-pipe-source.c134 struct pollfd *pollfd; in thread_func() local
136 pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, NULL); in thread_func()
139 if (u->source->thread_info.state == PA_SOURCE_RUNNING && pollfd->revents) { in thread_func()
174 pollfd->revents = 0; in thread_func()
179 pollfd->events = (short) (u->source->thread_info.state == PA_SOURCE_RUNNING ? POLLIN : 0); in thread_func()
187 pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, NULL); in thread_func()
189 if (pollfd->revents & ~POLLIN) { in thread_func()
211 struct pollfd *pollfd; in pa__init() local
[all...]
H A Dmodule-esound-sink.c170 struct pollfd *pollfd; in sink_process_msg() local
175 pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, NULL); in sink_process_msg()
176 pollfd->fd = u->fd; in sink_process_msg()
177 pollfd->events = pollfd->revents = 0; in sink_process_msg()
253 struct pollfd *pollfd; in thread_func() local
254 pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, NULL); in thread_func()
257 if (PA_SINK_IS_OPENED(u->sink->thread_info.state) && pollfd in thread_func()
363 struct pollfd* pollfd; thread_func() local
[all...]
H A Dmodule-pipe-sink.c370 struct pollfd *pollfd; in thread_func() local
373 pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, NULL); in thread_func()
380 if (pollfd->revents) { in thread_func()
384 pollfd->revents = 0; in thread_func()
389 pollfd->events = (short) (u->sink->thread_info.state == PA_SINK_RUNNING ? POLLOUT : 0); in thread_func()
397 pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, NULL); in thread_func()
399 if (pollfd->revents & ~POLLOUT) { in thread_func()
421 struct pollfd *pollfd; in pa__init() local
[all...]
/third_party/ltp/testcases/kernel/syscalls/pidfd_open/
H A Dpidfd_open03.c22 struct pollfd pollfd; in run() local
39 pollfd.fd = fd; in run()
40 pollfd.events = POLLIN; in run()
42 ready = poll(&pollfd, 1, -1); in run()
/third_party/ltp/testcases/kernel/syscalls/eventfd/
H A Deventfd06.c115 struct pollfd pollfd; in test_poll() local
120 pollfd.fd = evfd; in test_poll()
121 pollfd.events = POLLIN; in test_poll()
122 pollfd.revents = 0; in test_poll()
126 TEST(poll(&pollfd, 1, 10000)); in test_poll()
130 TST_EXP_EQ_LI(pollfd.revents & POLLERR, POLLERR); in test_poll()
/third_party/libwebsockets/lib/roles/h1/
H A Dops-h1.c331 lws_h1_server_socket_service(struct lws *wsi, struct lws_pollfd *pollfd) in lws_h1_server_socket_service() argument
342 if (!(pollfd->revents & pollfd->events & LWS_POLLIN)) in lws_h1_server_socket_service()
353 (pollfd->revents & pollfd->events & LWS_POLLOUT)) { in lws_h1_server_socket_service()
473 if (pollfd->revents & LWS_POLLOUT) in lws_h1_server_socket_service()
484 if (pollfd->revents & LWS_POLLOUT) in lws_h1_server_socket_service()
491 if (!(pollfd->revents & LWS_POLLOUT)) in lws_h1_server_socket_service()
508 lwsl_info("failed at set pollfd\n"); in lws_h1_server_socket_service()
564 struct lws_pollfd *pollfd) in rops_handle_POLLIN_h1()
563 rops_handle_POLLIN_h1(struct lws_context_per_thread *pt, struct lws *wsi, struct lws_pollfd *pollfd) rops_handle_POLLIN_h1() argument
[all...]
/third_party/NuttX/fs/vfs/
H A Dfs_select.c51 /* pollfd count in stack, optimization in order to avoid small memory allocation */
99 struct pollfd *pollset = NULL; in do_select()
100 struct pollfd pfd[POLL_STACK_CNT]; in do_select()
114 /* How many pollfd structures do we need to allocate? */ in do_select()
141 (void)memset_s(pollset, npfds * sizeof(struct pollfd), 0, npfds * sizeof(struct pollfd)); in do_select()
145 pollset = (struct pollfd *)zalloc(npfds * sizeof(struct pollfd)); in do_select()
/third_party/ltp/testcases/kernel/syscalls/userfaultfd/
H A Duserfaultfd01.c45 struct pollfd pollfd; in handle_thread() local
48 pollfd.fd = uffd; in handle_thread()
49 pollfd.events = POLLIN; in handle_thread()
50 nready = poll(&pollfd, 1, -1); in handle_thread()
/third_party/libwebsockets/lib/roles/raw-file/
H A Dops-raw-file.c29 struct lws_pollfd *pollfd) in rops_handle_POLLIN_raw_file()
33 if (pollfd->revents & LWS_POLLOUT) { in rops_handle_POLLIN_raw_file()
35 lwsl_wsi_info(wsi, "failed at set pollfd"); in rops_handle_POLLIN_raw_file()
43 if (pollfd->revents & LWS_POLLIN) { in rops_handle_POLLIN_raw_file()
52 if (pollfd->revents & LWS_POLLHUP) in rops_handle_POLLIN_raw_file()
53 if (!(pollfd->revents & LWS_POLLIN)) in rops_handle_POLLIN_raw_file()
28 rops_handle_POLLIN_raw_file(struct lws_context_per_thread *pt, struct lws *wsi, struct lws_pollfd *pollfd) rops_handle_POLLIN_raw_file() argument
/third_party/skia/third_party/externals/microhttpd/src/examples/
H A Dmhd2spdy_spdy.h37 spdy_ctl_poll(struct pollfd *pollfd,
73 spdy_get_pollfdset(struct pollfd fds[],
89 spdy_run(struct pollfd fds[],
/third_party/musl/porting/linux/user/include/fortify/
H A Dpoll.h27 int __poll_chk(struct pollfd*, nfds_t, int, size_t);
29 int __ppoll_chk(struct pollfd*, nfds_t, const struct timespec*, const sigset_t*, size_t);
34 int poll(struct pollfd* const fds __DIAGNOSE_PASS_OBJECT_SIZE, nfds_t fd_amount, int timeout)
51 int ppoll(struct pollfd* const fds __DIAGNOSE_PASS_OBJECT_SIZE, nfds_t fd_amount,
/third_party/musl/include/fortify/linux/
H A Dpoll.h27 int __poll_chk(struct pollfd*, nfds_t, int, size_t);
29 int __ppoll_chk(struct pollfd*, nfds_t, const struct timespec*, const sigset_t*, size_t);
34 int poll(struct pollfd* const fds __DIAGNOSE_PASS_OBJECT_SIZE, nfds_t fd_amount, int timeout)
51 int ppoll(struct pollfd* const fds __DIAGNOSE_PASS_OBJECT_SIZE, nfds_t fd_amount,
/third_party/libwebsockets/lib/roles/cgi/
H A Dops-cgi.c29 struct lws_pollfd *pollfd) in rops_handle_POLLIN_cgi()
36 !(pollfd->revents & pollfd->events & LWS_POLLIN)) in rops_handle_POLLIN_cgi()
40 !(pollfd->revents & pollfd->events & LWS_POLLOUT)) in rops_handle_POLLIN_cgi()
45 lwsl_wsi_info(wsi, "failed at set pollfd"); in rops_handle_POLLIN_cgi()
28 rops_handle_POLLIN_cgi(struct lws_context_per_thread *pt, struct lws *wsi, struct lws_pollfd *pollfd) rops_handle_POLLIN_cgi() argument
/third_party/rust/crates/rustix/src/backend/libc/io/
H A Dpoll_fd.rs50 /// `struct pollfd`—File descriptor and flags for use with [`poll`].
53 #[doc(alias = "pollfd")]
58 pollfd: c::pollfd,
65 fmt.debug_struct("pollfd") in fmt()
66 .field("fd", &self.pollfd.fd) in fmt()
67 .field("events", &self.pollfd.events) in fmt()
68 .field("revents", &self.pollfd.revents) in fmt()
83 self.pollfd.fd = fd.as_fd().as_raw_fd() as LibcFd; in set_fd()
89 self.pollfd in clear_revents()
[all...]
/third_party/pulseaudio/src/utils/
H A Dpacmd.c102 struct pollfd pollfd[3]; in main() local
103 struct pollfd *watch_socket, *watch_stdin, *watch_stdout; in main()
219 struct pollfd *p; in main()
237 pa_zero(pollfd); in main()
239 p = pollfd; in main()
264 if (pa_poll(pollfd, p-pollfd, -1) < 0) { in main()

Completed in 9 milliseconds

12345678910>>...12