| /freebsd-11-stable/tools/tools/netmap/ |
| HD | bridge.c | 175 struct pollfd pollfd[2]; in main() local 271 memset(pollfd, 0, sizeof(pollfd)); in main() 272 pollfd[0].fd = pa->fd; in main() 273 pollfd[1].fd = pb->fd; in main() 285 pollfd[0].events = pollfd[1].events = 0; in main() 286 pollfd[0].revents = pollfd[1].revents = 0; in main() 291 ioctl(pollfd[1].fd, NIOCTXSYNC, NULL); in main() 292 pollfd[1].revents = POLLOUT; in main() 294 ioctl(pollfd[0].fd, NIOCRXSYNC, NULL); in main() 297 ioctl(pollfd[0].fd, NIOCTXSYNC, NULL); in main() [all …]
|
| HD | lb.c | 832 struct pollfd pollfd[npipes + 1]; in main() local 833 memset(&pollfd, 0, sizeof(pollfd)); in main() 861 pollfd[polli].fd = ports[i].nmd->fd; in main() 862 pollfd[polli].events = POLLOUT; in main() 863 pollfd[polli].revents = 0; in main() 867 pollfd[polli].fd = rxport->nmd->fd; in main() 868 pollfd[polli].events = POLLIN; in main() 869 pollfd[polli].revents = 0; in main() 873 rv = poll(pollfd, polli, poll_timeout); in main()
|
| /freebsd-11-stable/contrib/ntp/sntp/libevent/ |
| HD | poll.c | 65 struct pollfd *event_set; 66 struct pollfd *event_set_copy; 116 struct pollfd *pfd = &pop->event_set[i]; in poll_check_ok() 130 struct pollfd *event_set; in poll_dispatch() 144 struct pollfd *tmp = mm_realloc(pop->event_set_copy, in poll_dispatch() 145 pop->event_count * sizeof(struct pollfd)); in poll_dispatch() 154 sizeof(struct pollfd)*nfds); in poll_dispatch() 220 struct pollfd *pfd = NULL; in poll_add() 230 struct pollfd *tmp_event_set; in poll_add() 240 tmp_event_count * sizeof(struct pollfd)); in poll_add() [all …]
|
| HD | devpoll.c | 57 struct pollfd *events; 60 struct pollfd *changes; 92 sizeof(struct pollfd) * devpollop->nchanges, 0) == -1) in devpoll_commit() 101 struct pollfd *pfd; in devpoll_queue() 146 devpollop->events = mm_calloc(nfiles, sizeof(struct pollfd)); in devpoll_init() 154 devpollop->changes = mm_calloc(nfiles, sizeof(struct pollfd)); in devpoll_init() 171 struct pollfd *events = devpollop->events; in devpoll_dispatch()
|
| /freebsd-11-stable/lib/libusb/ |
| HD | libusb10_io.c | 51 libusb10_add_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd, in libusb10_add_pollfd() argument 57 if (pollfd->entry.tqe_prev != NULL) in libusb10_add_pollfd() 63 pollfd->pdev = pdev; in libusb10_add_pollfd() 64 pollfd->pollfd.fd = fd; in libusb10_add_pollfd() 65 pollfd->pollfd.events = events; in libusb10_add_pollfd() 68 TAILQ_INSERT_TAIL(&ctx->pollfds, pollfd, entry); in libusb10_add_pollfd() 76 libusb10_remove_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd) in libusb10_remove_pollfd() argument 81 if (pollfd->entry.tqe_prev == NULL) in libusb10_remove_pollfd() 85 TAILQ_REMOVE(&ctx->pollfds, pollfd, entry); in libusb10_remove_pollfd() 86 pollfd->entry.tqe_prev = NULL; in libusb10_remove_pollfd() [all …]
|
| HD | libusb10.h | 66 struct libusb_pollfd pollfd; member 138 void libusb10_add_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd, struct libusb20_d… 139 void libusb10_remove_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd);
|
| /freebsd-11-stable/contrib/apr/poll/unix/ |
| HD | poll.c | 78 struct pollfd pollset[num]; in apr_poll() 80 struct pollfd *pollset = alloca(sizeof(struct pollfd) * num); in apr_poll() 84 struct pollfd tmp_pollset[SMALL_POLLSET_LIMIT]; in apr_poll() 85 struct pollfd *pollset; in apr_poll() 94 pollset = malloc(sizeof(struct pollfd) * num); in apr_poll() 152 struct pollfd *pollset; 171 pollset->p->pollset = apr_palloc(p, size * sizeof(struct pollfd)); in impl_pollset_create() 331 pollcb->pollset.ps = apr_palloc(p, size * sizeof(struct pollfd)); in impl_pollcb_create() 429 apr_pollfd_t *pollfd = pollcb->copyset[i]; in impl_pollcb_poll() local 432 pollfd->desc_type == APR_POLL_FILE && in impl_pollcb_poll() [all …]
|
| HD | port.c | 561 apr_pollfd_t *pollfd = (apr_pollfd_t *)(pollcb->pollset.port[i].portev_user); in impl_pollcb_poll() local 564 pollfd->desc_type == APR_POLL_FILE && in impl_pollcb_poll() 565 pollfd->desc.f == pollcb->wakeup_pipe[0]) { in impl_pollcb_poll() 570 pollfd->rtnevents = get_revent(pollcb->pollset.port[i].portev_events); in impl_pollcb_poll() 572 rv = func(baton, pollfd); in impl_pollcb_poll() 576 rv = apr_pollcb_add(pollcb, pollfd); in impl_pollcb_poll()
|
| HD | epoll.c | 458 apr_pollfd_t *pollfd = (apr_pollfd_t *)(pollcb->pollset.epoll[i].data.ptr); in impl_pollcb_poll() local 461 pollfd->desc_type == APR_POLL_FILE && in impl_pollcb_poll() 462 pollfd->desc.f == pollcb->wakeup_pipe[0]) { in impl_pollcb_poll() 467 pollfd->rtnevents = get_epoll_revent(pollcb->pollset.epoll[i].events); in impl_pollcb_poll() 469 rv = func(baton, pollfd); in impl_pollcb_poll()
|
| /freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/ |
| HD | t_poll.c | 49 struct pollfd pfd; in child1() 61 struct pollfd pfd; in child2() 74 struct pollfd pfd; in child3() 159 struct pollfd pfds[2]; in ATF_TC_BODY() 223 struct pollfd pfd; in ATF_TC_BODY() 230 ATF_REQUIRE_ERRNO(EFAULT, poll((struct pollfd *)-1, 1, -1) == -1); in ATF_TC_BODY() 248 struct pollfd pfds[2]; in ATF_TC_BODY() 318 struct pollfd pfd; in ATF_TC_BODY() 348 struct pollfd pfd; in ATF_TC_BODY()
|
| /freebsd-11-stable/contrib/bmake/ |
| HD | job.h | 92 #define pollfd emul_pollfd macro 104 emul_poll(struct pollfd *fd, int nfd, int timeout); 136 struct pollfd; 168 struct pollfd *inPollfd; /* pollfd associated with inPipe */
|
| /freebsd-11-stable/sys/sys/ |
| HD | poll.h | 45 struct pollfd { struct 112 int poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout); 114 int ppoll(struct pollfd _pfd[], nfds_t _nfds,
|
| /freebsd-11-stable/contrib/pf/libevent/ |
| HD | poll.c | 63 struct pollfd *event_set; 142 struct pollfd *pfd = &pop->event_set[i]; in poll_check_ok() 218 struct pollfd *pfd = NULL; in poll_add() 228 struct pollfd *tmp_event_set; in poll_add() 240 tmp_event_count * sizeof(struct pollfd)); in poll_add() 323 struct pollfd *pfd = NULL; in poll_del() 362 sizeof(struct pollfd)); in poll_del()
|
| /freebsd-11-stable/tests/sys/audit/ |
| HD | utils.c | 143 check_auditpipe(struct pollfd fd[], const char *auditregex, FILE *pipestream) in check_auditpipe() 190 check_audit_startup(struct pollfd fd[], const char *auditrgx, FILE *pipestream){ in check_audit_startup() 195 check_audit(struct pollfd fd[], const char *auditrgx, FILE *pipestream) { in check_audit() 203 *setup(struct pollfd fd[], const char *name) in setup()
|
| HD | utils.h | 37 void check_audit(struct pollfd [], const char *, FILE *); 38 FILE *setup(struct pollfd [], const char *);
|
| /freebsd-11-stable/contrib/wpa/src/utils/ |
| HD | eloop.c | 84 struct pollfd *pollfds; 85 struct pollfd **pollfds_map; 284 struct pollfd **nmap; in eloop_sock_table_add_sock() 286 sizeof(struct pollfd *)); in eloop_sock_table_add_sock() 295 struct pollfd *n; in eloop_sock_table_add_sock() 298 sizeof(struct pollfd)); in eloop_sock_table_add_sock() 432 static struct pollfd * find_pollfd(struct pollfd **pollfds_map, int fd, int mx) in find_pollfd() 443 struct pollfd *pollfds, in eloop_sock_table_set_fds() 444 struct pollfd **pollfds_map, in eloop_sock_table_set_fds() 450 struct pollfd *pfd; in eloop_sock_table_set_fds() [all …]
|
| /freebsd-11-stable/lib/libc/sys/ |
| HD | poll.c | 44 poll(struct pollfd pfd[], nfds_t nfds, int timeout) in poll() 47 return (((int (*)(struct pollfd *, nfds_t, int)) in poll()
|
| HD | ppoll.c | 44 ppoll(struct pollfd pfd[], nfds_t nfds, const struct timespec *__restrict in ppoll() 48 return (((int (*)(struct pollfd *, nfds_t, const struct timespec *, in ppoll()
|
| /freebsd-11-stable/crypto/openssh/openbsd-compat/ |
| HD | bsd-poll.h | 34 typedef struct pollfd { struct 59 int poll(struct pollfd *, nfds_t, int); argument
|
| /freebsd-11-stable/contrib/gdb/gdb/ |
| HD | event-loop.c | 142 struct pollfd *poll_fds; 437 struct pollfd fds; in add_file_handler() 510 (struct pollfd *) xrealloc (gdb_notifier.poll_fds, in create_file_handler() 512 * sizeof (struct pollfd))); in create_file_handler() 515 (struct pollfd *) xmalloc (sizeof (struct pollfd)); in create_file_handler() 560 struct pollfd *new_poll_fds; in delete_file_handler() 582 (struct pollfd *) xmalloc ((gdb_notifier.num_fds - 1) * sizeof (struct pollfd)); in delete_file_handler()
|
| /freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| HD | sanitizer_platform_limits_openbsd.cpp | 198 CHECK_TYPE_SIZE(pollfd); 199 CHECK_SIZE_AND_OFFSET(pollfd, fd); 200 CHECK_SIZE_AND_OFFSET(pollfd, events); 201 CHECK_SIZE_AND_OFFSET(pollfd, revents);
|
| HD | sanitizer_platform_limits_solaris.cpp | 260 CHECK_TYPE_SIZE(pollfd); 261 CHECK_SIZE_AND_OFFSET(pollfd, fd); 262 CHECK_SIZE_AND_OFFSET(pollfd, events); 263 CHECK_SIZE_AND_OFFSET(pollfd, revents);
|
| /freebsd-11-stable/tools/regression/security/cap_test/ |
| HD | cap_test_capabilities.c | 125 struct pollfd pollfd; in try_file_ops() local 394 pollfd.fd = fd_cap; in try_file_ops() 395 pollfd.events = POLLIN | POLLERR | POLLHUP; in try_file_ops() 396 pollfd.revents = 0; in try_file_ops() 398 ret = poll(&pollfd, 1, 0); in try_file_ops() 400 CHECK((pollfd.revents & POLLNVAL) == 0); in try_file_ops() 402 CHECK((pollfd.revents & POLLNVAL) != 0); in try_file_ops()
|
| /freebsd-11-stable/contrib/sendmail/libmilter/ |
| HD | worker.c | 355 struct pollfd *pfd = NULL; 368 pfd = (struct pollfd *) malloc(PFD_STEP * sizeof(struct pollfd)); 463 struct pollfd *tpfd; 468 tpfd = (struct pollfd *)
|
| /freebsd-11-stable/sys/compat/svr4/ |
| HD | svr4_filio.c | 65 struct pollfd *pfd; 76 siz = uap->nfds * sizeof(struct pollfd); 77 pfd = (struct pollfd *)malloc(siz, M_TEMP, M_WAITOK);
|