aboutsummaryrefslogtreecommitdiff
path: root/system/include/poll.h
blob: 63c02b901fb5555545da55d71f0936b6f8cb54b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifdef __cplusplus
extern "C" {
#endif

#define POLLIN   1
#define POLLOUT  2
#define POLLNVAL 4
#define POLLERR  8
#define POLLHUP 16

struct pollfd {
  int fd;
  short events;
  short revents;
};

int poll(struct pollfd *data, int num, int extra);

#ifdef __cplusplus
}
#endif