]> git.corax.cc Git - corax/commitdiff
Add include/poll.h header
authorMatthias Kruk <m@m10k.eu>
Wed, 2 Oct 2019 07:15:46 +0000 (16:15 +0900)
committerMatthias Kruk <m@m10k.eu>
Wed, 2 Oct 2019 07:15:46 +0000 (16:15 +0900)
include/poll.h [new file with mode: 0644]

diff --git a/include/poll.h b/include/poll.h
new file mode 100644 (file)
index 0000000..fce84e5
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef __POLL_H
+#define __POLL_H
+
+typedef unsigned long nfds_t;
+
+struct pollfd {
+       int fd;
+       short events;
+       short revents;
+};
+
+#define POLLIN    (1 << 0)
+#define POLLOUT   (1 << 1)
+#define POLLPRI   (1 << 2)
+#define POLLRDHUP (1 << 3)
+#define POLLERR   (1 << 4)
+#define POLLHUP   (1 << 5)
+#define POLLNVAL  (1 << 6)
+
+#endif /* __POLL_H */