diff options
Diffstat (limited to 'system/include/sys/poll.h')
-rw-r--r-- | system/include/sys/poll.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/system/include/sys/poll.h b/system/include/sys/poll.h new file mode 100644 index 00000000..e72ac26f --- /dev/null +++ b/system/include/sys/poll.h @@ -0,0 +1,28 @@ + +#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; +}; + +int poll(struct pollfd *data, int num, int extra); + +#ifdef __cplusplus +} +#endif + +#endif + |