aboutsummaryrefslogtreecommitdiff
path: root/system/include/sys/poll.h
blob: 7521ed0e7d8db5d26099e2d083b1471bbd22157c (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
31
#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
#define POLLPRI 32

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