added watt32 headers and brought the DOS version up to parity with UNIX
[oftp] / libs / watt32 / sys / poll.h
diff --git a/libs/watt32/sys/poll.h b/libs/watt32/sys/poll.h
new file mode 100644 (file)
index 0000000..2b00580
--- /dev/null
@@ -0,0 +1,22 @@
+/*!\file sys/poll.h
+ *
+ */
+#ifndef __SYS_POLL_H
+#define __SYS_POLL_H
+
+#define POLLIN   0x0001
+#define POLLPRI  0x0002   /* not used */
+#define POLLOUT  0x0004
+#define POLLERR  0x0008
+#define POLLHUP  0x0010   /* not used */
+#define POLLNVAL 0x0020   /* not used */
+
+struct pollfd {
+       int fd;
+       int events;     /* in param: what to poll for */
+       int revents;    /* out param: what events occured */
+     };
+
+extern int poll (struct pollfd *p, int num, int timeout);
+
+#endif