/dports/net/nbdkit/nbdkit-1.20.4/plugins/sh/ |
H A D | call.c | 163 struct pollfd pfds[3]; in call3() local 251 pfds[0].events = wbuflen ? POLLOUT : 0; in call3() 253 pfds[1].events = POLLIN; in call3() 255 pfds[2].events = POLLIN; in call3() 257 if (poll (pfds, 3, -1) == -1) { in call3() 265 if (pfds[0].revents & POLLOUT) { in call3() 266 r = write (pfds[0].fd, wbuf, wbuflen); in call3() 283 if (pfds[1].revents & POLLIN) { in call3() 299 else if (pfds[1].revents & POLLHUP) { in call3() 304 if (pfds[2].revents & POLLIN) { in call3() [all …]
|
/dports/sysutils/freeipmi/freeipmi-1.6.8/libipmiconsole/ |
H A D | ipmiconsole_engine.c | 119 struct pollfd *pfds; member 432 poll_data->pfds[poll_data->pfds_index*3].events = 0; in _poll_setup() 433 poll_data->pfds[poll_data->pfds_index*3].revents = 0; in _poll_setup() 965 poll_data.pfds = NULL; in _ipmiconsole_engine() 1104 if (poll_data.pfds[i*3].revents & POLLERR) in _ipmiconsole_engine() 1127 if (poll_data.pfds[i*3+2].revents & POLLHUP) in _ipmiconsole_engine() 1152 if (poll_data.pfds[i*3].revents & POLLIN) in _ipmiconsole_engine() 1160 if (poll_data.pfds[i*3].revents & POLLOUT) in _ipmiconsole_engine() 1168 if (poll_data.pfds[i*3 + 1].revents & POLLIN) in _ipmiconsole_engine() 1178 if (poll_data.pfds[i*3+2].revents & POLLIN) in _ipmiconsole_engine() [all …]
|
/dports/lang/nwcc/nwcc_0.8.3/test2/ |
H A D | tls1-main.c | 39 int pfds[2]; in main() 43 if (pipe(pfds) == -1) { in main() 54 (void) close(pfds[STDIN_FILENO]); in main() 55 (void) dup2(pfds[STDOUT_FILENO], STDOUT_FILENO); in main() 59 (void) close(pfds[STDOUT_FILENO]); in main() 66 if (read_line(pfds[STDIN_FILENO], buf) > 0) { in main() 71 int rc = read_line(pfds[STDIN_FILENO], buf); in main()
|
H A D | tls0-main.c | 33 int pfds[2]; in main() local 37 if (pipe(pfds) == -1) { in main() 48 (void) close(pfds[STDIN_FILENO]); in main() 49 (void) dup2(pfds[STDOUT_FILENO], STDOUT_FILENO); in main() 53 (void) close(pfds[STDOUT_FILENO]); in main() 59 int rc = read_line(pfds[STDIN_FILENO], buf); in main()
|
/dports/net-mgmt/p0f/p0f-3.09b/ |
H A D | p0f.c | 737 pfds[0].fd = pcap_fileno(pt); in regen_pfds() 744 pfds[1].fd = api_fd; in regen_pfds() 761 pfds[count++].fd = api_cl[i].fd; in regen_pfds() 787 struct pollfd *pfds; in live_event_loop() local 799 pfd_count = regen_pfds(pfds, ctable); in live_event_loop() 817 pret = poll(pfds, pfd_count, 10); in live_event_loop() 846 close(pfds[cur].fd); in live_event_loop() 867 i = write(pfds[cur].fd, in live_event_loop() 940 i = read(pfds[cur].fd, in live_event_loop() 962 if (pfds[cur].revents && !--pret) break; in live_event_loop() [all …]
|
/dports/audio/mumble/mumble-1.3.3/3rdparty/celt-0.11.0-src/tools/ |
H A D | celtclient.c | 84 struct pollfd *pfds; in main() local 150 pfds = malloc(sizeof(*pfds)*(nfds+1)); in main() 151 alsa_device_getfds(audio_dev, pfds, nfds); in main() 152 pfds[nfds].fd = sd; in main() 153 pfds[nfds].events = POLLIN; in main() 172 poll(pfds, nfds+1, -1); in main() 174 if (pfds[nfds].revents & POLLIN) in main() 191 if (alsa_device_playback_ready(audio_dev, pfds, nfds)) in main() 221 if (alsa_device_capture_ready(audio_dev, pfds, nfds)) in main()
|
/dports/audio/mumble/mumble-1.3.3/3rdparty/celt-0.7.0-src/tools/ |
H A D | celtclient.c | 84 struct pollfd *pfds; in main() local 150 pfds = malloc(sizeof(*pfds)*(nfds+1)); in main() 151 alsa_device_getfds(audio_dev, pfds, nfds); in main() 152 pfds[nfds].fd = sd; in main() 153 pfds[nfds].events = POLLIN; in main() 172 poll(pfds, nfds+1, -1); in main() 174 if (pfds[nfds].revents & POLLIN) in main() 191 if (alsa_device_playback_ready(audio_dev, pfds, nfds)) in main() 221 if (alsa_device_capture_ready(audio_dev, pfds, nfds)) in main()
|
/dports/net/corosync2/corosync-2.4.5/qdevices/ |
H A D | qdevice-net-poll.c | 339 PRPollDesc *pfds; in qdevice_net_poll() local 348 pfds = qdevice_net_pr_poll_array_create(instance); in qdevice_net_poll() 349 if (pfds == NULL) { in qdevice_net_poll() 362 if (pfds[i].out_flags & PR_POLL_READ) { in qdevice_net_poll() 417 qdevice_net_poll_write_socket(instance, &pfds[i]); in qdevice_net_poll() 457 qdevice_net_poll_err_socket(instance, &pfds[i]); in qdevice_net_poll() 461 if (pfds[i].out_flags != PR_POLL_NVAL) { in qdevice_net_poll() 463 pfds[i].out_flags); in qdevice_net_poll() 475 "Disconnecting.", pfds[i].out_flags); in qdevice_net_poll() 482 "Disconnecting.", pfds[i].out_flags); in qdevice_net_poll() [all …]
|
/dports/devel/juce/JUCE-f37e9a1/modules/juce_events/native/ |
H A D | juce_linux_Messaging.cpp | 134 pfds.push_back ({ fd, eventMask, 0 }); in registerFdCallback() 157 pfds.erase (std::remove_if (std::begin (pfds), std::end (pfds), removePredicate), in unregisterFdCallback() 158 std::end (pfds)); in unregisterFdCallback() 166 if (poll (&pfds.front(), static_cast<nfds_t> (pfds.size()), 0) == 0) in dispatchPendingEvents() 171 for (auto& pfd : pfds) in dispatchPendingEvents() 211 poll (&pfds.front(), static_cast<nfds_t> (pfds.size()), timeoutMs); in sleepUntilNextEvent() 227 std::vector<pollfd> pfds; member
|
/dports/audio/carla/Carla-2.4.1/source/modules/juce_events/native/ |
H A D | juce_linux_Messaging.cpp | 134 pfds.push_back ({ fd, eventMask, 0 }); in registerFdCallback() 157 pfds.erase (std::remove_if (std::begin (pfds), std::end (pfds), removePredicate), in unregisterFdCallback() 158 std::end (pfds)); in unregisterFdCallback() 166 if (poll (&pfds.front(), static_cast<nfds_t> (pfds.size()), 0) == 0) in dispatchPendingEvents() 171 for (auto& pfd : pfds) in dispatchPendingEvents() 211 poll (&pfds.front(), static_cast<nfds_t> (pfds.size()), timeoutMs); in sleepUntilNextEvent() 227 std::vector<pollfd> pfds; member
|
/dports/net/rtpproxy/rtpproxy-2.1.1/src/ |
H A D | rtpp_sessinfo.c | 334 free(ptbl->pfds); in rtpp_polltbl_free() 343 struct pollfd *pfds; in rtpp_sinfo_sync_polltbl() local 361 pfds = realloc(ptbl->pfds, (alen * sizeof(struct pollfd))); in rtpp_sinfo_sync_polltbl() 363 if (pfds != NULL) in rtpp_sinfo_sync_polltbl() 364 ptbl->pfds = pfds; in rtpp_sinfo_sync_polltbl() 367 if (pfds == NULL || mds == NULL) { in rtpp_sinfo_sync_polltbl() 386 ptbl->pfds[session_index].events = POLLIN; in rtpp_sinfo_sync_polltbl() 387 ptbl->pfds[session_index].revents = 0; in rtpp_sinfo_sync_polltbl() 400 memmove(&ptbl->pfds[session_index], &ptbl->pfds[session_index + 1], in rtpp_sinfo_sync_polltbl() 401 movelen * sizeof(ptbl->pfds[0])); in rtpp_sinfo_sync_polltbl() [all …]
|
/dports/mail/spamassassin-devel/spamassassin-1ea352210/spamc/ |
H A D | qmail-spamc.c | 45 int pfds[2]; in main() local 86 TRY(pipe(pfds)); in main() 90 TRY(dup(pfds[1])); /* make stdout same as pfds[1] */ in main() 91 TRY(close(pfds[0])); /* we don't need this */ in main() 96 TRY(dup(pfds[0])); /* make stdin same as pfds[0] */ in main() 97 TRY(close(pfds[1])); /* we don't need this */ in main()
|
/dports/mail/spamassassin/Mail-SpamAssassin-3.4.5/spamc/ |
H A D | qmail-spamc.c | 45 int pfds[2]; in main() local 86 TRY(pipe(pfds)); in main() 90 TRY(dup(pfds[1])); /* make stdout same as pfds[1] */ in main() 91 TRY(close(pfds[0])); /* we don't need this */ in main() 96 TRY(dup(pfds[0])); /* make stdin same as pfds[0] */ in main() 97 TRY(close(pfds[1])); /* we don't need this */ in main()
|
/dports/net-p2p/c-lightning/lightning-0.10.2/ccan/ccan/fdpass/test/ |
H A D | run.c | 32 int pfds[2]; in parent() local 34 ok1(pipe(pfds) == 0); in parent() 35 ok1(fdpass_send(sockfd, pfds[0])); in parent() 36 ok1(close(pfds[0]) == 0); in parent() 37 ok1(write(pfds[1], "\x77", 1) == 1); in parent() 38 ok1(close(pfds[1]) == 0); in parent()
|
/dports/ftp/pure-ftpd/pure-ftpd-1.0.50/src/ |
H A D | pure-certd.c | 253 int pfds[2]; in process() local 262 if (pipe(pfds) != 0) { in process() 267 close(pfds[0]); in process() 268 close(pfds[1]); in process() 272 close(pfds[1]); /* close the output side of the pipe */ in process() 273 if ((readnb = safe_read(pfds[0], line, in process() 280 close(pfds[0]); in process() 306 close(pfds[1]); in process() 309 if (dup2(pfds[1], 1) == -1) { in process() 310 close(pfds[1]); in process() [all …]
|
H A D | pure-authd.c | 285 int pfds[2]; in process() local 294 if (pipe(pfds) != 0) { in process() 299 close(pfds[0]); in process() 300 close(pfds[1]); in process() 304 close(pfds[1]); /* close the output side of the pipe */ in process() 305 if ((readnb = safe_read(pfds[0], line, in process() 312 close(pfds[0]); in process() 338 close(pfds[1]); in process() 341 if (dup2(pfds[1], 1) == -1) { in process() 342 close(pfds[1]); in process() [all …]
|
/dports/audio/mhwaveedit/mhwaveedit-1.4.24/src/ |
H A D | mainloop.c | 58 GPollFD *pfds; member 174 k = grp->cb(grp,grp->pfds[i].fd,grp->pfds[i].revents, in iosource_dispatch_main() 178 grp->pfds[i].events &= ~(grp->pfds[i].revents); in iosource_dispatch_main() 398 struct pollfd *pfds; in sources_poll() local 417 memcpy(&pfds[nfds],&src->pfd,sizeof(pfds[0])); in sources_poll() 428 i = poll(pfds,nfds,timeout); in sources_poll() 446 g_free(pfds); in sources_poll() 645 grp->pfds = NULL; in mainloop_io_group_add() 649 memcpy(grp->pfds, pfds, nfds*sizeof(GPollFD)); in mainloop_io_group_add() 654 poll_add_main(&(grp->pfds[i])); in mainloop_io_group_add() [all …]
|
/dports/games/tremulous/tremulous/tremulous-1.1.0-src/src/win32/ |
H A D | win_glimp.c | 123 PIXELFORMATDESCRIPTOR pfds[MAX_PFDS+1]; in GLW_ChoosePFD() local 179 if ( pfds[i].iPixelType != PFD_TYPE_RGBA ) in GLW_ChoosePFD() 199 if ( pfds[i].cDepthBits < 15 ) in GLW_ChoosePFD() 219 …if ( ( pfds[i].dwFlags & PFD_STEREO ) && ( !( pfds[bestMatch].dwFlags & PFD_STEREO ) ) && ( pPFD->… in GLW_ChoosePFD() 225 …if ( !( pfds[i].dwFlags & PFD_STEREO ) && ( pfds[bestMatch].dwFlags & PFD_STEREO ) && ( pPFD->dwFl… in GLW_ChoosePFD() 235 if ( pfds[i].cColorBits == pPFD->cColorBits ) in GLW_ChoosePFD() 241 else if ( pfds[i].cColorBits > pfds[bestMatch].cColorBits ) in GLW_ChoosePFD() 252 if ( pfds[i].cDepthBits == pPFD->cDepthBits ) in GLW_ChoosePFD() 258 else if ( pfds[i].cDepthBits > pfds[bestMatch].cDepthBits ) in GLW_ChoosePFD() 275 else if ( ( pfds[i].cStencilBits > pfds[bestMatch].cStencilBits ) && in GLW_ChoosePFD() [all …]
|
/dports/net/corosync2/corosync-2.4.5/lib/ |
H A D | sam.c | 857 struct pollfd pfds[2]; in sam_parent_wait_for_quorum() local 878 pfds[0].events = 0; in sam_parent_wait_for_quorum() 879 pfds[0].revents = 0; in sam_parent_wait_for_quorum() 882 pfds[1].events = POLLIN; in sam_parent_wait_for_quorum() 883 pfds[1].revents = 0; in sam_parent_wait_for_quorum() 899 if (pfds[0].revents == POLLERR || pfds[0].revents == POLLHUP ||pfds[0].revents == POLLNVAL) { in sam_parent_wait_for_quorum() 1050 struct pollfd pfds[2]; in sam_parent_handler() local 1063 pfds[0].revents = 0; in sam_parent_handler() 1352 struct pollfd pfds; in hc_callback_thread() local 1361 pfds.events = POLLIN; in hc_callback_thread() [all …]
|
/dports/emulators/qemu/qemu-6.2.0/audio/ |
H A D | alsaaudio.c | 41 struct pollfd *pfds; member 107 struct pollfd *pfds = hlp->pfds; in alsa_fini_poll() local 109 if (pfds) { in alsa_fini_poll() 113 g_free (pfds); in alsa_fini_poll() 115 hlp->pfds = NULL; in alsa_fini_poll() 216 struct pollfd *pfds; in alsa_poll_helper() local 225 pfds = audio_calloc ("alsa_poll_helper", count, sizeof (*pfds)); in alsa_poll_helper() 226 if (!pfds) { in alsa_poll_helper() 235 g_free (pfds); in alsa_poll_helper() 247 trace_alsa_set_handler(pfds[i].events, i, pfds[i].fd, err); in alsa_poll_helper() [all …]
|
/dports/emulators/qemu60/qemu-6.0.0/audio/ |
H A D | alsaaudio.c | 39 struct pollfd *pfds; member 105 struct pollfd *pfds = hlp->pfds; in alsa_fini_poll() local 107 if (pfds) { in alsa_fini_poll() 111 g_free (pfds); in alsa_fini_poll() 113 hlp->pfds = NULL; in alsa_fini_poll() 214 struct pollfd *pfds; in alsa_poll_helper() local 223 pfds = audio_calloc ("alsa_poll_helper", count, sizeof (*pfds)); in alsa_poll_helper() 224 if (!pfds) { in alsa_poll_helper() 233 g_free (pfds); in alsa_poll_helper() 245 trace_alsa_set_handler(pfds[i].events, i, pfds[i].fd, err); in alsa_poll_helper() [all …]
|
/dports/emulators/qemu5/qemu-5.2.0/audio/ |
H A D | alsaaudio.c | 39 struct pollfd *pfds; member 105 struct pollfd *pfds = hlp->pfds; in alsa_fini_poll() local 107 if (pfds) { in alsa_fini_poll() 111 g_free (pfds); in alsa_fini_poll() 113 hlp->pfds = NULL; in alsa_fini_poll() 214 struct pollfd *pfds; in alsa_poll_helper() local 223 pfds = audio_calloc ("alsa_poll_helper", count, sizeof (*pfds)); in alsa_poll_helper() 224 if (!pfds) { in alsa_poll_helper() 233 g_free (pfds); in alsa_poll_helper() 245 trace_alsa_set_handler(pfds[i].events, i, pfds[i].fd, err); in alsa_poll_helper() [all …]
|
/dports/emulators/qemu-utils/qemu-4.2.1/audio/ |
H A D | alsaaudio.c | 39 struct pollfd *pfds; member 105 struct pollfd *pfds = hlp->pfds; in alsa_fini_poll() local 107 if (pfds) { in alsa_fini_poll() 111 g_free (pfds); in alsa_fini_poll() 113 hlp->pfds = NULL; in alsa_fini_poll() 214 struct pollfd *pfds; in alsa_poll_helper() local 223 pfds = audio_calloc ("alsa_poll_helper", count, sizeof (*pfds)); in alsa_poll_helper() 224 if (!pfds) { in alsa_poll_helper() 233 g_free (pfds); in alsa_poll_helper() 245 trace_alsa_set_handler(pfds[i].events, i, pfds[i].fd, err); in alsa_poll_helper() [all …]
|
/dports/emulators/qemu42/qemu-4.2.1/audio/ |
H A D | alsaaudio.c | 39 struct pollfd *pfds; member 105 struct pollfd *pfds = hlp->pfds; in alsa_fini_poll() local 107 if (pfds) { in alsa_fini_poll() 111 g_free (pfds); in alsa_fini_poll() 113 hlp->pfds = NULL; in alsa_fini_poll() 214 struct pollfd *pfds; in alsa_poll_helper() local 223 pfds = audio_calloc ("alsa_poll_helper", count, sizeof (*pfds)); in alsa_poll_helper() 224 if (!pfds) { in alsa_poll_helper() 233 g_free (pfds); in alsa_poll_helper() 245 trace_alsa_set_handler(pfds[i].events, i, pfds[i].fd, err); in alsa_poll_helper() [all …]
|
/dports/emulators/qemu-cheri/qemu-0a323821042c36e21ea80e58b9545dfc3b0cb8ef/audio/ |
H A D | alsaaudio.c | 39 struct pollfd *pfds; member 105 struct pollfd *pfds = hlp->pfds; in alsa_fini_poll() local 107 if (pfds) { in alsa_fini_poll() 111 g_free (pfds); in alsa_fini_poll() 113 hlp->pfds = NULL; in alsa_fini_poll() 214 struct pollfd *pfds; in alsa_poll_helper() local 223 pfds = audio_calloc ("alsa_poll_helper", count, sizeof (*pfds)); in alsa_poll_helper() 224 if (!pfds) { in alsa_poll_helper() 233 g_free (pfds); in alsa_poll_helper() 245 trace_alsa_set_handler(pfds[i].events, i, pfds[i].fd, err); in alsa_poll_helper() [all …]
|