mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-09 22:29:22 +01:00
32 lines
382 B
C
32 lines
382 B
C
|
#pragma once
|
||
|
|
||
|
#define POLLIN 0x01
|
||
|
#define POLLPRI 0x02
|
||
|
#define POLLOUT 0x04
|
||
|
#define POLLERR 0x08
|
||
|
#define POLLHUP 0x10
|
||
|
#define POLLNVAL 0x20
|
||
|
|
||
|
typedef unsigned long nfds_t;
|
||
|
|
||
|
struct pollfd
|
||
|
{
|
||
|
int fd;
|
||
|
int events;
|
||
|
int revents;
|
||
|
};
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
int
|
||
|
poll(struct pollfd *fds,
|
||
|
nfds_t nfds,
|
||
|
int timeout);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|