/freebsd/tools/tools/netmap/ |
H A D | bridge.c | 198 struct pollfd pollfd[2]; in main() local 293 memset(pollfd, 0, sizeof(pollfd)); in main() 294 pollfd[0].fd = pa->fd; in main() 295 pollfd[1].fd = pb->fd; in main() 320 pollfd[0].events = pollfd[1].events = 0; in main() 321 pollfd[0].revents = pollfd[1].revents = 0; in main() 326 pollfd[1].revents = POLLOUT; in main() 328 ioctl(pollfd[0].fd, NIOCRXSYNC, NULL); in main() 331 pollfd[0].revents = POLLOUT; in main() 333 ioctl(pollfd[1].fd, NIOCRXSYNC, NULL); in main() [all …]
|
H A D | lb.c | 875 struct pollfd pollfd[npipes + 1]; in main() local 876 memset(&pollfd, 0, sizeof(pollfd)); in main() 913 pollfd[polli].fd = ports[i].nmd->fd; in main() 914 pollfd[polli].events = POLLOUT; in main() 915 pollfd[polli].revents = 0; in main() 919 pollfd[polli].fd = rxport->nmd->fd; in main() 920 pollfd[polli].events = POLLIN; in main() 921 pollfd[polli].revents = 0; in main() 925 rv = poll(pollfd, polli, poll_timeout); in main()
|
/freebsd/lib/libc/tests/secure/ |
H A D | fortify_poll_test.c | 175 struct pollfd __buf[4]; in ATF_TC_BODY() 182 for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) { in ATF_TC_BODY() 200 struct pollfd __buf[4]; in ATF_TC_BODY() 207 for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) { in ATF_TC_BODY() 225 struct pollfd __buf[4]; in ATF_TC_BODY() 241 for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) { in ATF_TC_BODY() 281 struct pollfd * __buf; in ATF_TC_BODY() 289 for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) { in ATF_TC_BODY() 307 struct pollfd * __buf; in ATF_TC_BODY() 315 for (size_t i = 0; i < howmany(__bufsz, sizeof(struct pollfd)); i++) { in ATF_TC_BODY() [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | poll.c | 76 struct pollfd *event_set; 77 struct pollfd *event_set_copy; 127 struct pollfd *pfd = &pop->event_set[i]; in poll_check_ok() 141 struct pollfd *event_set; in poll_dispatch() 155 struct pollfd *tmp = mm_realloc(pop->event_set_copy, in poll_dispatch() 156 pop->event_count * sizeof(struct pollfd)); in poll_dispatch() 165 sizeof(struct pollfd)*nfds); in poll_dispatch() 233 struct pollfd *pfd = NULL; in poll_add() 243 struct pollfd *tmp_event_set; in poll_add() 253 tmp_event_count * sizeof(struct pollfd)); in poll_add() [all …]
|
H A D | 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/contrib/libevent/ |
H A D | poll.c | 76 struct pollfd *event_set; 77 struct pollfd *event_set_copy; 127 struct pollfd *pfd = &pop->event_set[i]; in poll_check_ok() 141 struct pollfd *event_set; in poll_dispatch() 155 struct pollfd *tmp = mm_realloc(pop->event_set_copy, in poll_dispatch() 156 pop->event_count * sizeof(struct pollfd)); in poll_dispatch() 165 sizeof(struct pollfd)*nfds); in poll_dispatch() 233 struct pollfd *pfd = NULL; in poll_add() 243 struct pollfd *tmp_event_set; in poll_add() 253 tmp_event_count * sizeof(struct pollfd)); in poll_add() [all …]
|
H A D | 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/lib/libusb/ |
H A D | libusb10_io.c | 52 libusb10_add_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd, in libusb10_add_pollfd() argument 58 if (pollfd->entry.tqe_prev != NULL) in libusb10_add_pollfd() 64 pollfd->pdev = pdev; in libusb10_add_pollfd() 65 pollfd->pollfd.fd = fd; in libusb10_add_pollfd() 66 pollfd->pollfd.events = events; in libusb10_add_pollfd() 69 TAILQ_INSERT_TAIL(&ctx->pollfds, pollfd, entry); in libusb10_add_pollfd() 77 libusb10_remove_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd) in libusb10_remove_pollfd() argument 82 if (pollfd->entry.tqe_prev == NULL) in libusb10_remove_pollfd() 86 TAILQ_REMOVE(&ctx->pollfds, pollfd, entry); in libusb10_remove_pollfd() 87 pollfd->entry.tqe_prev = NULL; in libusb10_remove_pollfd() [all …]
|
H A D | libusb10.h | 73 struct libusb_pollfd pollfd; 155 void libusb10_add_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd, struct libusb20_device *pdev, int fd, short events); 156 void libusb10_remove_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd); 67 struct libusb_pollfd pollfd; global() member
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | 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/contrib/bmake/ |
H A D | job.h | 90 #define pollfd emul_pollfd macro 101 int emul_poll(struct pollfd *, int, int); 110 struct pollfd; 170 struct pollfd *inPollfd; /* pollfd associated with inPipe */
|
/freebsd/usr.sbin/bhyve/ |
H A D | net_backend_slirp.c | 153 struct pollfd *pollfds; 293 struct pollfd *pollfd, *pollfds; in slirp_addpoll_cb() local 315 pollfd = &priv->pollfds[i]; in slirp_addpoll_cb() 316 pollfd->fd = fd; in slirp_addpoll_cb() 317 pollfd->events = slirpev2pollev(events); in slirp_addpoll_cb() 318 pollfd->revents = 0; in slirp_addpoll_cb() 327 struct pollfd *pollfd; in slirp_poll_revents() local 333 pollfd = &priv->pollfds[idx]; in slirp_poll_revents() 334 assert(pollfd->fd != -1); in slirp_poll_revents() 337 revents = pollfd->revents; in slirp_poll_revents() [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-poll.h | 41 typedef struct pollfd { struct 83 int poll(struct pollfd *, nfds_t, int); 87 int ppoll(struct pollfd *, nfds_t, const struct timespec *, const sigset_t *);
|
H A D | bsd-poll.c | 46 ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *tmoutp, in ppoll() 100 poll(struct pollfd *fds, nfds_t nfds, int timeout) in poll()
|
/freebsd/sys/sys/ |
H A D | poll.h | 45 struct pollfd { struct 117 int poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout); 119 int ppoll(struct pollfd _pfd[], nfds_t _nfds,
|
/freebsd/contrib/pf/libevent/ |
H A D | 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/tests/sys/audit/ |
H A D | utils.c | 145 check_auditpipe(struct pollfd fd[], const char *auditregex, FILE *pipestream) in check_auditpipe() 197 check_audit_startup(struct pollfd fd[], const char *auditrgx, FILE *pipestream){ in check_audit_startup() 202 check_audit(struct pollfd fd[], const char *auditrgx, FILE *pipestream) { in check_audit() 257 setup(struct pollfd fd[], const char *name) in setup()
|
H A D | utils.h | 35 void check_audit(struct pollfd [], const char *, FILE *); 36 FILE *setup(struct pollfd [], const char *);
|
/freebsd/contrib/wpa/src/utils/ |
H A D | eloop.c | 84 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() 447 struct pollfd **pollfds_map, in eloop_sock_table_set_fds() 453 struct pollfd *pfd; in eloop_sock_table_set_fds() [all …]
|
/freebsd/include/ssp/ |
H A D | poll.h | 37 (struct pollfd fds[], nfds_t nfds, int timeout)) 47 (struct pollfd fds[], nfds_t nfds,
|
/freebsd/contrib/ldns/m4/ |
H A D | ax_have_poll.m4 | 45 [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/tests/sys/file/ |
H A D | path_test.c | 493 struct pollfd pollfd; in ATF_TC_BODY() local 502 pollfd.fd = pathfd; in ATF_TC_BODY() 503 pollfd.events = POLLIN; in ATF_TC_BODY() 504 pollfd.revents = 0; in ATF_TC_BODY() 505 ATF_REQUIRE_MSG(poll(&pollfd, 1, 0) == 1, FMT_ERR("poll")); in ATF_TC_BODY() 506 ATF_REQUIRE_MSG(pollfd.revents == POLLNVAL, "unexpected revents %x", in ATF_TC_BODY() 507 pollfd.revents); in ATF_TC_BODY() 508 pollfd.events = POLLOUT; in ATF_TC_BODY() 509 pollfd.revents = 0; in ATF_TC_BODY() 510 ATF_REQUIRE_MSG(poll(&pollfd, 1, 0) == 1, FMT_ERR("poll")); in ATF_TC_BODY() [all …]
|
/freebsd/tools/regression/security/cap_test/ |
H A D | cap_test_capabilities.c | 122 struct pollfd pollfd; in try_file_ops() local 391 pollfd.fd = fd_cap; in try_file_ops() 392 pollfd.events = POLLIN | POLLERR | POLLHUP; in try_file_ops() 393 pollfd.revents = 0; in try_file_ops() 395 ret = poll(&pollfd, 1, 0); in try_file_ops() 397 CHECK((pollfd.revents & POLLNVAL) == 0); in try_file_ops() 399 CHECK((pollfd.revents & POLLNVAL) != 0); in try_file_ops()
|
/freebsd/contrib/sendmail/libmilter/ |
H A D | 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/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_platform_limits_solaris.cpp | 263 CHECK_TYPE_SIZE(pollfd); 264 CHECK_SIZE_AND_OFFSET(pollfd, fd); 265 CHECK_SIZE_AND_OFFSET(pollfd, events); 266 CHECK_SIZE_AND_OFFSET(pollfd, revents);
|