pollfd
extern int poll(struct pollfd *fds, nfds_t numfds, int timeout);
extern int ppoll(struct pollfd *fds, nfds_t numfds,
ssize_t _user_poll(struct pollfd *fds, int numfds, bigtime_t timeout,
struct pollfd;
extern ssize_t _kern_poll(struct pollfd *fds, int numFDs,
struct pollfd;
pollfd fds[nfds];
struct pollfd;
DEFINE_FACTORY(pollfd_ptr, pollfd *);
pollfd tmp[numfds];
TypeHandlerImpl<pollfd *>::GetParameterValue(Context &context, Parameter *,
TypeHandlerImpl<pollfd *>::GetReturnValue(Context &context, uint64 value)
DEFINE_TYPE(pollfd_ptr, pollfd *)
struct pollfd pfd[1];
struct pollfd entry;
_user_poll(struct pollfd *userfds, int numFDs, bigtime_t timeout,
BStackOrHeapArray<struct pollfd, 16> fds(numFDs);
const size_t bytes = numFDs * sizeof(struct pollfd);
PollTraceEntry(pollfd* fds, int count, bool resultEvents)
PollBegin(pollfd* fds, int count, bigtime_t timeout)
PollDone(pollfd* fds, int count, int result)
common_poll(struct pollfd *fds, nfds_t numFDs, bigtime_t timeout,
_kern_poll(struct pollfd *fds, int numFDs, bigtime_t timeout,
struct pollfd *pollfds; /* Allocated as needed */
struct pollfd pollfd;
pollfd.fd = s;
pollfd.events = POLLRDNORM;
n = poll(&pollfd, 1, polltimeout);
extern "C" int __ppoll(struct pollfd *fds, nfds_t numfds, const struct timespec *tv,
poll(struct pollfd *fds, nfds_t numfds, int timeout)
__ppoll(struct pollfd *fds, nfds_t numfds, const struct timespec *tv,
struct pollfd pfd;
struct pollfd pfd;