11 pollfd_t pollfd = {.
fd = fd, .events = events};
12 if (
poll(&pollfd, 1, timeout) ==
ERR)
poll_events_t poll1(fd_t fd, poll_events_t events, clock_t timeout)
Wrapper for polling one file.
uint64_t poll(pollfd_t *fds, uint64_t amount, clock_t timeout)
System call for polling files.
poll_events_t
Poll events type.
@ POLLERR
File descriptor caused an error.
#define ERR
Integer error value.
__UINT64_TYPE__ fd_t
A file descriptor.
__UINT64_TYPE__ clock_t
A nanosecond time.
Poll file descriptor structure.
poll_events_t revents
The events that occurred.
fd_t fd
The file descriptor to poll.