Home
last modified time | relevance | path

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

1234567

/freebsd-12.1/tools/tools/netmap/
H A Dbridge.c175 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()
307 pollfd[0].events |= POLLIN; in main()
320 pollfd[0].events, in main()
321 pollfd[0].revents, in main()
325 pollfd[1].events, in main()
[all …]
H A Dlb.c832 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-12.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-12.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-12.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-12.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()
330 pollcb->pollset.ps = apr_palloc(p, size * sizeof(struct pollfd)); in impl_pollcb_create()
428 apr_pollfd_t *pollfd = pollcb->copyset[i]; in impl_pollcb_poll() local
429 pollfd->rtnevents = get_revent(pollcb->pollset.ps[i].revents); in impl_pollcb_poll()
[all …]
/freebsd-12.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-12.1/contrib/bmake/
H A Djob.h92 #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-12.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-12.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-12.1/tests/sys/audit/
H A Dutils.c143 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()
H A Dutils.h37 void check_audit(struct pollfd [], const char *, FILE *);
38 FILE *setup(struct pollfd [], const char *);
/freebsd-12.1/contrib/wpa/src/utils/
H A Deloop.c84 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()
450 struct pollfd *pfd; in eloop_sock_table_set_fds()
523 struct pollfd *pfd; in eloop_sock_table_dispatch_table()
[all …]
/freebsd-12.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-12.1/crypto/openssh/openbsd-compat/
H A Dbsd-poll.h34 typedef struct pollfd { struct
59 int poll(struct pollfd *, nfds_t, int); argument
/freebsd-12.1/contrib/gdb/gdb/
H A Devent-loop.c142 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-12.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-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_openbsd.cc199 CHECK_TYPE_SIZE(pollfd);
200 CHECK_SIZE_AND_OFFSET(pollfd, fd);
201 CHECK_SIZE_AND_OFFSET(pollfd, events);
202 CHECK_SIZE_AND_OFFSET(pollfd, revents);
H A Dsanitizer_platform_limits_solaris.cc261 CHECK_TYPE_SIZE(pollfd);
262 CHECK_SIZE_AND_OFFSET(pollfd, fd);
263 CHECK_SIZE_AND_OFFSET(pollfd, events);
264 CHECK_SIZE_AND_OFFSET(pollfd, revents);
/freebsd-12.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-12.1/contrib/sendmail/libmilter/
H A Dworker.c355 struct pollfd *pfd = NULL;
368 pfd = (struct pollfd *) malloc(PFD_STEP * sizeof(struct pollfd));
465 struct pollfd *tpfd;
470 tpfd = (struct pollfd *)

1234567