#include <sys/poll.h>
sys/poll.h
This file is intended to be compatible with the traditional poll.h.
macroPOLLIN
Requestable events. If poll(2) finds any of these set, they are
copied to revents on return.
#define POLLIN 0x0001
any readable data available
macroPOLLEXTEND
FreeBSD extensions: polling on a regular file might return one
of these events (currently only supported on local filesystems).
#define POLLEXTEND 0x0200
file may have been extended
macroPOLLERR
These events are set if they occur regardless of whether they were
requested.
#define POLLERR 0x0008
some poll error occurred
macroPOLLSTANDARD
#define POLLSTANDARD (POLLIN|POLLPRI|POLLOUT|POLLRDNORM|POLLRDBAND| POLLWRBAND|POLLERR|POLLHUP|POLLNVAL)
structpollfd
| int | fd | |
| short | events | |
| short | revents |
typedefnfds_t
typedef unsigned int nfds_t