Home
last modified time | relevance | path

Searched refs:pfds (Results 26 – 50 of 665) sorted by relevance

12345678910>>...27

/dports/audio/musicpd/mpd-0.23.6/src/lib/alsa/
H A DNonBlock.cxx36 struct pollfd *pfds = pfd_buffer.Get(count); in PrepareSockets() local
38 count = snd_pcm_poll_descriptors(pcm, pfds, count); in PrepareSockets()
46 m.ReplaceSocketList(pfds, count); in PrepareSockets()
58 const auto pfds = pfd_buffer.Get(count), end = pfds + count; in DispatchSockets() local
60 auto *i = pfds; in DispatchSockets()
71 int err = snd_pcm_poll_descriptors_revents(pcm, pfds, i - pfds, &dummy); in DispatchSockets()
85 struct pollfd *pfds = pfd_buffer.Get(count); in PrepareSockets() local
91 m.ReplaceSocketList(pfds, count); in PrepareSockets()
103 const auto pfds = pfd_buffer.Get(count), end = pfds + count; in DispatchSockets() local
105 auto *i = pfds; in DispatchSockets()
[all …]
/dports/audio/gogglesmm/gogglesmm-1.2.2/gap/
H A Dap_reactor.cpp42 freeElms(pfds); in ~Reactor()
94 if (pfds[i].revents) { in dispatch()
160 if (pfds==nullptr)
161 allocElms(pfds,mfds);
163 resizeElms(pfds,mfds);
179 if (pfds==nullptr)
180 allocElms(pfds,mfds);
188 pfds[i].events = 0;
189 pfds[i].revents = 0;
193 pfds[i].events = 0;
[all …]
/dports/sysutils/bareos-traymonitor/bareos-Release-20.0.3/core/src/lib/
H A Dbpoll.cc43 struct pollfd pfds[1]; in WaitForReadableFd() local
57 memset(pfds, 0, sizeof(pfds)); in WaitForReadableFd()
58 pfds[0].fd = fd; in WaitForReadableFd()
59 pfds[0].events = events; in WaitForReadableFd()
62 switch (poll(pfds, 1, msec)) { in WaitForReadableFd()
71 if (pfds[0].revents & events) { in WaitForReadableFd()
87 struct pollfd pfds[1]; in WaitForWritableFd() local
98 memset(pfds, 0, sizeof(pfds)); in WaitForWritableFd()
99 pfds[0].fd = fd; in WaitForWritableFd()
100 pfds[0].events = events; in WaitForWritableFd()
[all …]
/dports/sysutils/bareos18-client/bareos-Release-18.2.12/core/src/lib/
H A Dbpoll.cc43 struct pollfd pfds[1]; in WaitForReadableFd() local
57 memset(pfds, 0, sizeof(pfds)); in WaitForReadableFd()
58 pfds[0].fd = fd; in WaitForReadableFd()
59 pfds[0].events = events; in WaitForReadableFd()
62 switch(poll(pfds, 1, msec)) { in WaitForReadableFd()
71 if (pfds[0].revents & events) { in WaitForReadableFd()
87 struct pollfd pfds[1]; in WaitForWritableFd() local
98 memset(pfds, 0, sizeof(pfds)); in WaitForWritableFd()
99 pfds[0].fd = fd; in WaitForWritableFd()
100 pfds[0].events = events; in WaitForWritableFd()
[all …]
/dports/sysutils/bareos19-server/bareos-Release-19.2.11/core/src/lib/
H A Dbpoll.cc43 struct pollfd pfds[1]; in WaitForReadableFd() local
57 memset(pfds, 0, sizeof(pfds)); in WaitForReadableFd()
58 pfds[0].fd = fd; in WaitForReadableFd()
59 pfds[0].events = events; in WaitForReadableFd()
62 switch (poll(pfds, 1, msec)) { in WaitForReadableFd()
71 if (pfds[0].revents & events) { in WaitForReadableFd()
87 struct pollfd pfds[1]; in WaitForWritableFd() local
98 memset(pfds, 0, sizeof(pfds)); in WaitForWritableFd()
99 pfds[0].fd = fd; in WaitForWritableFd()
100 pfds[0].events = events; in WaitForWritableFd()
[all …]
/dports/sysutils/bareos19-client/bareos-Release-19.2.11/core/src/lib/
H A Dbpoll.cc43 struct pollfd pfds[1]; in WaitForReadableFd() local
57 memset(pfds, 0, sizeof(pfds)); in WaitForReadableFd()
58 pfds[0].fd = fd; in WaitForReadableFd()
59 pfds[0].events = events; in WaitForReadableFd()
62 switch (poll(pfds, 1, msec)) { in WaitForReadableFd()
71 if (pfds[0].revents & events) { in WaitForReadableFd()
87 struct pollfd pfds[1]; in WaitForWritableFd() local
98 memset(pfds, 0, sizeof(pfds)); in WaitForWritableFd()
99 pfds[0].fd = fd; in WaitForWritableFd()
100 pfds[0].events = events; in WaitForWritableFd()
[all …]
/dports/sysutils/bareos-client/bareos-Release-20.0.3/core/src/lib/
H A Dbpoll.cc43 struct pollfd pfds[1]; in WaitForReadableFd() local
57 memset(pfds, 0, sizeof(pfds)); in WaitForReadableFd()
58 pfds[0].fd = fd; in WaitForReadableFd()
59 pfds[0].events = events; in WaitForReadableFd()
62 switch (poll(pfds, 1, msec)) { in WaitForReadableFd()
71 if (pfds[0].revents & events) { in WaitForReadableFd()
87 struct pollfd pfds[1]; in WaitForWritableFd() local
98 memset(pfds, 0, sizeof(pfds)); in WaitForWritableFd()
99 pfds[0].fd = fd; in WaitForWritableFd()
100 pfds[0].events = events; in WaitForWritableFd()
[all …]
/dports/sysutils/bareos18-traymonitor/bareos-Release-18.2.12/core/src/lib/
H A Dbpoll.cc43 struct pollfd pfds[1]; in WaitForReadableFd() local
57 memset(pfds, 0, sizeof(pfds)); in WaitForReadableFd()
58 pfds[0].fd = fd; in WaitForReadableFd()
59 pfds[0].events = events; in WaitForReadableFd()
62 switch(poll(pfds, 1, msec)) { in WaitForReadableFd()
71 if (pfds[0].revents & events) { in WaitForReadableFd()
87 struct pollfd pfds[1]; in WaitForWritableFd() local
98 memset(pfds, 0, sizeof(pfds)); in WaitForWritableFd()
99 pfds[0].fd = fd; in WaitForWritableFd()
100 pfds[0].events = events; in WaitForWritableFd()
[all …]
/dports/sysutils/bareos18-server/bareos-Release-18.2.12/core/src/lib/
H A Dbpoll.cc43 struct pollfd pfds[1]; in WaitForReadableFd() local
57 memset(pfds, 0, sizeof(pfds)); in WaitForReadableFd()
58 pfds[0].fd = fd; in WaitForReadableFd()
59 pfds[0].events = events; in WaitForReadableFd()
62 switch(poll(pfds, 1, msec)) { in WaitForReadableFd()
71 if (pfds[0].revents & events) { in WaitForReadableFd()
87 struct pollfd pfds[1]; in WaitForWritableFd() local
98 memset(pfds, 0, sizeof(pfds)); in WaitForWritableFd()
99 pfds[0].fd = fd; in WaitForWritableFd()
100 pfds[0].events = events; in WaitForWritableFd()
[all …]
/dports/sysutils/bareos-server/bareos-Release-20.0.3/core/src/lib/
H A Dbpoll.cc43 struct pollfd pfds[1]; in WaitForReadableFd() local
57 memset(pfds, 0, sizeof(pfds)); in WaitForReadableFd()
58 pfds[0].fd = fd; in WaitForReadableFd()
59 pfds[0].events = events; in WaitForReadableFd()
62 switch (poll(pfds, 1, msec)) { in WaitForReadableFd()
71 if (pfds[0].revents & events) { in WaitForReadableFd()
87 struct pollfd pfds[1]; in WaitForWritableFd() local
98 memset(pfds, 0, sizeof(pfds)); in WaitForWritableFd()
99 pfds[0].fd = fd; in WaitForWritableFd()
100 pfds[0].events = events; in WaitForWritableFd()
[all …]
/dports/sysutils/bareos19-traymonitor/bareos-Release-19.2.11/core/src/lib/
H A Dbpoll.cc43 struct pollfd pfds[1]; in WaitForReadableFd() local
57 memset(pfds, 0, sizeof(pfds)); in WaitForReadableFd()
58 pfds[0].fd = fd; in WaitForReadableFd()
59 pfds[0].events = events; in WaitForReadableFd()
62 switch (poll(pfds, 1, msec)) { in WaitForReadableFd()
71 if (pfds[0].revents & events) { in WaitForReadableFd()
87 struct pollfd pfds[1]; in WaitForWritableFd() local
98 memset(pfds, 0, sizeof(pfds)); in WaitForWritableFd()
99 pfds[0].fd = fd; in WaitForWritableFd()
100 pfds[0].events = events; in WaitForWritableFd()
[all …]
/dports/www/bareos-webui/bareos-Release-20.0.3/core/src/lib/
H A Dbpoll.cc43 struct pollfd pfds[1]; in WaitForReadableFd() local
57 memset(pfds, 0, sizeof(pfds)); in WaitForReadableFd()
58 pfds[0].fd = fd; in WaitForReadableFd()
59 pfds[0].events = events; in WaitForReadableFd()
62 switch (poll(pfds, 1, msec)) { in WaitForReadableFd()
71 if (pfds[0].revents & events) { in WaitForReadableFd()
87 struct pollfd pfds[1]; in WaitForWritableFd() local
98 memset(pfds, 0, sizeof(pfds)); in WaitForWritableFd()
99 pfds[0].fd = fd; in WaitForWritableFd()
100 pfds[0].events = events; in WaitForWritableFd()
[all …]
/dports/www/bareos18-webui/bareos-Release-18.2.12/core/src/lib/
H A Dbpoll.cc43 struct pollfd pfds[1]; in WaitForReadableFd() local
57 memset(pfds, 0, sizeof(pfds)); in WaitForReadableFd()
58 pfds[0].fd = fd; in WaitForReadableFd()
59 pfds[0].events = events; in WaitForReadableFd()
62 switch(poll(pfds, 1, msec)) { in WaitForReadableFd()
71 if (pfds[0].revents & events) { in WaitForReadableFd()
87 struct pollfd pfds[1]; in WaitForWritableFd() local
98 memset(pfds, 0, sizeof(pfds)); in WaitForWritableFd()
99 pfds[0].fd = fd; in WaitForWritableFd()
100 pfds[0].events = events; in WaitForWritableFd()
[all …]
/dports/www/bareos19-webui/bareos-Release-19.2.11/core/src/lib/
H A Dbpoll.cc43 struct pollfd pfds[1]; in WaitForReadableFd() local
57 memset(pfds, 0, sizeof(pfds)); in WaitForReadableFd()
58 pfds[0].fd = fd; in WaitForReadableFd()
59 pfds[0].events = events; in WaitForReadableFd()
62 switch (poll(pfds, 1, msec)) { in WaitForReadableFd()
71 if (pfds[0].revents & events) { in WaitForReadableFd()
87 struct pollfd pfds[1]; in WaitForWritableFd() local
98 memset(pfds, 0, sizeof(pfds)); in WaitForWritableFd()
99 pfds[0].fd = fd; in WaitForWritableFd()
100 pfds[0].events = events; in WaitForWritableFd()
[all …]
/dports/multimedia/librist/librist-5c1f4a06ab46e16e6bba42fe7381d8353020a1fd/contrib/
H A Dpoll_win.c184 if (pfds == NULL) { in poll()
200 if ((int)pfds[i].fd < 0) in poll()
203 if (is_socket(pfds[i].fd)) { in poll()
209 FD_SET(pfds[i].fd, &efds); in poll()
211 if (pfds[i].events & in poll()
213 FD_SET(pfds[i].fd, &rfds); in poll()
216 if (pfds[i].events & in poll()
310 pfds[i].revents = 0; in poll()
312 if ((int)pfds[i].fd < 0) in poll()
317 pfds[i].revents = compute_select_revents(pfds[i].fd, in poll()
[all …]
/dports/security/libressl-static/libressl-3.3.5/apps/openssl/compat/
H A Dpoll_win.c179 if (pfds == NULL) {
195 if ((int)pfds[i].fd < 0)
198 if (is_socket(pfds[i].fd)) {
204 FD_SET(pfds[i].fd, &efds);
206 if (pfds[i].events &
208 FD_SET(pfds[i].fd, &rfds);
211 if (pfds[i].events &
306 pfds[i].revents = 0;
308 if ((int)pfds[i].fd < 0)
313 pfds[i].revents = compute_select_revents(pfds[i].fd,
[all …]
/dports/audio/muse-sequencer/muse-4.0.0/src/muse/
H A Dpoll_win.c179 if (pfds == NULL) { in poll()
195 if ((int)pfds[i].fd < 0) in poll()
198 if (is_socket(pfds[i].fd)) { in poll()
204 FD_SET(pfds[i].fd, &efds); in poll()
206 if (pfds[i].events & in poll()
208 FD_SET(pfds[i].fd, &rfds); in poll()
211 if (pfds[i].events & in poll()
306 pfds[i].revents = 0; in poll()
308 if ((int)pfds[i].fd < 0) in poll()
313 pfds[i].revents = compute_select_revents(pfds[i].fd, in poll()
[all …]
/dports/www/obhttpd/libressl-3.4.1/apps/openssl/compat/
H A Dpoll_win.c179 if (pfds == NULL) { in poll()
195 if ((int)pfds[i].fd < 0) in poll()
198 if (is_socket(pfds[i].fd)) { in poll()
204 FD_SET(pfds[i].fd, &efds); in poll()
206 if (pfds[i].events & in poll()
208 FD_SET(pfds[i].fd, &rfds); in poll()
211 if (pfds[i].events & in poll()
306 pfds[i].revents = 0; in poll()
308 if ((int)pfds[i].fd < 0) in poll()
313 pfds[i].revents = compute_select_revents(pfds[i].fd, in poll()
[all …]
/dports/security/libressl/libressl-3.4.3/apps/openssl/compat/
H A Dpoll_win.c179 if (pfds == NULL) { in poll()
195 if ((int)pfds[i].fd < 0) in poll()
198 if (is_socket(pfds[i].fd)) { in poll()
204 FD_SET(pfds[i].fd, &efds); in poll()
206 if (pfds[i].events & in poll()
208 FD_SET(pfds[i].fd, &rfds); in poll()
211 if (pfds[i].events & in poll()
306 pfds[i].revents = 0; in poll()
308 if ((int)pfds[i].fd < 0) in poll()
313 pfds[i].revents = compute_select_revents(pfds[i].fd, in poll()
[all …]
/dports/net-mgmt/omping/omping-0.0.4/
H A Drsfunc.c55 struct pollfd pfds[2]; in rs_poll_timeout() local
78 memset(pfds, 0, sizeof(struct pollfd) * 2); in rs_poll_timeout()
80 pfds[0].fd = unicast_socket; in rs_poll_timeout()
81 pfds[0].events = POLLIN; in rs_poll_timeout()
83 pfds[1].fd = multicast_socket; in rs_poll_timeout()
84 pfds[1].events = POLLIN; in rs_poll_timeout()
86 poll_res = poll(pfds, 2, poll_timeout); in rs_poll_timeout()
104 if (pfds[0].revents & POLLERR || pfds[0].revents & POLLHUP || pfds[0].revents & POLLNVAL) { in rs_poll_timeout()
109 if (pfds[1].revents & POLLERR || pfds[1].revents & POLLHUP || pfds[1].revents & POLLNVAL) { in rs_poll_timeout()
115 if (pfds[0].revents & POLLIN) { in rs_poll_timeout()
[all …]
/dports/security/sudo/sudo-1.9.8p2/lib/util/
H A Devent_poll.c47 if (base->pfds == NULL) { in sudo_ev_base_alloc_impl()
54 base->pfds[i].fd = -1; in sudo_ev_base_alloc_impl()
64 free(base->pfds); in sudo_ev_base_free_impl()
84 struct pollfd *pfds; in sudo_ev_add_impl() local
98 pfds = reallocarray(base->pfds, new_max, sizeof(struct pollfd)); in sudo_ev_add_impl()
99 if (pfds == NULL) { in sudo_ev_add_impl()
104 base->pfds = pfds; in sudo_ev_add_impl()
107 base->pfds[i].fd = -1; in sudo_ev_add_impl()
115 pfd = &base->pfds[ev->pfd_idx]; in sudo_ev_add_impl()
129 if (base->pfds[base->pfd_free].fd == -1) in sudo_ev_add_impl()
[all …]
/dports/audio/raul/raul-e87bb398f025912fb989a09f1450b838b251aea1/test/
H A Dsocket_test.cpp54 struct pollfd pfds[2]; in main() local
55 pfds[0].fd = unix_server_sock.fd(); in main()
56 pfds[0].events = POLLIN; in main()
57 pfds[0].revents = 0; in main()
58 pfds[1].fd = tcp_server_sock.fd(); in main()
59 pfds[1].events = POLLIN; in main()
60 pfds[1].revents = 0; in main()
64 const int ret = poll(pfds, 2, -1); in main()
67 if ((pfds[0].revents & POLLHUP) || pfds[1].revents & POLLHUP) { in main()
74 if (pfds[0].revents & POLLIN) { in main()
[all …]
/dports/net-im/jabberd/jabberd-2.7.0/mio/
H A Dmio_poll.h33 m->pfds[fd].fd = -1; \
41 m->pfds[fd].fd = fd; \
42 m->pfds[fd].events = 0; \
49 return poll(m->pfds, m->highfd + 1, t*1000); \
57 struct pollfd *pfds;
69 if((MIO(m)->pfds = malloc(sizeof(struct pollfd) * maxfd)) == NULL) \
76 memset(MIO(m)->pfds, 0, sizeof(struct pollfd) * maxfd); \
84 free(MIO(m)->pfds); \
90 #define MIO_REMOVE_FD(m, mfd) MIO(m)->pfds[mfd->mio_fd.fd].fd = -1
102 (MIO(m)->pfds[iter].revents & (POLLIN|POLLERR|POLLHUP|POLLNVAL))
[all …]
/dports/net/corosync2/corosync-2.4.5/qdevices/
H A Dqdevice-heuristics.c249 pfds[no_pfds].events = POLLIN; in qdevice_heuristics_wait_for_initial_exec_result()
250 pfds[no_pfds].revents = 0; in qdevice_heuristics_wait_for_initial_exec_result()
255 pfds[no_pfds].events = POLLIN; in qdevice_heuristics_wait_for_initial_exec_result()
256 pfds[no_pfds].revents = 0; in qdevice_heuristics_wait_for_initial_exec_result()
261 pfds[no_pfds].events = POLLIN; in qdevice_heuristics_wait_for_initial_exec_result()
262 pfds[no_pfds].revents = 0; in qdevice_heuristics_wait_for_initial_exec_result()
268 pfds[no_pfds].events = POLLOUT; in qdevice_heuristics_wait_for_initial_exec_result()
269 pfds[no_pfds].revents = 0; in qdevice_heuristics_wait_for_initial_exec_result()
278 poll_res = poll(pfds, no_pfds, timeout); in qdevice_heuristics_wait_for_initial_exec_result()
281 if (pfds[i].revents & POLLIN) { in qdevice_heuristics_wait_for_initial_exec_result()
[all …]
/dports/dns/getdns/getdns-1.5.2/src/extension/
H A Dpoll_eventloop.c89 if (!fd_events || !pfds) { in get_fd_event()
92 if (pfds) in get_fd_event()
102 pfds[i].fd = -1; in get_fd_event()
103 pfds[i].events = 0; in get_fd_event()
104 pfds[i].revents = 0; in get_fd_event()
108 loop->pfds = pfds; in get_fd_event()
121 loop->pfds[i].fd = -1; in get_fd_event()
383 poll_loop->pfds[j] = poll_loop->pfds[i]; in poll_eventloop_run_once()
434 poll_loop->pfds[j] = poll_loop->pfds[i]; in poll_eventloop_run_once()
462 poll_loop->pfds[j] = poll_loop->pfds[i]; in poll_eventloop_run_once()
[all …]

12345678910>>...27