KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
Events for the poll() function

Masks representing event types for poll() More...

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

Masks representing event types for poll()

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

Macro Definition Documentation

◆ POLLERR

#define POLLERR   (1 << 5)

Error has occurred (revents only)

◆ POLLHUP

#define POLLHUP   (1 << 6)

Peer disconnected (revents only)

◆ POLLIN

#define POLLIN   (POLLRDNORM | POLLRDBAND)

Data other than high-priority data may be read.

◆ POLLNVAL

#define POLLNVAL   (1 << 7)

Invalid fd (revents only)

◆ POLLOUT

#define POLLOUT   (1 << 3)

Normal data may be written.

◆ POLLPRI

#define POLLPRI   (1 << 2)

High-priority data may be read.

◆ POLLRDBAND

#define POLLRDBAND   (1 << 1)

Priority data may be read.

◆ POLLRDNORM

#define POLLRDNORM   (1 << 0)

Normal data may be read.

◆ POLLWRBAND

#define POLLWRBAND   (1 << 4)

Priority data may be written.

◆ POLLWRNORM

#define POLLWRNORM   POLLOUT

Normal data may be written.