Home
last modified time | relevance | path

Searched refs:pollfd (Results 1 – 25 of 174) sorted by relevance

1234567

/freebsd-13.1/tools/tools/netmap/
H A Dbridge.c200 struct pollfd pollfd[2]; in main() local
297 memset(pollfd, 0, sizeof(pollfd)); in main()
298 pollfd[0].fd = pa->fd; in main()
299 pollfd[1].fd = pb->fd; in main()
324 pollfd[0].events = pollfd[1].events = 0; in main()
325 pollfd[0].revents = pollfd[1].revents = 0; in main()
344 pollfd[0].events |= POLLIN; in main()
357 pollfd[0].events, in main()
358 pollfd[0].revents, in main()
362 pollfd[1].events, in main()
[all …]
H A Dlb.c876 struct pollfd pollfd[npipes + 1]; in main() local
877 memset(&pollfd, 0, sizeof(pollfd)); in main()
915 pollfd[polli].fd = ports[i].nmd->fd; in main()
916 pollfd[polli].events = POLLOUT; in main()
917 pollfd[polli].revents = 0; in main()
921 pollfd[polli].fd = rxport->nmd->fd; in main()
922 pollfd[polli].events = POLLIN; in main()
923 pollfd[polli].revents = 0; in main()
927 rv = poll(pollfd, polli, poll_timeout); in main()
/freebsd-13.1/contrib/ntp/sntp/libevent/
H A Dpoll.c65 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()
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()
281 struct pollfd *pfd = NULL; in poll_del()
[all …]
H A Ddevpoll.c57 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-13.1/contrib/libevent/
H A Dpoll.c65 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()
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()
281 struct pollfd *pfd = NULL; in poll_del()
[all …]
H A Ddevpoll.c57 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-13.1/lib/libusb/
H A Dlibusb10_io.c59 if (pollfd->entry.tqe_prev != NULL) in libusb10_add_pollfd()
65 pollfd->pdev = pdev; in libusb10_add_pollfd()
66 pollfd->pollfd.fd = fd; in libusb10_add_pollfd()
67 pollfd->pollfd.events = events; in libusb10_add_pollfd()
83 if (pollfd->entry.tqe_prev == NULL) in libusb10_remove_pollfd()
88 pollfd->entry.tqe_prev = NULL; in libusb10_remove_pollfd()
92 ctx->fd_removed_cb(pollfd->pollfd.fd, ctx->fd_cb_user_data); in libusb10_remove_pollfd()
103 struct pollfd *fds; in libusb10_handle_events_sub()
127 fds[i].fd = pfd->pollfd.fd; in libusb10_handle_events_sub()
128 fds[i].events = pfd->pollfd.events; in libusb10_handle_events_sub()
[all …]
H A Dlibusb10.h68 struct libusb_pollfd pollfd; member
140 void libusb10_add_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd, struct libusb20_d…
141 void libusb10_remove_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd);
/freebsd-13.1/contrib/apr/poll/unix/
H A Dpoll.c78 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()
429 apr_pollfd_t *pollfd = pollcb->copyset[i]; in impl_pollcb_poll() local
432 pollfd->desc_type == APR_POLL_FILE && in impl_pollcb_poll()
433 pollfd->desc.f == pollcb->wakeup_pipe[0]) { in impl_pollcb_poll()
[all …]
H A Dport.c561 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()
H A Depoll.c458 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-13.1/contrib/bmake/
H A Djob.h92 #define pollfd emul_pollfd macro
103 int emul_poll(struct pollfd *, int, int);
112 struct pollfd;
172 struct pollfd *inPollfd; /* pollfd associated with inPipe */
/freebsd-13.1/contrib/netbsd-tests/lib/libc/sys/
H A Dt_poll.c49 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-13.1/sys/sys/
H A Dpoll.h47 struct pollfd { struct
114 int poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout);
116 int ppoll(struct pollfd _pfd[], nfds_t _nfds,
/freebsd-13.1/contrib/pf/libevent/
H A Dpoll.c63 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-13.1/lib/libc/sys/
H A Dpoll.c44 poll(struct pollfd pfd[], nfds_t nfds, int timeout) in poll()
47 return (((int (*)(struct pollfd *, nfds_t, int)) in poll()
H A Dppoll.c44 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-13.1/tests/sys/audit/
H A Dutils.c147 check_auditpipe(struct pollfd fd[], const char *auditregex, FILE *pipestream) in check_auditpipe()
199 check_audit_startup(struct pollfd fd[], const char *auditrgx, FILE *pipestream){ in check_audit_startup()
204 check_audit(struct pollfd fd[], const char *auditrgx, FILE *pipestream) { in check_audit()
259 setup(struct pollfd fd[], const char *name) in setup()
H A Dutils.h37 void check_audit(struct pollfd [], const char *, FILE *);
38 FILE *setup(struct pollfd [], const char *);
/freebsd-13.1/crypto/openssh/openbsd-compat/
H A Dbsd-poll.h34 typedef struct pollfd { struct
59 int poll(struct pollfd *, nfds_t, int); argument
/freebsd-13.1/contrib/wpa/src/utils/
H A Deloop.c84 struct pollfd *pollfds;
85 struct pollfd **pollfds_map;
286 struct pollfd **nmap; in eloop_sock_table_add_sock()
288 sizeof(struct pollfd *)); in eloop_sock_table_add_sock()
297 struct pollfd *n; in eloop_sock_table_add_sock()
301 sizeof(struct pollfd)); in eloop_sock_table_add_sock()
435 static struct pollfd * find_pollfd(struct pollfd **pollfds_map, int fd, int mx) in find_pollfd()
446 struct pollfd *pollfds, in eloop_sock_table_set_fds()
453 struct pollfd *pfd; in eloop_sock_table_set_fds()
526 struct pollfd *pfd; in eloop_sock_table_dispatch_table()
[all …]
/freebsd-13.1/tests/sys/file/
H A Dpath_test.c419 struct pollfd pollfd; in ATF_TC_BODY() local
428 pollfd.fd = pathfd; in ATF_TC_BODY()
429 pollfd.events = POLLIN; in ATF_TC_BODY()
430 pollfd.revents = 0; in ATF_TC_BODY()
431 ATF_REQUIRE_MSG(poll(&pollfd, 1, 0) == 1, FMT_ERR("poll")); in ATF_TC_BODY()
432 ATF_REQUIRE_MSG(pollfd.revents == POLLNVAL, "unexpected revents %x", in ATF_TC_BODY()
433 pollfd.revents); in ATF_TC_BODY()
434 pollfd.events = POLLOUT; in ATF_TC_BODY()
435 pollfd.revents = 0; in ATF_TC_BODY()
436 ATF_REQUIRE_MSG(poll(&pollfd, 1, 0) == 1, FMT_ERR("poll")); in ATF_TC_BODY()
[all …]
/freebsd-13.1/contrib/ldns/m4/
H A Dax_have_poll.m445 [int rc; rc = poll((struct pollfd *)(0), 0, 0);])],
64 rc = poll((struct pollfd *)(0), 0, 0);
65 rc = ppoll((struct pollfd *)(0), 0, (struct timespec const *)(0), (sigset_t const *)(0));])],
/freebsd-13.1/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c125 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-13.1/contrib/sendmail/libmilter/
H A Dworker.c355 struct pollfd *pfd = NULL;
368 pfd = (struct pollfd *) malloc(PFD_STEP * sizeof(struct pollfd));
463 struct pollfd *tpfd;
468 tpfd = (struct pollfd *)

1234567