KallistiOS  2.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Macros
Events for the poll() function

Macros

#define POLLRDNORM   (1 << 0)
 Normal data may be read.
#define POLLRDBAND   (1 << 1)
 Priority data may be read.
#define POLLPRI   (1 << 2)
 High-priority data may be read.
#define POLLOUT   (1 << 3)
 Normal data may be written.
#define POLLWRNORM   POLLOUT
 Normal data may be written.
#define POLLWRBAND   (1 << 4)
 Priority data may be written.
#define POLLERR   (1 << 5)
 Error has occurred (revents only)
#define POLLHUP   (1 << 6)
 Peer disconnected (revents only)
#define POLLNVAL   (1 << 7)
 Invalid fd (revents only)
#define POLLIN   (POLLRDNORM | POLLRDBAND)
 Data other than high-priority data may be read.

Detailed Description

These are the events that can be set in the events or revents fields of the struct pollfd.


Macro Definition Documentation

#define POLLERR   (1 << 5)

Error has occurred (revents only)

#define POLLHUP   (1 << 6)

Peer disconnected (revents only)

#define POLLIN   (POLLRDNORM | POLLRDBAND)

Data other than high-priority data may be read.

#define POLLNVAL   (1 << 7)

Invalid fd (revents only)

#define POLLOUT   (1 << 3)

Normal data may be written.

#define POLLPRI   (1 << 2)

High-priority data may be read.

#define POLLRDBAND   (1 << 1)

Priority data may be read.

#define POLLRDNORM   (1 << 0)

Normal data may be read.

#define POLLWRBAND   (1 << 4)

Priority data may be written.

#define POLLWRNORM   POLLOUT

Normal data may be written.