summaryrefslogtreecommitdiff
path: root/pfinet.old/glue-include/linux/poll.h
diff options
context:
space:
mode:
authorroot <root@(null).(none)>2009-05-03 17:20:00 +0200
committerroot <root@(null).(none)>2009-05-03 17:20:00 +0200
commite0faf22f31c48fb27b43c1825897d26e58feafc4 (patch)
tree65a09372b31e08a3a865bd0a88cd2718bafcd643 /pfinet.old/glue-include/linux/poll.h
This is my initial working version.
There is a bug in boot in this version: subhurd sometimes cannot boot.
Diffstat (limited to 'pfinet.old/glue-include/linux/poll.h')
-rw-r--r--pfinet.old/glue-include/linux/poll.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/pfinet.old/glue-include/linux/poll.h b/pfinet.old/glue-include/linux/poll.h
new file mode 100644
index 00000000..b21c3c71
--- /dev/null
+++ b/pfinet.old/glue-include/linux/poll.h
@@ -0,0 +1,24 @@
+#ifndef _HACK_POLL_H_
+#define _HACK_POLL_H_
+
+#include <hurd/hurd_types.h>
+
+#define POLLIN SELECT_READ
+#define POLLRDNORM SELECT_READ
+#define POLLOUT SELECT_WRITE
+#define POLLWRNORM SELECT_WRITE
+#define POLLWRBAND SELECT_WRITE
+#define POLLPRI SELECT_URG
+#define POLLERR SELECT_READ | SELECT_WRITE
+#define POLLHUP SELECT_READ
+
+typedef struct poll_table_struct { } poll_table;
+
+#include <linux/sched.h>
+
+static inline void
+poll_wait(struct file * filp, struct wait_queue ** wait_address, poll_table *p)
+{
+}
+
+#endif