/dports/emulators/qemu-guest-agent/qemu-5.0.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-devel/qemu-de8ed1055c2ce18c95f597eb10df360dcb534f99/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/www/squid/squid-4.15/src/comm/ |
H A D | ModPoll.cc | 206 pfds[npfds].fd = fd; in comm_check_incoming_poll_handlers() 207 pfds[npfds].events = events; in comm_check_incoming_poll_handlers() 208 pfds[npfds].revents = 0; in comm_check_incoming_poll_handlers() 221 if (poll(pfds, npfds, 0) < 1) { in comm_check_incoming_poll_handlers() 229 if (((revents = pfds[i].revents) == 0) || ((fd = pfds[i].fd) == -1)) in comm_check_incoming_poll_handlers() 329 struct pollfd pfds[SQUID_MAXFD]; in DoSelect() local 376 pfds[nfds].fd = i; in DoSelect() 377 pfds[nfds].events = events; in DoSelect() 378 pfds[nfds].revents = 0; in DoSelect() 409 num = poll(pfds, nfds, msec); in DoSelect() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/samples/uhid/ |
H A D | uhid-example.c | 391 struct pollfd pfds[2]; in main() local 429 pfds[0].fd = STDIN_FILENO; in main() 430 pfds[0].events = POLLIN; in main() 431 pfds[1].fd = fd; in main() 432 pfds[1].events = POLLIN; in main() 436 ret = poll(pfds, 2, -1); in main() 441 if (pfds[0].revents & POLLHUP) { in main() 445 if (pfds[1].revents & POLLHUP) { in main() 450 if (pfds[0].revents & POLLIN) { in main() 455 if (pfds[1].revents & POLLIN) { in main()
|
/dports/net/flower/flower-0.10/flower/cat/ |
H A D | start.cc | 75 struct pollfd pfds[2] = {}; in TransferUnidirectionally() local 77 pfds[0].fd = input->get(); in TransferUnidirectionally() 78 pfds[0].events = POLLIN; in TransferUnidirectionally() 80 pfds[0].fd = -1; in TransferUnidirectionally() 83 pfds[1].fd = output->get(); in TransferUnidirectionally() 84 pfds[1].events = POLLOUT; in TransferUnidirectionally() 86 pfds[1].fd = -1; in TransferUnidirectionally() 88 if (poll(pfds, 2, -1) == -1) { in TransferUnidirectionally() 94 if (pfds[0].revents != 0) { in TransferUnidirectionally() 111 if (pfds[1].revents != 0) { in TransferUnidirectionally()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/samples/uhid/ |
H A D | uhid-example.c | 391 struct pollfd pfds[2]; in main() local 429 pfds[0].fd = STDIN_FILENO; in main() 430 pfds[0].events = POLLIN; in main() 431 pfds[1].fd = fd; in main() 432 pfds[1].events = POLLIN; in main() 436 ret = poll(pfds, 2, -1); in main() 441 if (pfds[0].revents & POLLHUP) { in main() 445 if (pfds[1].revents & POLLHUP) { in main() 450 if (pfds[0].revents & POLLIN) { in main() 455 if (pfds[1].revents & POLLIN) { in main()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/samples/uhid/ |
H A D | uhid-example.c | 391 struct pollfd pfds[2]; in main() local 429 pfds[0].fd = STDIN_FILENO; in main() 430 pfds[0].events = POLLIN; in main() 431 pfds[1].fd = fd; in main() 432 pfds[1].events = POLLIN; in main() 436 ret = poll(pfds, 2, -1); in main() 441 if (pfds[0].revents & POLLHUP) { in main() 445 if (pfds[1].revents & POLLHUP) { in main() 450 if (pfds[0].revents & POLLIN) { in main() 455 if (pfds[1].revents & POLLIN) { in main()
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/freetdm/src/include/private/ |
H A D | sangoma_tdm_api.h | 152 struct pollfd pfds[1]; in tdmv_api_wait_socket() 155 memset(&pfds[0], 0, sizeof(pfds[0])); in tdmv_api_wait_socket() 156 pfds[0].fd = fd; in tdmv_api_wait_socket() 157 pfds[0].events = *flags; in tdmv_api_wait_socket() 158 res = poll(pfds, 1, timeout); in tdmv_api_wait_socket() 161 if (pfds[0].revents & POLLERR) { in tdmv_api_wait_socket() 166 *flags = pfds[0].revents; in tdmv_api_wait_socket()
|
/dports/net/rinetd/rinetd-0.62/ |
H A D | rinetd.c | 765 pfds[i].fd = -1; in poll_init_fds() 772 pfds[count].fd = fd; in poll_set_fd() 781 pfds[count].fd = fd; in poll_set_fd() 782 pfds[count].events |= ev; in poll_set_fd() 789 if(pfds[i].fd == -1) { in poll_set_fd() 790 pfds[i].fd = fd; in poll_set_fd() 791 pfds[i].events |= ev; in poll_set_fd() 795 if(pfds[i].fd == fd) { in poll_set_fd() 796 pfds[i].events |= ev; in poll_set_fd() 809 if(pfds[i].fd == fd) in poll_fd_isset() [all …]
|
/dports/mail/tpop3d/tpop3d-1.5.5/ |
H A D | ioabs_tcp.c | 77 static void ioabs_tcp_pre_select(connection c, int *n, struct pollfd *pfds) { in ioabs_tcp_pre_select() argument 84 pfds[c->s_index].fd = c->s; in ioabs_tcp_pre_select() 85 pfds[c->s_index].events |= POLLIN; in ioabs_tcp_pre_select() 87 pfds[c->s_index].events |= POLLOUT; in ioabs_tcp_pre_select() 92 static int ioabs_tcp_post_select(connection c, struct pollfd *pfds) { in ioabs_tcp_post_select() argument 98 if (pfds[c->s_index].revents & (POLLIN | POLLHUP)) { in ioabs_tcp_post_select() 127 if (pfds[c->s_index].revents & POLLOUT && buffer_available(c->wrb) > 0) { in ioabs_tcp_post_select()
|
/dports/net/mpich/mpich-3.4.3/modules/libfabric/include/ |
H A D | ofi_epoll.h | 72 int ofi_pollfds_create(struct ofi_pollfds **pfds); 73 int ofi_pollfds_add(struct ofi_pollfds *pfds, int fd, uint32_t events, 75 int ofi_pollfds_mod(struct ofi_pollfds *pfds, int fd, uint32_t events, 77 int ofi_pollfds_del(struct ofi_pollfds *pfds, int fd); 78 int ofi_pollfds_wait(struct ofi_pollfds *pfds, void **contexts, 80 void ofi_pollfds_close(struct ofi_pollfds *pfds);
|
/dports/sysutils/barrier/barrier-2.3.3/src/lib/net/ |
H A D | SocketMultiplexer.cpp | 144 std::vector<IArchNetwork::PollEntry> pfds; in serviceThread() local 166 pfds.clear(); in serviceThread() 167 pfds.reserve(m_socketJobMap.size()); in serviceThread() 181 pfds.push_back(pfd); in serviceThread() 191 if (!pfds.empty()) { in serviceThread() 192 status = ARCH->pollSocket(&pfds[0], (int)pfds.size(), -1); in serviceThread() 209 while (i < pfds.size() && jobCursor != m_socketJobs.end()) { in serviceThread() 212 unsigned short revents = pfds[i].m_revents; in serviceThread()
|
/dports/sysutils/synergy/synergy-core-1.14.0.4-stable/src/lib/net/ |
H A D | SocketMultiplexer.cpp | 148 std::vector<IArchNetwork::PollEntry> pfds; in serviceThread() local 170 pfds.clear(); in serviceThread() 171 pfds.reserve(m_socketJobMap.size()); in serviceThread() 186 pfds.push_back(pfd); in serviceThread() 196 if (!pfds.empty()) { in serviceThread() 197 status = ARCH->pollSocket(&pfds[0], (int)pfds.size(), -1); in serviceThread() 214 while (i < pfds.size() && jobCursor != m_socketJobs.end()) { in serviceThread() 217 unsigned short revents = pfds[i].m_revents; in serviceThread()
|
/dports/sysutils/slurm-wlm/slurm-20.02.7/src/common/ |
H A D | eio.c | 358 static int _poll_internal(struct pollfd *pfds, unsigned int nfds, in _poll_internal() argument 367 while ((n = poll(pfds, nfds, timeout)) < 0) { in _poll_internal() 400 if (!pfds) { /* Fix for CLANG false positive */ in _poll_setup_pollfds() 409 pfds[nfds].fd = obj->fd; in _poll_setup_pollfds() 410 pfds[nfds].events = POLLOUT | POLLIN | in _poll_setup_pollfds() 415 pfds[nfds].fd = obj->fd; in _poll_setup_pollfds() 416 pfds[nfds].events = POLLIN | POLLRDHUP; in _poll_setup_pollfds() 420 pfds[nfds].fd = obj->fd; in _poll_setup_pollfds() 421 pfds[nfds].events = POLLOUT | POLLHUP; in _poll_setup_pollfds() 436 if (pfds[i].revents > 0) in _poll_dispatch() [all …]
|
/dports/math/freefem++/FreeFem-sources-4.6/3rdparty/scotch/ |
H A D | Makefile-scotch.inc | 21 …_FIXED_SEED/-DCOMMON_RANDOM_RAND -DCOMMON_RANDOM_FIXED_SEED -D'pipe(pfds)=_pipe(pfds,1024,0x8000)' 22 …DCOMMON_RANDOM_FIXED_SEED -DCOMMON_STUB_FORK -DSCOTCH_RENAME -D'pipe(pfds)=_pipe(pfds,1024,0x8000)' 23 …OTCH_RENAME -DCOMMON_RANDOM_RAND -DCOMMON_RANDOM_FIXED_SEED -D'pipe(pfds)=_pipe(pfds,1024,0x8000)'
|
/dports/audio/alsa-lib/alsa-lib-1.2.2/test/ |
H A D | seq-sender.c | 149 struct pollfd *pfds; in event_sender() local 232 pfds = alloca(sizeof(*pfds) * max); in event_sender() 236 snd_seq_poll_descriptors(handle, pfds, nseqs, POLLOUT|POLLIN); in event_sender() 238 snd_seq_poll_descriptors(handle, pfds, nseqs, POLLIN); in event_sender() 243 snd_seq_poll_descriptors(phandle, pfds + max, pmax); in event_sender() 247 if (poll(pfds, max, -1) < 0) in event_sender() 250 if (phandle && (pfds[nseqs].revents & POLLOUT)) { in event_sender() 257 if (pfds[0].revents & POLLOUT) in event_sender() 259 if (pfds[0].revents & POLLIN) { in event_sender()
|
/dports/sysutils/slurm-wlm/slurm-20.02.7/src/plugins/prep/script/ |
H A D | prep_script_slurmd.c | 197 int pfds[2]; in _run_spank_job_script() local 199 if (pipe(pfds) < 0) { in _run_spank_job_script() 204 fd_set_close_on_exec(pfds[1]); in _run_spank_job_script() 228 if (dup2(pfds[0], STDIN_FILENO) < 0) in _run_spank_job_script() 239 close(pfds[0]); in _run_spank_job_script() 241 if (send_slurmd_conf_lite(pfds[1], conf) < 0) in _run_spank_job_script() 243 close(pfds[1]); in _run_spank_job_script()
|
/dports/sysutils/synergy/synergy-core-1.14.0.4-stable/src/lib/platform/ |
H A D | XWindowsEventQueueBuffer.cpp | 123 struct pollfd pfds[2]; in waitForEvent() local 124 pfds[0].fd = ConnectionNumber(m_display); in waitForEvent() 125 pfds[0].events = POLLIN; in waitForEvent() 126 pfds[1].fd = m_pipefd[0]; in waitForEvent() 127 pfds[1].events = POLLIN; in waitForEvent() 173 … retval = poll(pfds, 2, TIMEOUT_DELAY); //16ms = 60hz, but we make it > to play nicely with the cpu in waitForEvent() 174 if (pfds[1].revents & POLLIN) { in waitForEvent()
|
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/audio/ |
H A D | alsaaudio.c | 58 struct pollfd *pfds; member 130 struct pollfd *pfds = hlp->pfds; in alsa_fini_poll() local 132 if (pfds) { in alsa_fini_poll() 136 g_free (pfds); in alsa_fini_poll() 138 hlp->pfds = NULL; in alsa_fini_poll() 239 struct pollfd *pfds; in alsa_poll_helper() local 248 pfds = audio_calloc ("alsa_poll_helper", count, sizeof (*pfds)); in alsa_poll_helper() 249 if (!pfds) { in alsa_poll_helper() 258 g_free (pfds); in alsa_poll_helper() 270 trace_alsa_set_handler(pfds[i].events, i, pfds[i].fd, err); in alsa_poll_helper() [all …]
|
/dports/net-p2p/c-lightning/lightning-0.10.2/ccan/ccan/fdpass/ |
H A D | _info | 33 * int pfds[2]; 35 * pipe(pfds); 36 * fdpass_send(sockfd, pfds[0]); 37 * close(pfds[0]); 38 * write(pfds[1], "hello!", 6);
|
/dports/audio/alsa-utils/alsa-utils-1.2.2/axfer/ |
H A D | waiter.c | 72 waiter->pfds = calloc(pfd_count, sizeof(*waiter->pfds)); in waiter_context_init() 73 if (waiter->pfds == NULL) in waiter_context_init() 98 if (waiter->pfds) in waiter_context_destroy() 99 free(waiter->pfds); in waiter_context_destroy()
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/lib/ |
H A D | thread.c | 335 m->handler.pfds[i].fd, m->handler.pfds[i].events, in show_thread_poll_helper() 336 m->handler.pfds[i].revents); in show_thread_poll_helper() 869 m->handler.pfds[queuepos].fd = fd; in funcname_thread_add_read_write() 1054 memmove(master->handler.pfds + i, master->handler.pfds + i + 1, in thread_cancel_rw() 1350 if (pfds[i].revents == 0) in thread_process_io() 1371 pfds[i].revents, i); in thread_process_io() 1373 if (pfds[i].revents & POLLOUT) in thread_process_io() 1375 POLLOUT, pfds[i].revents, i); in thread_process_io() 1380 if (pfds[i].revents & POLLNVAL) { in thread_process_io() 1381 memmove(m->handler.pfds + i, m->handler.pfds + i + 1, in thread_process_io() [all …]
|
/dports/net/frr7/frr-frr-7.5.1/lib/ |
H A D | thread.c | 335 m->handler.pfds[i].fd, m->handler.pfds[i].events, in show_thread_poll_helper() 336 m->handler.pfds[i].revents); in show_thread_poll_helper() 869 m->handler.pfds[queuepos].fd = fd; in funcname_thread_add_read_write() 1054 memmove(master->handler.pfds + i, master->handler.pfds + i + 1, in thread_cancel_rw() 1350 if (pfds[i].revents == 0) in thread_process_io() 1371 pfds[i].revents, i); in thread_process_io() 1373 if (pfds[i].revents & POLLOUT) in thread_process_io() 1375 POLLOUT, pfds[i].revents, i); in thread_process_io() 1380 if (pfds[i].revents & POLLNVAL) { in thread_process_io() 1381 memmove(m->handler.pfds + i, m->handler.pfds + i + 1, in thread_process_io() [all …]
|
/dports/databases/libdrizzle/libdrizzle-0.8/libdrizzle/ |
H A D | drizzle.c | 93 drizzle->pfds= NULL; 139 if (drizzle->pfds != NULL) 140 free(drizzle->pfds); 379 struct pollfd *pfds; 386 pfds= realloc(drizzle->pfds, drizzle->con_count * sizeof(struct pollfd)); 387 if (pfds == NULL) 393 drizzle->pfds= pfds; 397 pfds= drizzle->pfds; 405 pfds[x].fd= con->fd; 406 pfds[x].events= con->events; [all …]
|
/dports/net-p2p/c-lightning/lightning-0.10.2/connectd/ |
H A D | websocketd.c | 321 struct pollfd pfds[2]; in main() local 331 pfds[0].fd = STDIN_FILENO; in main() 332 pfds[0].events = POLLIN; in main() 333 pfds[1].fd = STDOUT_FILENO; in main() 334 pfds[1].events = POLLIN; in main() 337 poll(pfds, 2, -1); in main() 339 if (pfds[1].revents & POLLIN) in main() 341 if (pfds[0].revents & POLLIN) in main()
|