POLL.H(7) Miscellaneous Information Manual POLL.H(7)

poll.hdefinitions for the poll() function

#include <poll.h>

The <poll.h> header defines the pollfd structure that includes at least the following member:

int         fd        the following descriptor being polled
short int   events    the input event flags (see below)
short int   revents   the output event flags (see below)

The <poll.h> header defines the following type through typedef:

An unsigned integral type used for the number of file descriptors.

The following symbolic constants are defined, zero or more of which may be OR-ed together to form the or members in the structure:

Same effect as POLLRDNORM | POLLRDBAND.
Data on priority band 0 may be read.
Data on priority bands greater than 0 may be read.
High priority data may be read.
Same value as POLLWRNORM.
Data on priority band 0 may be written.
Data on priority bands greater than 0 may be written. This event only examines bands that have been written to at least once.
An error has occurred ( revents only).
Device has been disconnected ( revents only).
Invalid fd member ( revents only).

The < > header declares the following function which may also be defined as a macro. Function prototypes must be provided for use with an ISO C compiler. int poll(struct pollfd[], nfds_t, int);

None.

None.

poll(3) .

February 1997 posix.fail