/dports/sysutils/freeipmi/freeipmi-1.6.8/ipmipower/ |
H A D | ipmipower.c | 406 struct pollfd *pfds = NULL; 463 free (pfds); 476 pfds[i*2].events = pfds[i*2+1].events = 0; 477 pfds[i*2].revents = pfds[i*2+1].revents = 0; 479 pfds[i*2].events |= POLLIN; 495 pfds[nfds-2].revents = 0; 497 pfds[nfds-1].fd = STDOUT_FILENO; 499 pfds[nfds-1].events = POLLOUT; 501 pfds[nfds-1].events = 0; 502 pfds[nfds-1].revents = 0; [all …]
|
/dports/net/liblinphone/linphone-3.12.0/daemon/ |
H A D | daemon-pipetest.c | 81 struct pollfd pfds[2] = { { 0 } }; in main() local 83 pfds[0].fd=fd; in main() 84 pfds[0].events=POLLIN; in main() 85 pfds[1].fd=1; in main() 86 pfds[1].events=POLLIN; in main() 89 err=poll(pfds,2,-1); in main() 92 if (pfds[0].revents & POLLIN){ in main() 93 if ((bytes=read(pfds[0].fd,buf,sizeof(buf)))>0){ in main() 104 if (pfds[1].revents & POLLIN){ in main() 105 if ((bytes=read(pfds[1].fd,buf,sizeof(buf)))>0){ in main() [all …]
|
/dports/benchmarks/dkftpbench/dkftpbench-0.45/ |
H A D | dklimits.c | 157 pfds[i].fd = 1; 158 pfds[i].events = POLLOUT; 161 if (poll(pfds, i, 10) < 0) 164 if (poll(pfds, j, 10) < 0) 174 struct pollfd pfds[65536]; 208 pfds[i].fd = fds[i]; 209 pfds[i].events = POLLOUT; 230 if ((pfds[i].fd == -1) || !pfds[i].revents) 238 close(pfds[i].fd); 252 close(pfds[i].fd); [all …]
|
/dports/net-mgmt/rancid3/rancid-3.13/bin/ |
H A D | hpuifilter.c | 162 struct pollfd pfds[3]; in main() local 335 pfds[0].fd = fileno(stdin); in main() 337 pfds[1].fd = fileno(stdout); in main() 338 pfds[1].events = POLLEXP; in main() 339 pfds[2].fd = ptym; in main() 445 if (pfds[0].revents & POLLIN) { in main() 458 if (pfds[0].revents & POLLEXP) in main() 470 pfds[1].events |= POLLOUT; in main() 477 if (pfds[2].revents & POLLEXP) in main() 494 tcdrain(pfds[1].fd); in main() [all …]
|
/dports/sysutils/pdsh/pdsh-pdsh-2.34/src/common/ |
H A D | xpoll.c | 59 pfds[i].fd = xfds[i].fd; in _poll() 60 pfds[i].events = 0; in _poll() 61 pfds[i].revents = 0; in _poll() 64 pfds[i].events |= POLLIN; in _poll() 66 pfds[i].events |= POLLOUT; in _poll() 70 Free((void **)&pfds); in _poll() 75 if (pfds[i].revents & POLLIN) in _poll() 77 if (pfds[i].revents & POLLOUT) in _poll() 79 if (pfds[i].revents & POLLERR || pfds[i].revents & POLLHUP) in _poll() 81 if (pfds[i].revents & POLLNVAL) in _poll() [all …]
|
/dports/devel/emscripten/emscripten-2.0.3/tests/unistd/ |
H A D | pipe.c | 46 struct pollfd pfds[2]; in test_poll() local 47 memset(pfds, 0, sizeof pfds); in test_poll() 48 pfds[0].fd = fd[0]; in test_poll() 49 pfds[0].events = POLLIN | POLLOUT; in test_poll() 50 pfds[1].fd = fd[1]; in test_poll() 51 pfds[1].events = POLLIN | POLLOUT; in test_poll() 53 int ret = poll(pfds, 2, 0); in test_poll() 57 assert(pfds[0].revents == POLLIN); in test_poll() 62 assert(pfds[0].revents == 0); in test_poll() 64 assert(pfds[1].revents == POLLOUT); in test_poll()
|
/dports/devel/gearmand/gearmand-1.0.6/libgearman/ |
H A D | kill.cc | 98 struct pollfd pfds[1]; in gearman_kill() local 99 memset(&pfds, 0, sizeof(pfds)); in gearman_kill() 100 pfds[0].fd= handle.read_fd; in gearman_kill() 101 pfds[0].events= POLLIN; in gearman_kill() 102 pfds[0].revents= 0; in gearman_kill() 104 int ret= ::poll(pfds, 1, 1500); in gearman_kill()
|
H A D | universal.cc | 88 self.pfds= NULL; in gearman_universal_initialize() 163 if (universal.pfds) in gearman_universal_free() 166 free(universal.pfds); in gearman_universal_free() 167 universal.pfds= NULL; in gearman_universal_free() 266 struct pollfd *pfds; in gearman_wait() local 274 if (pfds == NULL) in gearman_wait() 280 universal.pfds= pfds; in gearman_wait() 285 pfds= universal.pfds; in gearman_wait() 296 pfds[x].fd= con->fd; in gearman_wait() 298 pfds[x].revents= 0; in gearman_wait() [all …]
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/compat/linux/common/ |
H A D | linux_pipe.c | 65 linux_pipe_return(struct lwp *l, int *pfds, register_t *retval) in linux_pipe_return() argument 69 if (sizeof(*retval) != sizeof(*pfds)) { in linux_pipe_return() 75 if ((error = copyout(rpfds, pfds, sizeof(rpfds)))) in linux_pipe_return() 78 if ((error = copyout(retval, pfds, 2 * sizeof(*pfds)))) in linux_pipe_return() 97 return linux_pipe_return(l, SCARG(uap, pfds), retval); in linux_sys_pipe() 117 return linux_pipe_return(l, SCARG(uap, pfds), retval); in linux_sys_pipe2()
|
/dports/net/rtpproxy/rtpproxy-2.1.1/src/ |
H A D | rtpp_command_async.c | 65 struct pollfd *pfds; member 72 struct pollfd *pfds; member 333 psp->pfds = tp; in rtpp_cmd_acceptor_run() 438 memmove(&psp->pfds[i], &psp->pfds[i + 1], in rtpp_cmd_queue_run() 527 if (psp->pfds == NULL) { in init_pollset() 531 free(psp->pfds); in init_pollset() 544 psp->pfds[i].revents = 0; in init_pollset() 563 free(psp->pfds); in free_pollset() 584 if (asp->pfds == NULL) { in init_accptset() 590 free(asp->pfds); in init_accptset() [all …]
|
/dports/security/p11-kit/p11-kit-0.24.0/common/ |
H A D | frob-getprogname.c | 52 int pfds[2]; in main() local 54 if (pipe (pfds) < 0) { in main() 73 dup2 (pfds[1], STDOUT_FILENO); in main() 74 close (pfds[0]); in main() 75 close (pfds[1]); in main() 84 close (pfds[1]); in main() 86 nread = read (pfds[0], buffer + offset, sizeof(buffer) - offset); in main()
|
/dports/multimedia/mplayer/mplayer-export-2021-12-29/libao2/ |
H A D | ao_sndio.c | 46 static struct pollfd *pfds; variable 130 pfds = calloc(sio_nfds(hdl), sizeof(*pfds)); in init() 131 if (pfds == NULL) { in init() 158 free(pfds); in init() 159 pfds = NULL; in init() 173 free(pfds); in uninit() 174 pfds = NULL; in uninit() 195 int n = sio_pollfd(hdl, pfds, POLLOUT); in refresh() 196 while (poll(pfds, n, 0) < 0 && errno == EINTR) in refresh() 198 sio_revents(hdl, pfds); in refresh()
|
/dports/multimedia/mencoder/mplayer-export-2021-12-29/libao2/ |
H A D | ao_sndio.c | 46 static struct pollfd *pfds; variable 130 pfds = calloc(sio_nfds(hdl), sizeof(*pfds)); in init() 131 if (pfds == NULL) { in init() 158 free(pfds); in init() 159 pfds = NULL; in init() 173 free(pfds); in uninit() 174 pfds = NULL; in uninit() 195 int n = sio_pollfd(hdl, pfds, POLLOUT); in refresh() 196 while (poll(pfds, n, 0) < 0 && errno == EINTR) in refresh() 198 sio_revents(hdl, pfds); in refresh()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/content/browser/ |
H A D | sandbox_ipc_linux.cc | 37 struct pollfd pfds[2]; in Run() local 38 pfds[0].fd = lifeline_fd_; in Run() 39 pfds[0].events = POLLIN; in Run() 40 pfds[1].fd = browser_socket_; in Run() 41 pfds[1].events = POLLIN; in Run() 46 HANDLE_EINTR(poll(pfds, base::size(pfds), -1 /* no timeout */)); in Run() 62 if (pfds[0].revents) { in Run() 68 if (pfds[1].revents & (POLLERR | POLLHUP)) { in Run() 72 if (pfds[1].revents & POLLIN) { in Run()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/content/browser/ |
H A D | sandbox_ipc_linux.cc | 38 struct pollfd pfds[2]; in Run() local 39 pfds[0].fd = lifeline_fd_; in Run() 40 pfds[0].events = POLLIN; in Run() 41 pfds[1].fd = browser_socket_; in Run() 42 pfds[1].events = POLLIN; in Run() 47 HANDLE_EINTR(poll(pfds, base::size(pfds), -1 /* no timeout */)); in Run() 63 if (pfds[0].revents) { in Run() 69 if (pfds[1].revents & (POLLERR | POLLHUP)) { in Run() 73 if (pfds[1].revents & POLLIN) { in Run()
|
/dports/mail/tpop3d/tpop3d-1.5.5/ |
H A D | netloop.c | 128 pfds[i].fd = s; in listeners_pre_select() 129 pfds[i].events |= POLLIN; in listeners_pre_select() 219 (*J)->io->pre_select(*J, n, pfds); in connections_pre_select() 426 r = c->io->post_select(c, pfds); in connections_post_select() 554 struct pollfd *pfds; in net_loop() local 570 pfds = xmalloc((max_listeners + max_connections) * sizeof *pfds); in net_loop() 580 pfds[i].fd = -1; in net_loop() 581 pfds[i].events = pfds[i].revents = 0; in net_loop() 586 connections_pre_select(&n, pfds); in net_loop() 596 connections_post_select(pfds); in net_loop() [all …]
|
/dports/audio/libopenshot-audio/libopenshot-audio-0.2.2/JuceLibraryCode/modules/juce_events/native/ |
H A D | juce_linux_Messaging.cpp | 125 pfds.push_back ({ fd, eventMask, 0 }); in registerFdCallback() 142 pfds.erase (std::remove_if (std::begin (pfds), std::end (pfds), removePredicate), in unregisterFdCallback() 143 std::end (pfds)); in unregisterFdCallback() 151 if (poll (&pfds.front(), static_cast<nfds_t> (pfds.size()), 0) == 0) in dispatchPendingEvents() 156 for (auto& pfd : pfds) in dispatchPendingEvents() 180 poll (&pfds.front(), static_cast<nfds_t> (pfds.size()), timeoutMs); in sleepUntilNextEvent() 190 std::vector<pollfd> pfds; member
|
/dports/devel/apr1/apr-1.7.0/network_io/unix/ |
H A D | socket_util.c | 22 apr_pollfd_t pfds[1]; in apr_socket_atreadeof() local 31 pfds[0].reqevents = APR_POLLIN; in apr_socket_atreadeof() 32 pfds[0].desc_type = APR_POLL_SOCKET; in apr_socket_atreadeof() 33 pfds[0].desc.s = sock; in apr_socket_atreadeof() 36 rv = apr_poll(&pfds[0], 1, &nfds, 0); in apr_socket_atreadeof() 50 else if (nfds == 1 && (pfds[0].rtnevents & APR_POLLIN) == APR_POLLIN) { in apr_socket_atreadeof()
|
/dports/net/nbdkit/nbdkit-1.20.4/server/ |
H A D | fuzzer.c | 149 struct pollfd pfds[1]; in client() local 157 pfds[0].fd = sock; in client() 158 pfds[0].events = POLLIN; in client() 159 if (size > 0) pfds[0].events |= POLLOUT; in client() 160 pfds[0].revents = 0; in client() 162 if (poll (pfds, 1, -1) == -1) { in client() 171 if ((pfds[0].revents & POLLIN) != 0) { in client() 182 if ((pfds[0].revents & POLLOUT) != 0) { in client()
|
/dports/devel/ivykis/ivykis-0.42.4/src/ |
H A D | iv_fd_poll.c | 29 st->u.poll.pfds = malloc(maxfd * sizeof(struct pollfd)); in iv_fd_poll_init() 30 if (st->u.poll.pfds == NULL) in iv_fd_poll_init() 35 free(st->u.poll.pfds); in iv_fd_poll_init() 54 revents = st->u.poll.pfds[i].revents; in iv_fd_poll_activate_fds() 122 st->u.poll.pfds[fd->u.index].fd = fd->fd; in iv_fd_poll_notify_fd() 123 st->u.poll.pfds[fd->u.index].events = in iv_fd_poll_notify_fd() 131 st->u.poll.pfds[fd->u.index] = in iv_fd_poll_notify_fd() 132 st->u.poll.pfds[st->u.poll.num_regd_fds]; in iv_fd_poll_notify_fd() 141 st->u.poll.pfds[fd->u.index].events = in iv_fd_poll_notify_fd() 169 free(st->u.poll.pfds); in iv_fd_poll_deinit() [all …]
|
/dports/sysutils/syslog-ng/syslog-ng-3.35.1/lib/ivykis/src/ |
H A D | iv_fd_poll.c | 29 st->u.poll.pfds = malloc(maxfd * sizeof(struct pollfd)); in iv_fd_poll_init() 30 if (st->u.poll.pfds == NULL) in iv_fd_poll_init() 35 free(st->u.poll.pfds); in iv_fd_poll_init() 54 revents = st->u.poll.pfds[i].revents; in iv_fd_poll_activate_fds() 122 st->u.poll.pfds[fd->u.index].fd = fd->fd; in iv_fd_poll_notify_fd() 123 st->u.poll.pfds[fd->u.index].events = in iv_fd_poll_notify_fd() 131 st->u.poll.pfds[fd->u.index] = in iv_fd_poll_notify_fd() 132 st->u.poll.pfds[st->u.poll.num_regd_fds]; in iv_fd_poll_notify_fd() 141 st->u.poll.pfds[fd->u.index].events = in iv_fd_poll_notify_fd() 169 free(st->u.poll.pfds); in iv_fd_poll_deinit() [all …]
|
/dports/audio/ecasound/ecasound-2.9.3/libecasound/ |
H A D | midiio-aseq.cpp | 118 struct pollfd *pfds; in poll_descriptor() local 121 pfds = reinterpret_cast<struct pollfd*>(alloca(sizeof(*pfds) * npfds)); in poll_descriptor() 122 snd_seq_poll_descriptors(seq_handle_repp, pfds, npfds, POLLIN|POLLOUT); in poll_descriptor() 123 return pfds->fd; in poll_descriptor() 222 struct pollfd *pfds; in pending_messages() local 225 pfds = (struct pollfd *)alloca(sizeof(*pfds) * npfds); in pending_messages() 226 snd_seq_poll_descriptors(seq_handle_repp, pfds, npfds, POLLIN); in pending_messages() 227 result = poll(pfds, npfds, timeout); in pending_messages()
|
/dports/security/sudo/sudo-1.9.8p2/src/ |
H A D | preserve_fds.c | 39 add_preserved_fd(struct preserved_fd_list *pfds, int fd) in add_preserved_fd() argument 55 TAILQ_FOREACH(pfd, pfds, entries) { in add_preserved_fd() 73 TAILQ_INSERT_TAIL(pfds, pfd_new, entries); in add_preserved_fd() 86 closefrom_except(int startfd, struct preserved_fd_list *pfds) in closefrom_except() argument 94 TAILQ_FOREACH_REVERSE_SAFE(pfd, pfds, preserved_fd_list, entries, pfd_next) { in closefrom_except() 102 TAILQ_REMOVE(pfds, pfd, entries); in closefrom_except() 132 TAILQ_FOREACH(pfd, pfds, entries) { in closefrom_except() 161 TAILQ_FOREACH_REVERSE(pfd, pfds, preserved_fd_list, entries) { in closefrom_except() 191 parse_preserved_fds(struct preserved_fd_list *pfds, const char *fdstr) in parse_preserved_fds() argument 210 add_preserved_fd(pfds, (int)lval); in parse_preserved_fds()
|
/dports/devel/libubox/libubox-c83a84af/ |
H A D | usock.c | 153 struct pollfd pfds[2] = { in usock_inet_timeout() local 183 if (pfds[0].fd < 0) { in usock_inet_timeout() 189 if (poll_restart(pfds, 1, 300) == 1) { in usock_inet_timeout() 191 sock = pfds[0].fd; in usock_inet_timeout() 204 if (pfds[1].fd < 0) { in usock_inet_timeout() 213 poll_restart(pfds + !rp_v6, !!rp_v6 + !!rp_v4, timeout); in usock_inet_timeout() 214 if (pfds[0].revents & POLLOUT) { in usock_inet_timeout() 216 sock = pfds[0].fd; in usock_inet_timeout() 220 if (pfds[1].revents & POLLOUT) { in usock_inet_timeout() 222 sock = pfds[1].fd; in usock_inet_timeout() [all …]
|
/dports/net/nbdkit/nbdkit-1.20.4/plugins/eval/ |
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 …]
|