aboutsummaryrefslogtreecommitdiff
path: root/system/include/sys/poll.h
blob: 55e852376a409dff82c0180f3b23a4a072f07772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _SYS_POLL_H
#define _SYS_POLL_H

#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;
};

typedef unsigned int nfds_t;

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

#ifdef __cplusplus
}
#endif

#endif