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

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.