/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/freetdm/src/ftmod/ftmod_wanpipe/ |
H A D | ftmod_wanpipe.c | 172 struct pollfd pfds[1]; in tdmv_api_wait_socket() 175 memset(&pfds[0], 0, sizeof(pfds[0])); in tdmv_api_wait_socket() 176 pfds[0].fd = ftdmchan->sockfd; in tdmv_api_wait_socket() 177 pfds[0].events = *flags; in tdmv_api_wait_socket() 178 res = poll(pfds, 1, timeout); in tdmv_api_wait_socket() 181 if (pfds[0].revents & POLLERR) { in tdmv_api_wait_socket() 186 *flags = pfds[0].revents; in tdmv_api_wait_socket() 1242 memset(&pfds[j], 0, sizeof(pfds[j])); 1244 pfds[j].events = chan_events; 1298 r = poll(pfds, j, ms); [all …]
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/spandsp/tests/ |
H A D | t31_pseudo_terminal_tests.c | 347 struct pollfd pfds[2] = {{0}}; in modem_wait_sock() local 351 pfds[0].fd = sock; in modem_wait_sock() 354 pfds[0].events |= POLLIN; in modem_wait_sock() 356 pfds[0].events |= POLLOUT; in modem_wait_sock() 358 pfds[0].events |= POLLERR; in modem_wait_sock() 360 s = poll(pfds, (modem->block_read) ? 0 : 1, ms); in modem_wait_sock() 369 if ((pfds[0].revents & POLLIN)) in modem_wait_sock() 371 if ((pfds[0].revents & POLLOUT)) in modem_wait_sock() 373 if ((pfds[0].revents & POLLERR)) in modem_wait_sock()
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/libscgi/src/ |
H A D | scgi.c | 501 struct pollfd pfds[2] = { { 0 } }; in scgi_wait_sock() local 504 pfds[0].fd = sock; in scgi_wait_sock() 507 pfds[0].events |= POLLIN; in scgi_wait_sock() 511 pfds[0].events |= POLLOUT; in scgi_wait_sock() 515 pfds[0].events |= POLLERR; in scgi_wait_sock() 518 s = poll(pfds, 1, ms); in scgi_wait_sock() 523 if ((pfds[0].revents & POLLIN)) { in scgi_wait_sock() 526 if ((pfds[0].revents & POLLOUT)) { in scgi_wait_sock() 529 if ((pfds[0].revents & POLLERR)) { in scgi_wait_sock()
|
/dports/comms/spandsp/spandsp-284fe91/tests/ |
H A D | t31_pseudo_terminal_tests.c | 347 struct pollfd pfds[2] = {{0}}; in modem_wait_sock() local 351 pfds[0].fd = sock; in modem_wait_sock() 354 pfds[0].events |= POLLIN; in modem_wait_sock() 356 pfds[0].events |= POLLOUT; in modem_wait_sock() 358 pfds[0].events |= POLLERR; in modem_wait_sock() 360 s = poll(pfds, (modem->block_read) ? 0 : 1, ms); in modem_wait_sock() 369 if ((pfds[0].revents & POLLIN)) in modem_wait_sock() 371 if ((pfds[0].revents & POLLOUT)) in modem_wait_sock() 373 if ((pfds[0].revents & POLLERR)) in modem_wait_sock()
|
/dports/net/boinc-client/boinc-client_release-7.8-7.8.6/samples/glut/ |
H A D | win32_x11.c | 22 PIXELFORMATDESCRIPTOR* pfds; in XGetVisualInfo() local 26 pfds = (PIXELFORMATDESCRIPTOR*)malloc(sizeof(PIXELFORMATDESCRIPTOR) * n); in XGetVisualInfo() 27 memset(pfds, 0, sizeof(PIXELFORMATDESCRIPTOR) * n); in XGetVisualInfo() 30 DescribePixelFormat(XHDC, i, sizeof(PIXELFORMATDESCRIPTOR), &pfds[i]); in XGetVisualInfo() 34 return pfds; in XGetVisualInfo()
|
/dports/audio/sndio/sndio-1.8.1/sndiod/ |
H A D | file.c | 313 struct pollfd pfds[MAXFDS], *pfd; 348 f->nfds = f->ops->pollfd(f->arg, pfds + nfds); 356 pfd = pfds; 398 res = poll(pfds, nfds, timo); 430 pfd = pfds;
|
/dports/sysutils/cmogstored/cmogstored-1.8.1/ |
H A D | compat_epoll_pwait.h | 14 struct pollfd pfds = { .fd = epfd, .events = POLLIN }; in my_epoll_pwait() local 28 rc = ppoll(&pfds, 1, tsp, sigmask); in my_epoll_pwait()
|
/dports/mail/gmime2/gmime-2.2.27/gmime/ |
H A D | gmime-gpg-context.c | 1164 struct pollfd pfds[GPG_N_FDS]; in gpg_ctx_op_step() local 1169 pfds[n].events = 0; in gpg_ctx_op_step() 1170 pfds[n].fd = -1; in gpg_ctx_op_step() 1175 pfds[GPG_STDOUT_FD].events = POLLIN; in gpg_ctx_op_step() 1180 pfds[GPG_STDERR_FD].events = POLLIN; in gpg_ctx_op_step() 1185 pfds[GPG_STATUS_FD].events = POLLIN; in gpg_ctx_op_step() 1188 pfds[GPG_STDIN_FD].fd = gpg->stdin_fd; in gpg_ctx_op_step() 1189 pfds[GPG_STDIN_FD].events = POLLOUT; in gpg_ctx_op_step() 1191 pfds[GPG_PASSWD_FD].fd = gpg->passwd_fd; in gpg_ctx_op_step() 1192 pfds[GPG_PASSWD_FD].events = POLLOUT; in gpg_ctx_op_step() [all …]
|
/dports/audio/alsa-lib/alsa-lib-1.2.2/test/ |
H A D | seq-decoder.c | 268 struct pollfd *pfds; in event_decoder() local 345 pfds = alloca(sizeof(*pfds) * max); in event_decoder() 347 snd_seq_poll_descriptors(handle, pfds, max, POLLIN); in event_decoder() 348 if (poll(pfds, max, -1) < 0) in event_decoder()
|
/dports/dns/powerdns/pdns-4.5.2/pdns/ |
H A D | signingpipe.cc | 133 vector<pollfd> pfds; in waitForRW() local 145 pfds.push_back(pfd); in waitForRW() 148 int res = poll(&pfds[0], pfds.size(), (seconds < 0) ? -1 : (seconds * 1000)); // -1 = infinite in waitForRW() 152 for(auto & pfd : pfds) in waitForRW()
|
/dports/benchmarks/fio/fio-3.29/engines/ |
H A D | nfs.c | 72 struct pollfd pfds[1]; /* nfs:0 */ in FixItActionSuffixInserter() 82 pfds[0].fd = nfs_get_fd(o->context); in FixItActionSuffixInserter() 83 pfds[0].events = nfs_which_events(o->context); in FixItActionSuffixInserter() 84 ret = poll(&pfds[0], 1, timeout); in FixItActionSuffixInserter() 94 ret = nfs_service(o->context, pfds[0].revents); in FixItActionSuffixInserter()
|
/dports/devel/git-gui/git-2.34.1/ |
H A D | parallel-checkout.c | 581 struct pollfd *pfds; in gather_results_from_workers() local 583 CALLOC_ARRAY(pfds, num_workers); in gather_results_from_workers() 585 pfds[i].fd = workers[i].cp.out; in gather_results_from_workers() 586 pfds[i].events = POLLIN; in gather_results_from_workers() 590 int nr = poll(pfds, num_workers, -1); in gather_results_from_workers() 600 struct pollfd *pfd = &pfds[i]; in gather_results_from_workers() 629 free(pfds); in gather_results_from_workers()
|
/dports/devel/git-p4/git-2.34.1/ |
H A D | parallel-checkout.c | 581 struct pollfd *pfds; in gather_results_from_workers() local 583 CALLOC_ARRAY(pfds, num_workers); in gather_results_from_workers() 585 pfds[i].fd = workers[i].cp.out; in gather_results_from_workers() 586 pfds[i].events = POLLIN; in gather_results_from_workers() 590 int nr = poll(pfds, num_workers, -1); in gather_results_from_workers() 600 struct pollfd *pfd = &pfds[i]; in gather_results_from_workers() 629 free(pfds); in gather_results_from_workers()
|
/dports/devel/git-svn/git-2.34.1/ |
H A D | parallel-checkout.c | 581 struct pollfd *pfds; 583 CALLOC_ARRAY(pfds, num_workers); 585 pfds[i].fd = workers[i].cp.out; 586 pfds[i].events = POLLIN; 590 int nr = poll(pfds, num_workers, -1); 600 struct pollfd *pfd = &pfds[i]; 629 free(pfds);
|
/dports/devel/git/git-2.34.1/ |
H A D | parallel-checkout.c | 581 struct pollfd *pfds; in gather_results_from_workers() local 583 CALLOC_ARRAY(pfds, num_workers); in gather_results_from_workers() 585 pfds[i].fd = workers[i].cp.out; in gather_results_from_workers() 586 pfds[i].events = POLLIN; in gather_results_from_workers() 590 int nr = poll(pfds, num_workers, -1); in gather_results_from_workers() 600 struct pollfd *pfd = &pfds[i]; in gather_results_from_workers() 629 free(pfds); in gather_results_from_workers()
|
/dports/devel/git-cvs/git-2.34.1/ |
H A D | parallel-checkout.c | 581 struct pollfd *pfds; in gather_results_from_workers() local 583 CALLOC_ARRAY(pfds, num_workers); in gather_results_from_workers() 585 pfds[i].fd = workers[i].cp.out; in gather_results_from_workers() 586 pfds[i].events = POLLIN; in gather_results_from_workers() 590 int nr = poll(pfds, num_workers, -1); in gather_results_from_workers() 600 struct pollfd *pfd = &pfds[i]; in gather_results_from_workers() 629 free(pfds); in gather_results_from_workers()
|
/dports/net-mgmt/icinga2/icinga2-2.13.2/lib/base/ |
H A D | process.cpp | 604 pollfd *pfds = nullptr; 627 pfds = reinterpret_cast<pollfd *>(realloc(pfds, sizeof(pollfd) * count)); 629 pfds[0].fd = l_EventFDs[tid][0]; 630 pfds[0].events = POLLIN; 631 pfds[0].revents = 0; 653 pfds[i].fd = process->m_FD; 654 pfds[i].events = POLLIN; 655 pfds[i].revents = 0; 677 int rc = poll(pfds, count, timeout); 692 if (pfds[0].revents & (POLLIN | POLLHUP | POLLERR)) { [all …]
|
/dports/emulators/yuzu/yuzu-0b47f7a46/externals/cubeb/src/ |
H A D | cubeb_sndio.c | 156 struct pollfd *pfds; in sndio_mainloop() local 163 pfds = calloc(nfds, sizeof (struct pollfd)); in sndio_mainloop() 164 if (pfds == NULL) in sndio_mainloop() 172 free(pfds); in sndio_mainloop() 255 nfds = WRAP(sio_pollfd)(s->hdl, pfds, events); in sndio_mainloop() 259 n = poll(pfds, nfds, -1); in sndio_mainloop() 265 revents = WRAP(sio_revents)(s->hdl, pfds); in sndio_mainloop() 300 free(pfds); in sndio_mainloop()
|
/dports/print/cups/cups-2.3.3op2/cups/ |
H A D | http-addrlist.c | 74 struct pollfd pfds[100]; /* Polled file descriptors */ in httpAddrConnect2() local 281 pfds[i].fd = fds[i]; in httpAddrConnect2() 282 pfds[i].events = POLLIN | POLLOUT; in httpAddrConnect2() 285 result = poll(pfds, (nfds_t)nfds, addrlist ? 100 : remaining > 250 ? 250 : remaining); in httpAddrConnect2() 317 DEBUG_printf(("pfds[%d].revents=%x\n", i, pfds[i].revents)); in httpAddrConnect2() 318 if (pfds[i].revents && !(pfds[i].revents & (POLLERR | POLLHUP))) in httpAddrConnect2() 335 else if (pfds[i].revents & (POLLERR | POLLHUP)) in httpAddrConnect2()
|
/dports/www/firefox-esr/firefox-91.8.0/media/libcubeb/src/ |
H A D | cubeb_sndio.c | 156 struct pollfd *pfds; in sndio_mainloop() local 163 pfds = calloc(nfds, sizeof (struct pollfd)); in sndio_mainloop() 164 if (pfds == NULL) in sndio_mainloop() 172 free(pfds); in sndio_mainloop() 255 nfds = WRAP(sio_pollfd)(s->hdl, pfds, events); in sndio_mainloop() 259 n = poll(pfds, nfds, -1); in sndio_mainloop() 265 revents = WRAP(sio_revents)(s->hdl, pfds); in sndio_mainloop() 300 free(pfds); in sndio_mainloop()
|
/dports/devel/vstr/vstr-1.0.15/examples/ |
H A D | cntl.c | 693 int pfds[2] = {-1, -1}; in cntl_sc_multiproc() local 702 if (!use_cntl && (pipe(pfds) == -1)) in cntl_sc_multiproc() 712 if (use_cntl && (socketpair(PF_LOCAL, SOCK_STREAM, IPPROTO_IP, pfds) == -1)) in cntl_sc_multiproc() 720 close(pfds[0]); in cntl_sc_multiproc() 721 cntl_child_pid(cpid, pfds[1]); in cntl_sc_multiproc() 725 close(pfds[1]); in cntl_sc_multiproc() 727 cntl_pipe_acpt_fds(vlg, pfds[0], allow_pdeathsig); in cntl_sc_multiproc() 735 close(pfds[0]); /* close child pipe() */ in cntl_sc_multiproc()
|
/dports/emulators/citra-qt5/citra-ac98458e0/externals/cubeb/src/ |
H A D | cubeb_sndio.c | 158 struct pollfd * pfds; in sndio_mainloop() local 165 pfds = calloc(nfds, sizeof(struct pollfd)); in sndio_mainloop() 166 if (pfds == NULL) in sndio_mainloop() 174 free(pfds); in sndio_mainloop() 257 nfds = WRAP(sio_pollfd)(s->hdl, pfds, events); in sndio_mainloop() 261 n = poll(pfds, nfds, -1); in sndio_mainloop() 267 revents = WRAP(sio_revents)(s->hdl, pfds); in sndio_mainloop() 302 free(pfds); in sndio_mainloop()
|
/dports/emulators/citra/citra-ac98458e0/externals/cubeb/src/ |
H A D | cubeb_sndio.c | 158 struct pollfd * pfds; in sndio_mainloop() local 165 pfds = calloc(nfds, sizeof(struct pollfd)); in sndio_mainloop() 166 if (pfds == NULL) in sndio_mainloop() 174 free(pfds); in sndio_mainloop() 257 nfds = WRAP(sio_pollfd)(s->hdl, pfds, events); in sndio_mainloop() 261 n = poll(pfds, nfds, -1); in sndio_mainloop() 267 revents = WRAP(sio_revents)(s->hdl, pfds); in sndio_mainloop() 302 free(pfds); in sndio_mainloop()
|
/dports/www/firefox/firefox-99.0/third_party/rust/cubeb-sys/libcubeb/src/ |
H A D | cubeb_sndio.c | 156 struct pollfd *pfds; in sndio_mainloop() local 163 pfds = calloc(nfds, sizeof (struct pollfd)); in sndio_mainloop() 164 if (pfds == NULL) in sndio_mainloop() 172 free(pfds); in sndio_mainloop() 255 nfds = WRAP(sio_pollfd)(s->hdl, pfds, events); in sndio_mainloop() 259 n = poll(pfds, nfds, -1); in sndio_mainloop() 265 revents = WRAP(sio_revents)(s->hdl, pfds); in sndio_mainloop() 300 free(pfds); in sndio_mainloop()
|
/dports/www/firefox/firefox-99.0/media/libcubeb/src/ |
H A D | cubeb_sndio.c | 158 struct pollfd * pfds; in sndio_mainloop() local 165 pfds = calloc(nfds, sizeof(struct pollfd)); in sndio_mainloop() 166 if (pfds == NULL) in sndio_mainloop() 174 free(pfds); in sndio_mainloop() 257 nfds = WRAP(sio_pollfd)(s->hdl, pfds, events); in sndio_mainloop() 261 n = poll(pfds, nfds, -1); in sndio_mainloop() 267 revents = WRAP(sio_revents)(s->hdl, pfds); in sndio_mainloop() 302 free(pfds); in sndio_mainloop()
|