24 #include <sys/cdefs.h>
25 #include <sys/types.h>
48 #define POLLRDNORM (1 << 0)
49 #define POLLRDBAND (1 << 1)
50 #define POLLPRI (1 << 2)
51 #define POLLOUT (1 << 3)
52 #define POLLWRNORM POLLOUT
53 #define POLLWRBAND (1 << 4)
54 #define POLLERR (1 << 5)
55 #define POLLHUP (1 << 6)
56 #define POLLNVAL (1 << 7)
59 #define POLLIN (POLLRDNORM | POLLRDBAND)
__uint32_t nfds_t
Type representing a number of file descriptors.
Definition: poll.h:30
short events
Events to poll for on input.
Definition: poll.h:37
Structure representing a single file descriptor used by poll().
Definition: poll.h:35
int poll(struct pollfd fds[], nfds_t nfds, int timeout)
Poll a group of file descriptors for activity.
int fd
The file descriptor in question.
Definition: poll.h:36
short revents
Events signalled for output.
Definition: poll.h:38