/dports/mail/tpop3d/tpop3d-1.5.5/ |
H A D | ioabs_tls.c | 244 static void ioabs_tls_pre_select(connection c, int *n, struct pollfd *pfds) { in ioabs_tls_pre_select() argument 251 pfds[c->s_index].fd = c->s; in ioabs_tls_pre_select() 252 pfds[c->s_index].events |= POLLIN; /* always want to read */ in ioabs_tls_pre_select() 256 pfds[c->s_index].events |= POLLOUT; in ioabs_tls_pre_select() 261 static int ioabs_tls_post_select(connection c, struct pollfd *pfds) { in ioabs_tls_post_select() argument 268 canread = pfds[c->s_index].revents & (POLLIN | POLLHUP); in ioabs_tls_post_select() 269 canwrite = pfds[c->s_index].revents & POLLOUT; in ioabs_tls_post_select()
|
/dports/audio/alsa-lib/alsa-lib-1.2.2/src/hwdep/ |
H A D | hwdep.c | 266 int snd_hwdep_poll_descriptors(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int space) in snd_hwdep_poll_descriptors() argument 270 pfds->fd = hwdep->poll_fd; in snd_hwdep_poll_descriptors() 273 pfds->events = POLLOUT|POLLERR|POLLNVAL; in snd_hwdep_poll_descriptors() 276 pfds->events = POLLIN|POLLERR|POLLNVAL; in snd_hwdep_poll_descriptors() 279 pfds->events = POLLOUT|POLLIN|POLLERR|POLLNVAL; in snd_hwdep_poll_descriptors() 297 int snd_hwdep_poll_descriptors_revents(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int nfds, … in snd_hwdep_poll_descriptors_revents() argument 299 assert(hwdep && pfds && revents); in snd_hwdep_poll_descriptors_revents() 301 *revents = pfds->revents; in snd_hwdep_poll_descriptors_revents()
|
/dports/devel/android-tools-fastboot/platform_system_core-platform-tools-29.0.5/adb/ |
H A D | sysdeps_test.cpp | 210 std::vector<adb_pollfd> pfds; in TEST_F() local 218 pfds.push_back(pfd); in TEST_F() 221 ASSERT_EQ(num_sockets, adb_poll(pfds.data(), pfds.size(), 0)); in TEST_F() 223 ASSERT_NE(0, pfds[i].revents & POLLIN); in TEST_F() 226 ASSERT_EQ(adb_read(pfds[i].fd, buf, sizeof(buf)), static_cast<ssize_t>(sizeof(int32_t))); in TEST_F()
|
/dports/math/octave-forge-parallel/parallel-4.0.1/src/ |
H A D | gnulib-wrappers.c | 146 struct pollfd *pfds = pfds_arg; in gnulib_poll_in_wrapper() local 150 pfds[id].fd = in_out[id]; in gnulib_poll_in_wrapper() 152 pfds[id].events = POLLIN; in gnulib_poll_in_wrapper() 154 pfds[id].revents = 0; in gnulib_poll_in_wrapper() 159 ret = poll (pfds, nfds, timeout); in gnulib_poll_in_wrapper() 163 in_out[id] = pfds[id].revents; in gnulib_poll_in_wrapper()
|
/dports/dns/dnsdist/dnsdist-1.6.1/ |
H A D | misc.cc | 365 pfds[ctr].fd = fd; in waitForMultiData() 366 pfds[ctr].events = POLLIN; in waitForMultiData() 395 struct pollfd pfds[2]; in waitFor2Data() local 397 pfds[0].fd = fd1; in waitFor2Data() 398 pfds[1].fd = fd2; in waitFor2Data() 400 pfds[0].events= pfds[1].events = POLLIN; in waitFor2Data() 411 if((pfds[0].revents & POLLIN) && !(pfds[1].revents & POLLIN)) in waitFor2Data() 412 *fd = pfds[0].fd; in waitFor2Data() 413 else if((pfds[1].revents & POLLIN) && !(pfds[0].revents & POLLIN)) in waitFor2Data() 414 *fd = pfds[1].fd; in waitFor2Data() [all …]
|
/dports/dns/powerdns/pdns-4.5.2/pdns/ |
H A D | misc.cc | 365 pfds[ctr].fd = fd; in waitForMultiData() 366 pfds[ctr].events = POLLIN; in waitForMultiData() 395 struct pollfd pfds[2]; in waitFor2Data() local 397 pfds[0].fd = fd1; in waitFor2Data() 398 pfds[1].fd = fd2; in waitFor2Data() 400 pfds[0].events= pfds[1].events = POLLIN; in waitFor2Data() 411 if((pfds[0].revents & POLLIN) && !(pfds[1].revents & POLLIN)) in waitFor2Data() 412 *fd = pfds[0].fd; in waitFor2Data() 413 else if((pfds[1].revents & POLLIN) && !(pfds[0].revents & POLLIN)) in waitFor2Data() 414 *fd = pfds[1].fd; in waitFor2Data() [all …]
|
/dports/comms/tits/tits-1.3.0/ |
H A D | dispatcher.c | 240 unsigned int pfds; in dispatcher_mainloop() local 246 for (pfds = 0, ctx = TAILQ_FIRST(&contexts); ctx != NULL; in dispatcher_mainloop() 248 pfds += context_setup_pollfds(ctx, &pfdlist[pfds]); in dispatcher_mainloop() 257 while ((nfds = poll(pfdlist, pfds, timeout)) < 0 && in dispatcher_mainloop()
|
/dports/graphics/airsaned/AirSane-0.3.2-50-gdeab313/web/ |
H A D | httpserver.cpp | 314 std::vector<struct pollfd> pfds(1); in run() local 315 pfds[0].fd = pipeReadFd; in run() 316 pfds[0].events = POLLIN; in run() 323 pfds.push_back(pfd); in run() 330 int r = ::poll(pfds.data(), pfds.size(), -1); in run() 331 if (r > 0 && pfds[0].revents) { in run() 341 for (size_t i = 1; i < pfds.size(); ++i) { in run() 342 if (pfds[i].revents) { in run() 345 int fd = ::accept(pfds[i].fd, &addr.sa, &len); in run() 358 for (size_t i = 1; i < pfds.size(); ++i) in run() [all …]
|
/dports/net/kamailio/kamailio-5.4.5/utils/pdbt/ |
H A D | pdbt.c | 454 int query_udp(char *number, int timeout, struct pollfd *pfds, struct sockaddr_in *dstaddr, socklen_… in query_udp() argument 474 while (recv(pfds->fd, buf, sizeof(struct pdb_msg), MSG_DONTWAIT) > 0) { in query_udp() 504 …ret=sendto(pfds->fd, (struct pdb_msg*)&msg, msg.hdr.length, MSG_DONTWAIT, (struct sockaddr *)dstad… in query_udp() 512 ret=sendto(pfds->fd, buf, reqlen, MSG_DONTWAIT, (struct sockaddr *)dstaddr, dstaddrlen); in query_udp() 532 ret=poll(pfds, 1, timeout-td); in query_udp() 533 if (pfds->revents & POLLIN) { in query_udp() 578 pfds->revents = 0; in query_udp() 595 struct pollfd pfds; member 628 …carrierid = query_udp(number, sdata->timeout, &(sdata->pfds), &(sdata->dstaddr), sdata->dstaddrlen… in query_server() 864 sdata.pfds.fd=sockfd; in main() [all …]
|
/dports/security/snort3/snort3-3.1.19.0/src/control/ |
H A D | control_mgmt.cc | 168 static struct pollfd pfds[MAX_CONTROL_FDS]; variable 182 struct pollfd* pfd = &pfds[npfds]; in register_control_fd() 194 if (pfds[i].fd == orig_fd) in unregister_control_fd() 199 pfds[i].fd = pfds[npfds].fd; in unregister_control_fd() 210 int ret = poll(pfds, npfds, 0); in poll_control_fds() 220 struct pollfd* pfd = &pfds[i]; in poll_control_fds()
|
/dports/audio/alsa-utils/alsa-utils-1.2.2/alsactl/ |
H A D | monitor.c | 266 struct pollfd *pfds; in operate_dispatcher() local 271 pfds = calloc(entry->pfd_count, sizeof(*pfds)); in operate_dispatcher() 272 if (!pfds) in operate_dispatcher() 275 count = snd_ctl_poll_descriptors(entry->handle, pfds, entry->pfd_count); in operate_dispatcher() 286 err = epoll_ctl(epfd, op, pfds[i].fd, epev); in operate_dispatcher() 291 free(pfds); in operate_dispatcher()
|
/dports/audio/alsa-lib/alsa-lib-1.2.2/test/ |
H A D | playmidi1.c | 120 struct pollfd *pfds = alloca(sizeof(*pfds) * npfds); in write_ev() local 121 snd_seq_poll_descriptors(seq_handle, pfds, npfds, POLLOUT); in write_ev() 122 if ((rc = poll(pfds, npfds, -1)) < 0) { in write_ev() 378 struct pollfd *pfds = alloca(sizeof(*pfds) * npfds); in wait_for_event() local 379 snd_seq_poll_descriptors(seq_handle, pfds, npfds, POLLIN); in wait_for_event() 380 if ((left = poll(pfds, npfds, -1)) < 0) { in wait_for_event()
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/freetdm/src/ftmod/ftmod_zt/ |
H A D | ftmod_zt.c | 980 struct pollfd pfds[1]; in FIO_WAIT_FUNCTION() local 995 memset(&pfds[0], 0, sizeof(pfds[0])); in FIO_WAIT_FUNCTION() 996 pfds[0].fd = ftdmchan->sockfd; in FIO_WAIT_FUNCTION() 997 pfds[0].events = inflags; in FIO_WAIT_FUNCTION() 998 result = poll(pfds, 1, to); in FIO_WAIT_FUNCTION() 1006 if (pfds[0].revents & POLLERR) { in FIO_WAIT_FUNCTION() 1012 inflags = pfds[0].revents; in FIO_WAIT_FUNCTION() 1056 memset(&pfds[j], 0, sizeof(pfds[j])); in FIO_SPAN_POLL_EVENT_FUNCTION() 1058 pfds[j].events = POLLPRI; in FIO_SPAN_POLL_EVENT_FUNCTION() 1062 r = poll(pfds, j, ms); in FIO_SPAN_POLL_EVENT_FUNCTION() [all …]
|
/dports/devel/grpc130/grpc-1.30.2/src/core/lib/iomgr/ |
H A D | ev_poll_posix.cc | 975 struct pollfd* pfds; local 980 pfds = pollfd_space; 995 pfds[0].events = POLLIN; 996 pfds[0].revents = 0; 1006 pfds[pfd_count].revents = 0; 1015 pfds[i].events = static_cast<short>( 1063 pfds[i].fd, (pfds[i].revents & POLLIN_CHECK) != 0, 1064 (pfds[i].revents & POLLOUT_CHECK) != 0, pfds[i].revents); 1069 if (pfds[i].revents & POLLHUP) { 1078 if (pfds != pollfd_space) { [all …]
|
/dports/devel/grpc134/grpc-1.34.1/src/core/lib/iomgr/ |
H A D | ev_poll_posix.cc | 976 struct pollfd* pfds; local 981 pfds = pollfd_space; 996 pfds[0].events = POLLIN; 997 pfds[0].revents = 0; 1007 pfds[pfd_count].revents = 0; 1016 pfds[i].events = static_cast<short>( 1064 pfds[i].fd, (pfds[i].revents & POLLIN_CHECK) != 0, 1065 (pfds[i].revents & POLLOUT_CHECK) != 0, pfds[i].revents); 1070 if (pfds[i].revents & POLLHUP) { 1079 if (pfds != pollfd_space) { [all …]
|
/dports/devel/grpc/grpc-1.42.0/src/core/lib/iomgr/ |
H A D | ev_poll_posix.cc | 977 struct pollfd* pfds; local 982 pfds = pollfd_space; 997 pfds[0].events = POLLIN; 998 pfds[0].revents = 0; 1008 pfds[pfd_count].revents = 0; 1017 pfds[i].events = static_cast<short>( 1065 pfds[i].fd, (pfds[i].revents & POLLIN_CHECK) != 0, 1066 (pfds[i].revents & POLLOUT_CHECK) != 0, pfds[i].revents); 1071 if (pfds[i].revents & POLLHUP) { 1080 if (pfds != pollfd_space) { [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/grpc/src/src/core/lib/iomgr/ |
H A D | ev_poll_posix.cc | 963 struct pollfd* pfds; local 968 pfds = pollfd_space; 983 pfds[0].events = POLLIN; 984 pfds[0].revents = 0; 994 pfds[pfd_count].revents = 0; 1003 pfds[i].events = static_cast<short>( 1051 pfds[i].fd, (pfds[i].revents & POLLIN_CHECK) != 0, 1052 (pfds[i].revents & POLLOUT_CHECK) != 0, pfds[i].revents); 1057 if (pfds[i].revents & POLLHUP) { 1066 if (pfds != pollfd_space) { [all …]
|
/dports/devel/pecl-grpc/grpc-1.42.0/src/core/lib/iomgr/ |
H A D | ev_poll_posix.cc | 977 struct pollfd* pfds; local 982 pfds = pollfd_space; 997 pfds[0].events = POLLIN; 998 pfds[0].revents = 0; 1008 pfds[pfd_count].revents = 0; 1017 pfds[i].events = static_cast<short>( 1065 pfds[i].fd, (pfds[i].revents & POLLIN_CHECK) != 0, 1066 (pfds[i].revents & POLLOUT_CHECK) != 0, pfds[i].revents); 1071 if (pfds[i].revents & POLLHUP) { 1080 if (pfds != pollfd_space) { [all …]
|
/dports/devel/py-grpcio/grpcio-1.43.0/src/core/lib/iomgr/ |
H A D | ev_poll_posix.cc | 977 struct pollfd* pfds; local 982 pfds = pollfd_space; 997 pfds[0].events = POLLIN; 998 pfds[0].revents = 0; 1008 pfds[pfd_count].revents = 0; 1017 pfds[i].events = static_cast<short>( 1065 pfds[i].fd, (pfds[i].revents & POLLIN_CHECK) != 0, 1066 (pfds[i].revents & POLLOUT_CHECK) != 0, pfds[i].revents); 1071 if (pfds[i].revents & POLLHUP) { 1080 if (pfds != pollfd_space) { [all …]
|
/dports/net/waypipe/waypipe-a11a59c58bee3972ce9e1e18731eba28cc0a8f0a/src/ |
H A D | mainloop.c | 1249 struct pollfd *pfds = NULL; in main_interface_loop() local 1262 pfds[0].fd = chanfd; in main_interface_loop() 1263 pfds[1].fd = progfd; in main_interface_loop() 1264 pfds[2].fd = linkfd; in main_interface_loop() 1266 pfds[0].events = 0; in main_interface_loop() 1267 pfds[1].events = 0; in main_interface_loop() 1268 pfds[2].events = POLLIN; in main_interface_loop() 1269 pfds[3].events = POLLIN; in main_interface_loop() 1273 pfds[1].events |= POLLIN; in main_interface_loop() 1276 pfds[0].events |= POLLIN; in main_interface_loop() [all …]
|
/dports/audio/sndio/sndio-1.8.1/libsndio/ |
H A D | sioctl.c | 79 struct pollfd pfds[SIOCTL_MAXNFDS]; 83 nfds = sioctl_pollfd(hdl, pfds, event); 86 while (poll(pfds, nfds, -1) < 0) { 93 revents = sioctl_revents(hdl, pfds);
|
/dports/lang/gcc8/gcc-8.5.0/libgo/go/runtime/ |
H A D | netpoll_aix.go | 166 var pfds [128]pollfd 175 nfound := pollset_poll(ps, &pfds[0], int32(len(pfds)), timeout) 185 pfd := &pfds[i]
|
/dports/devel/riscv64-none-elf-gcc/gcc-8.4.0/libgo/go/runtime/ |
H A D | netpoll_aix.go | 166 var pfds [128]pollfd 175 nfound := pollset_poll(ps, &pfds[0], int32(len(pfds)), timeout) 185 pfd := &pfds[i]
|
/dports/devel/arm-none-eabi-gcc/gcc-8.4.0/libgo/go/runtime/ |
H A D | netpoll_aix.go | 166 var pfds [128]pollfd 175 nfound := pollset_poll(ps, &pfds[0], int32(len(pfds)), timeout) 185 pfd := &pfds[i]
|
/dports/devel/riscv64-gcc/gcc-8.3.0/libgo/go/runtime/ |
H A D | netpoll_aix.go | 166 var pfds [128]pollfd 175 nfound := pollset_poll(ps, &pfds[0], int32(len(pfds)), timeout) 185 pfd := &pfds[i]
|