aboutsummaryrefslogtreecommitdiff
path: root/system/include/sys/poll.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-06 15:37:11 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-10-06 15:37:11 -0700
commitce6b7ea953dd0a974a0123e6674803a3b0b1f5a2 (patch)
treec902f3cee4e949565f4388bb5fd1462a932eff41 /system/include/sys/poll.h
parent5e4a111053b401069fb4581bba191d60f9f6e527 (diff)
socket header stuff
Diffstat (limited to 'system/include/sys/poll.h')
-rw-r--r--system/include/sys/poll.h28
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
+