Searched defs:pollfd (Results 1 - 22 of 22) sorted by relevance

/freebsd-head/crypto/openssh/openbsd-compat/
H A Dbsd-poll.h34 typedef struct pollfd { struct
59 int poll(struct pollfd *, nfds_t, int);
/freebsd-head/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-head/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c125 struct pollfd pollfd; local
394 pollfd.fd = fd_cap;
395 pollfd.events = POLLIN | POLLERR | POLLHUP;
396 pollfd.revents = 0;
398 ret = poll(&pollfd, 1, 0);
400 CHECK((pollfd.revents & POLLNVAL) == 0);
402 CHECK((pollfd.revents & POLLNVAL) != 0);
/freebsd-head/contrib/apr/poll/unix/
H A Dpoll.c78 struct pollfd pollset[num];
80 struct pollfd *pollset = alloca(sizeof(struct pollfd) * num);
84 struct pollfd tmp_pollset[SMALL_POLLSET_LIMIT];
85 struct pollfd *pollset;
94 pollset = malloc(sizeof(struct pollfd) * num);
152 struct pollfd *pollset;
171 pollset->p->pollset = apr_palloc(p, size * sizeof(struct pollfd));
330 pollcb->pollset.ps = apr_palloc(p, size * sizeof(struct pollfd));
428 apr_pollfd_t *pollfd local
[all...]
H A Depoll.c458 apr_pollfd_t *pollfd = (apr_pollfd_t *)(pollcb->pollset.epoll[i].data.ptr); local
459 pollfd->rtnevents = get_epoll_revent(pollcb->pollset.epoll[i].events);
461 rv = func(baton, pollfd);
H A Dkqueue.c471 apr_pollfd_t *pollfd = (apr_pollfd_t *)(pollcb->pollset.ke[i].udata); local
473 pollfd->rtnevents = get_kqueue_revent(pollcb->pollset.ke[i].filter,
476 rv = func(baton, pollfd);
H A Dport.c561 apr_pollfd_t *pollfd; local
570 pollfd = (apr_pollfd_t *)(pollcb->pollset.port[i].portev_user);
571 pollfd->rtnevents = get_revent(pollcb->pollset.port[i].portev_events);
573 rv = func(baton, pollfd);
577 rv = apr_pollcb_add(pollcb, pollfd);
/freebsd-head/contrib/bmake/
H A Djob.h92 #define pollfd emul_pollfd macro
104 emul_poll(struct pollfd *fd, int nfd, int timeout);
137 struct pollfd;
169 struct pollfd *inPollfd; /* pollfd associated with inPipe */
/freebsd-head/tools/tools/netmap/
H A Dbridge.c175 struct pollfd pollfd[2]; local
271 memset(pollfd, 0, sizeof(pollfd));
272 pollfd[0].fd = pa->fd;
273 pollfd[1].fd = pb->fd;
285 pollfd[0].events = pollfd[1].events = 0;
286 pollfd[0].revents = pollfd[
[all...]
H A Dlb.c832 struct pollfd pollfd[npipes + 1]; local
833 memset(&pollfd, 0, sizeof(pollfd));
861 pollfd[polli].fd = ports[i].nmd->fd;
862 pollfd[polli].events = POLLOUT;
863 pollfd[polli].revents = 0;
867 pollfd[polli].fd = rxport->nmd->fd;
868 pollfd[polli].events = POLLIN;
869 pollfd[poll
[all...]
/freebsd-head/lib/libusb/
H A Dlibusb10.h68 struct libusb_pollfd pollfd; member in struct:libusb_super_pollfd
140 void libusb10_add_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd, struct libusb20_device *pdev, int fd, short events);
141 void libusb10_remove_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd);
H A Dlibusb10_io.c53 libusb10_add_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd, argument
59 if (pollfd->entry.tqe_prev != NULL)
65 pollfd->pdev = pdev;
66 pollfd->pollfd.fd = fd;
67 pollfd->pollfd.events = events;
70 TAILQ_INSERT_TAIL(&ctx->pollfds, pollfd, entry);
78 libusb10_remove_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd) argument
83 if (pollfd
433 struct libusb_super_pollfd *pollfd; local
[all...]
/freebsd-head/lib/libc/rpc/
H A Dsvc_vc.c458 struct pollfd pollfd; local
482 pollfd.fd = sock;
483 pollfd.events = POLLIN;
484 pollfd.revents = 0;
485 switch (_poll(&pollfd, 1, milliseconds)) {
496 } while ((pollfd.revents & POLLIN) == 0);
/freebsd-head/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_openbsd.cc198 CHECK_TYPE_SIZE(pollfd); variable
199 CHECK_SIZE_AND_OFFSET(pollfd, fd);
200 CHECK_SIZE_AND_OFFSET(pollfd, events);
201 CHECK_SIZE_AND_OFFSET(pollfd, revents);
H A Dsanitizer_platform_limits_solaris.cc260 CHECK_TYPE_SIZE(pollfd); variable
261 CHECK_SIZE_AND_OFFSET(pollfd, fd);
262 CHECK_SIZE_AND_OFFSET(pollfd, events);
263 CHECK_SIZE_AND_OFFSET(pollfd, revents);
H A Dsanitizer_platform_limits_freebsd.cc424 CHECK_TYPE_SIZE(pollfd); variable
425 CHECK_SIZE_AND_OFFSET(pollfd, fd);
426 CHECK_SIZE_AND_OFFSET(pollfd, events);
427 CHECK_SIZE_AND_OFFSET(pollfd, revents);
H A Dsanitizer_platform_limits_posix.cc1040 CHECK_TYPE_SIZE(pollfd); variable
1041 CHECK_SIZE_AND_OFFSET(pollfd, fd);
1042 CHECK_SIZE_AND_OFFSET(pollfd, events);
1043 CHECK_SIZE_AND_OFFSET(pollfd, revents);
H A Dsanitizer_platform_limits_netbsd.cc2276 CHECK_TYPE_SIZE(pollfd); variable
2277 CHECK_SIZE_AND_OFFSET(pollfd, fd);
2278 CHECK_SIZE_AND_OFFSET(pollfd, events);
2279 CHECK_SIZE_AND_OFFSET(pollfd, revents);
/freebsd-head/contrib/tnftp/
H A Dtnftp.h138 struct pollfd { struct
/freebsd-head/lib/libc/resolv/
H A Dres_send.c845 struct pollfd pollfd; local
964 pollfd.fd = s;
965 pollfd.events = POLLRDNORM;
966 n = _poll(&pollfd, 1, polltimeout);
/freebsd-head/contrib/capsicum-test/
H A Dcapability-fd.cc583 struct pollfd pollfd; local
584 pollfd.fd = cap_fd;
585 pollfd.events = POLLIN | POLLERR | POLLHUP;
586 pollfd.revents = 0;
587 int ret = poll(&pollfd, 1, 0);
591 EXPECT_NE(0, (pollfd.revents & POLLNVAL));
/freebsd-head/contrib/ofed/opensm/opensm/
H A Dosm_console.c1833 struct pollfd pollfd[2]; local
1837 struct pollfd *fds;
1841 pollfd[0].fd = p_oct->socket;
1842 pollfd[0].events = POLLIN;
1843 pollfd[0].revents = 0;
1845 pollfd[1].fd = p_oct->in_fd;
1846 pollfd[1].events = POLLIN;
1847 pollfd[1].revents = 0;
1849 fds = p_oct->socket < 0 ? &pollfd[
[all...]

Completed in 386 milliseconds