aboutsummaryrefslogtreecommitdiff
path: root/system/include
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-02 21:48:08 +0200
committerAlon Zakai <alonzakai@gmail.com>2011-10-02 21:48:08 +0200
commitc2a8a5b364e6b888c6563af371603eb5ce86c1b5 (patch)
tree2f1a53c921d5b20f7f79c3962b550f33a6fe6565 /system/include
parent9b00cf0da46154b27e439ced5d4a6abd388979ec (diff)
fix test_poll
Diffstat (limited to 'system/include')
-rw-r--r--system/include/poll.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/system/include/poll.h b/system/include/poll.h
new file mode 100644
index 00000000..230f93c6
--- /dev/null
+++ b/system/include/poll.h
@@ -0,0 +1,22 @@
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define POLLIN 1
+#define POLLOUT 2
+#define POLLNVAL 4
+#define POLLERR 8
+
+struct pollfd {
+ int fd;
+ short events;
+ short revents;
+};
+
+int poll(pollfd *data, int num, int extra);
+
+#ifdef __cplusplus
+}
+#endif
+