60#define POLLRDNORM (1 << 0)
61#define POLLRDBAND (1 << 1)
62#define POLLPRI (1 << 2)
63#define POLLOUT (1 << 3)
64#define POLLWRNORM POLLOUT
65#define POLLWRBAND (1 << 4)
66#define POLLERR (1 << 5)
67#define POLLHUP (1 << 6)
68#define POLLNVAL (1 << 7)
71#define POLLIN (POLLRDNORM | POLLRDBAND)
__uint32_t nfds_t
Type representing a number of file descriptors.
Definition poll.h:39
int poll(struct pollfd fds[], nfds_t nfds, int timeout)
Poll a group of file descriptors for activity.
Structure representing a single file descriptor used by poll().
Definition poll.h:45
int fd
The file descriptor in question.
Definition poll.h:46
short revents
Events signalled for output.
Definition poll.h:48
short events
Events to poll for on input.
Definition poll.h:47