/dports/audio/mumble/mumble-1.3.3/3rdparty/celt-0.7.0-src/tools/ |
H A D | alsa_device.h | 55 int alsa_device_capture_ready(AlsaDevice *dev, struct pollfd *pfds, unsigned int nfds); 57 int alsa_device_playback_ready(AlsaDevice *dev, struct pollfd *pfds, unsigned int nfds); 63 void alsa_device_getfds(AlsaDevice *dev, struct pollfd *pfds, unsigned int nfds);
|
H A D | alsa_device.c | 377 int alsa_device_capture_ready(AlsaDevice *dev, struct pollfd *pfds, unsigned int nfds) in alsa_device_capture_ready() argument 381 … if ((err = snd_pcm_poll_descriptors_revents(dev->capture_handle, pfds, dev->readN, &revents)) < 0) in alsa_device_capture_ready() 386 return pfds[0].revents & POLLIN; in alsa_device_capture_ready() 392 int alsa_device_playback_ready(AlsaDevice *dev, struct pollfd *pfds, unsigned int nfds) in alsa_device_playback_ready() argument 396 …if ((err = snd_pcm_poll_descriptors_revents(dev->playback_handle, pfds+dev->readN, dev->writeN, &r… in alsa_device_playback_ready() 401 return pfds[1].revents & POLLOUT; in alsa_device_playback_ready() 424 void alsa_device_getfds(AlsaDevice *dev, struct pollfd *pfds, unsigned int nfds) in alsa_device_getfds() argument 429 pfds[i] = dev->read_fd[i]; in alsa_device_getfds() 431 pfds[i+dev->readN] = dev->write_fd[i]; in alsa_device_getfds()
|
/dports/net/rpki-client/rpki-client-portable-7.6/openbsd/src/usr.sbin/rpki-client/ |
H A D | rrdp.c | 505 struct pollfd pfds[MAX_SESSIONS + 1]; in proc_rrdp() local 517 memset(&pfds, 0, sizeof(pfds)); in proc_rrdp() 543 s->pfd = pfds + i++; in proc_rrdp() 552 pfds[0].fd = fd; in proc_rrdp() 553 pfds[0].events = POLLIN; in proc_rrdp() 555 pfds[0].events |= POLLOUT; in proc_rrdp() 557 if (poll(pfds, i, INFTIM) == -1) { in proc_rrdp() 563 if (pfds[0].revents & POLLHUP) in proc_rrdp() 565 if (pfds[0].revents & POLLOUT) { in proc_rrdp() 573 if (pfds[0].revents & POLLIN) in proc_rrdp()
|
/dports/audio/mumble/mumble-1.3.3/3rdparty/celt-0.11.0-src/tools/ |
H A D | alsa_device.c | 374 int alsa_device_capture_ready(AlsaDevice *dev, struct pollfd *pfds, unsigned int nfds) in alsa_device_capture_ready() argument 378 … if ((err = snd_pcm_poll_descriptors_revents(dev->capture_handle, pfds, dev->readN, &revents)) < 0) in alsa_device_capture_ready() 383 return pfds[0].revents & POLLIN; in alsa_device_capture_ready() 389 int alsa_device_playback_ready(AlsaDevice *dev, struct pollfd *pfds, unsigned int nfds) in alsa_device_playback_ready() argument 393 …if ((err = snd_pcm_poll_descriptors_revents(dev->playback_handle, pfds+dev->readN, dev->writeN, &r… in alsa_device_playback_ready() 398 return pfds[1].revents & POLLOUT; in alsa_device_playback_ready() 421 void alsa_device_getfds(AlsaDevice *dev, struct pollfd *pfds, unsigned int nfds) in alsa_device_getfds() argument 426 pfds[i] = dev->read_fd[i]; in alsa_device_getfds() 428 pfds[i+dev->readN] = dev->write_fd[i]; in alsa_device_getfds()
|
/dports/sysutils/watchman/watchman-4.5.0/ |
H A D | stream_unix.c | 126 struct pollfd pfds[MAX_POLL_EVENTS]; in w_poll_events() local 136 pfds[i].fd = p[i].evt->fd[0]; in w_poll_events() 137 pfds[i].events = POLLIN|POLLHUP|POLLERR; in w_poll_events() 138 pfds[i].revents = 0; in w_poll_events() 141 res = poll(pfds, n, timeoutms); in w_poll_events() 144 p[i].ready = pfds[i].revents != 0; in w_poll_events()
|
/dports/devel/android-tools-adb/platform_system_core-android-9.0.0_r3/adb/ |
H A D | sysdeps_test.cpp | 180 std::vector<adb_pollfd> pfds; in TEST_F() local 188 pfds.push_back(pfd); in TEST_F() 191 ASSERT_EQ(num_sockets, adb_poll(pfds.data(), pfds.size(), 0)); in TEST_F() 193 ASSERT_NE(0, pfds[i].revents & POLLIN); in TEST_F() 196 ASSERT_EQ(adb_read(pfds[i].fd, buf, sizeof(buf)), static_cast<ssize_t>(sizeof(int32_t))); in TEST_F()
|
/dports/sysutils/py-pywatchman/watchman-4.9.0/ |
H A D | stream_unix.cpp | 189 struct pollfd pfds[MAX_POLL_EVENTS]; in w_poll_events() local 201 pfds[i].fd = pe->getFd(); in w_poll_events() 202 pfds[i].events = POLLIN|POLLHUP|POLLERR; in w_poll_events() 203 pfds[i].revents = 0; in w_poll_events() 206 res = poll(pfds, n, timeoutms); in w_poll_events() 209 p[i].ready = pfds[i].revents != 0; in w_poll_events()
|
/dports/x11/xcbautolock/xcbautolock-0.2.2/ |
H A D | xcbautolock.c | 121 struct pollfd pfds[1]; in main() local 183 pfds[0].fd = xcb_get_file_descriptor(conn); in main() 184 pfds[0].events = POLLIN; in main() 220 poll(pfds, 1, timeout); in main() 221 if (pfds[0].revents & POLLIN) { in main()
|
/dports/sysutils/bareos19-traymonitor/bareos-Release-19.2.11/core/src/lib/ |
H A D | bnet_server_tcp.cc | 164 struct pollfd* pfds; local 280 pfds = (struct pollfd*)alloca(sizeof(struct pollfd) * nfds); 281 memset(pfds, 0, sizeof(struct pollfd) * nfds); 296 pfds[nfds].fd = fd_ptr->fd; 297 pfds[nfds].events = events; 338 int status = poll(pfds, nfds, timeout_ms); 352 if (pfds[cnt++].revents & events) {
|
/dports/sysutils/bareos19-client/bareos-Release-19.2.11/core/src/lib/ |
H A D | bnet_server_tcp.cc | 164 struct pollfd* pfds; local 280 pfds = (struct pollfd*)alloca(sizeof(struct pollfd) * nfds); 281 memset(pfds, 0, sizeof(struct pollfd) * nfds); 296 pfds[nfds].fd = fd_ptr->fd; 297 pfds[nfds].events = events; 338 int status = poll(pfds, nfds, timeout_ms); 352 if (pfds[cnt++].revents & events) {
|
/dports/sysutils/bareos19-server/bareos-Release-19.2.11/core/src/lib/ |
H A D | bnet_server_tcp.cc | 164 struct pollfd* pfds; local 280 pfds = (struct pollfd*)alloca(sizeof(struct pollfd) * nfds); 281 memset(pfds, 0, sizeof(struct pollfd) * nfds); 296 pfds[nfds].fd = fd_ptr->fd; 297 pfds[nfds].events = events; 338 int status = poll(pfds, nfds, timeout_ms); 352 if (pfds[cnt++].revents & events) {
|
/dports/www/bareos19-webui/bareos-Release-19.2.11/core/src/lib/ |
H A D | bnet_server_tcp.cc | 164 struct pollfd* pfds; local 280 pfds = (struct pollfd*)alloca(sizeof(struct pollfd) * nfds); 281 memset(pfds, 0, sizeof(struct pollfd) * nfds); 296 pfds[nfds].fd = fd_ptr->fd; 297 pfds[nfds].events = events; 338 int status = poll(pfds, nfds, timeout_ms); 352 if (pfds[cnt++].revents & events) {
|
/dports/devel/vstr/vstr-1.0.15/tst/sc/ |
H A D | tst_sc_read.c | 18 int pfds[2]; in tst() local 181 if (pipe(pfds) == -1) in tst() 184 if (write(pfds[1], "ab", 2) != 2) in tst() 186 TST_B_TST(ret, 25, !vstr_sc_read_len_fd(s1, s1->len, pfds[0], 1, NULL)); in tst() 190 TST_B_TST(ret, 25, !vstr_sc_read_len_fd(s1, s1->len, pfds[0], 32, NULL)); in tst() 194 if (write(pfds[1], "Z", 1) != 1) in tst() 196 TST_B_TST(ret, 26, !vstr_sc_read_iov_fd(s1, s1->len, pfds[0], 1, 2, NULL)); in tst()
|
/dports/math/hs-Agda/Agda-2.6.2/_cabal_deps/Cabal-3.0.2.0/Distribution/Compat/ |
H A D | CreatePipe.hs | 36 (readfd, writefd) <- allocaArray 2 $ \ pfds -> do 37 throwErrnoIfMinus1_ "_pipe" $ c__pipe pfds 2 ({- _O_BINARY -} 32768) 38 readfd <- peek pfds 39 writefd <- peekElemOff pfds 1
|
/dports/devel/hs-cabal-install/cabal-cabal-install-3.4.0.0/Cabal/Distribution/Compat/ |
H A D | CreatePipe.hs | 39 (readfd, writefd) <- allocaArray 2 $ \ pfds -> do 40 throwErrnoIfMinus1_ "_pipe" $ c__pipe pfds 2 ({- _O_BINARY -} 32768) 41 readfd <- peek pfds 42 writefd <- peekElemOff pfds 1
|
/dports/devel/hs-ormolu/ormolu-0.4.0.0/_cabal_deps/Cabal-3.6.0.0/src/Distribution/Compat/ |
H A D | CreatePipe.hs | 39 (readfd, writefd) <- allocaArray 2 $ \ pfds -> do 40 throwErrnoIfMinus1_ "_pipe" $ c__pipe pfds 2 ({- _O_BINARY -} 32768) 41 readfd <- peek pfds 42 writefd <- peekElemOff pfds 1
|
/dports/devel/hs-hls-install/haskell-language-server-1.4.0/install/_cabal_deps/Cabal-3.4.0.0/Distribution/Compat/ |
H A D | CreatePipe.hs | 39 (readfd, writefd) <- allocaArray 2 $ \ pfds -> do 40 throwErrnoIfMinus1_ "_pipe" $ c__pipe pfds 2 ({- _O_BINARY -} 32768) 41 readfd <- peek pfds 42 writefd <- peekElemOff pfds 1
|
/dports/lang/ghc/ghc-8.10.7/libraries/Cabal/Cabal/Distribution/Compat/ |
H A D | CreatePipe.hs | 36 (readfd, writefd) <- allocaArray 2 $ \ pfds -> do 37 throwErrnoIfMinus1_ "_pipe" $ c__pipe pfds 2 ({- _O_BINARY -} 32768) 38 readfd <- peek pfds 39 writefd <- peekElemOff pfds 1
|
/dports/devel/efl/efl-1.25.1/src/lib/ecore/ |
H A D | ecore_glib.c | 92 _ecore_glib_context_poll_from(const GPollFD *pfds, in _ecore_glib_context_poll_from() argument 98 const GPollFD *itr = pfds, *itr_end = pfds + count; in _ecore_glib_context_poll_from() 118 _ecore_glib_context_poll_to(GPollFD *pfds, in _ecore_glib_context_poll_to() argument 125 GPollFD *itr = pfds, *itr_end = pfds + count; in _ecore_glib_context_poll_to()
|
/dports/www/squid/squid-4.15/src/comm/ |
H A D | ModDevPoll.cc | 75 struct pollfd *pfds; /**< ptr to array of struct pollfd config elements */ member 115 devpoll_update.pfds, /* pointer to array of struct pollfd */ in comm_flush_updates() 147 devpoll_update.pfds[devpoll_update.cur].fd = fd; in comm_update_fd() 148 devpoll_update.pfds[devpoll_update.cur].events = events; in comm_update_fd() 149 devpoll_update.pfds[devpoll_update.cur].revents = 0; in comm_update_fd() 192 devpoll_update.pfds = (struct pollfd *)xcalloc( in SelectLoopInit()
|
/dports/audio/alsa-lib/alsa-lib-1.2.2/src/mixer/ |
H A D | mixer.c | 719 n = snd_hctl_poll_descriptors(s->hctl, pfds, space); in snd_mixer_poll_descriptors() 725 pfds += n; in snd_mixer_poll_descriptors() 744 assert(mixer && pfds && revents); in snd_mixer_poll_descriptors_revents() 748 for (idx = 0; idx < nfds; idx++, pfds++) in snd_mixer_poll_descriptors_revents() 749 res |= pfds->revents & (POLLIN|POLLERR|POLLNVAL); in snd_mixer_poll_descriptors_revents() 763 struct pollfd *pfds = spfds; in snd_mixer_wait() local 766 count = snd_mixer_poll_descriptors(mixer, pfds, sizeof(spfds) / sizeof(spfds[0])); in snd_mixer_wait() 770 pfds = alloca(count * sizeof(*pfds)); in snd_mixer_wait() 771 if (!pfds) in snd_mixer_wait() 773 err = snd_mixer_poll_descriptors(mixer, pfds, in snd_mixer_wait() [all …]
|
/dports/sysutils/bareos18-client/bareos-Release-18.2.12/core/src/lib/ |
H A D | bnet_server_tcp.cc | 165 struct pollfd *pfds; local 283 pfds = (struct pollfd *)alloca(sizeof(struct pollfd) * nfds); 284 memset(pfds, 0, sizeof(struct pollfd) * nfds); 299 pfds[nfds].fd = fd_ptr->fd; 300 pfds[nfds].events = events; 337 if ((status = poll(pfds, nfds, -1)) < 0) { 349 if (pfds[cnt++].revents & events) {
|
/dports/sysutils/bareos18-traymonitor/bareos-Release-18.2.12/core/src/lib/ |
H A D | bnet_server_tcp.cc | 165 struct pollfd *pfds; local 283 pfds = (struct pollfd *)alloca(sizeof(struct pollfd) * nfds); 284 memset(pfds, 0, sizeof(struct pollfd) * nfds); 299 pfds[nfds].fd = fd_ptr->fd; 300 pfds[nfds].events = events; 337 if ((status = poll(pfds, nfds, -1)) < 0) { 349 if (pfds[cnt++].revents & events) {
|
/dports/sysutils/bareos18-server/bareos-Release-18.2.12/core/src/lib/ |
H A D | bnet_server_tcp.cc | 165 struct pollfd *pfds; local 283 pfds = (struct pollfd *)alloca(sizeof(struct pollfd) * nfds); 284 memset(pfds, 0, sizeof(struct pollfd) * nfds); 299 pfds[nfds].fd = fd_ptr->fd; 300 pfds[nfds].events = events; 337 if ((status = poll(pfds, nfds, -1)) < 0) { 349 if (pfds[cnt++].revents & events) {
|
/dports/www/bareos18-webui/bareos-Release-18.2.12/core/src/lib/ |
H A D | bnet_server_tcp.cc | 165 struct pollfd *pfds; local 283 pfds = (struct pollfd *)alloca(sizeof(struct pollfd) * nfds); 284 memset(pfds, 0, sizeof(struct pollfd) * nfds); 299 pfds[nfds].fd = fd_ptr->fd; 300 pfds[nfds].events = events; 337 if ((status = poll(pfds, nfds, -1)) < 0) { 349 if (pfds[cnt++].revents & events) {
|