summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/poll/POLLERR.c6
-rw-r--r--src/poll/POLLHUP.c6
-rw-r--r--src/poll/POLLIN.c6
-rw-r--r--src/poll/POLLNVAL.c6
-rw-r--r--src/poll/POLLOUT.c6
-rw-r--r--src/poll/POLLPRI.c6
-rw-r--r--src/poll/POLLRDBAND.c6
-rw-r--r--src/poll/POLLRDNORM.c6
-rw-r--r--src/poll/POLLWRBAND.c6
-rw-r--r--src/poll/POLLWRNORM.c6
-rw-r--r--src/poll/nfds_t.c6
-rw-r--r--src/poll/poll.c11
-rw-r--r--src/poll/struct_pollfd.c12
13 files changed, 89 insertions, 0 deletions
diff --git a/src/poll/POLLERR.c b/src/poll/POLLERR.c
new file mode 100644
index 00000000..9d77f5a9
--- /dev/null
+++ b/src/poll/POLLERR.c
@@ -0,0 +1,6 @@
+#include <poll.h>
+#define POLLERR (8)
+/*
+XOPEN(400)
+POSIX(200809)
+*/
diff --git a/src/poll/POLLHUP.c b/src/poll/POLLHUP.c
new file mode 100644
index 00000000..44b823bc
--- /dev/null
+++ b/src/poll/POLLHUP.c
@@ -0,0 +1,6 @@
+#include <poll.h>
+#define POLLHUP (9)
+/*
+XOPEN(400)
+POSIX(200809)
+*/
diff --git a/src/poll/POLLIN.c b/src/poll/POLLIN.c
new file mode 100644
index 00000000..b48dadcf
--- /dev/null
+++ b/src/poll/POLLIN.c
@@ -0,0 +1,6 @@
+#include <poll.h>
+#define POLLIN (1)
+/*
+XOPEN(400)
+POSIX(200809)
+*/
diff --git a/src/poll/POLLNVAL.c b/src/poll/POLLNVAL.c
new file mode 100644
index 00000000..cc93f335
--- /dev/null
+++ b/src/poll/POLLNVAL.c
@@ -0,0 +1,6 @@
+#include <poll.h>
+#define POLLNVAL (10)
+/*
+XOPEN(400)
+POSIX(200809)
+*/
diff --git a/src/poll/POLLOUT.c b/src/poll/POLLOUT.c
new file mode 100644
index 00000000..f1a2827d
--- /dev/null
+++ b/src/poll/POLLOUT.c
@@ -0,0 +1,6 @@
+#include <poll.h>
+#define POLLOUT (5)
+/*
+XOPEN(400)
+POSIX(200809)
+*/
diff --git a/src/poll/POLLPRI.c b/src/poll/POLLPRI.c
new file mode 100644
index 00000000..4de252ee
--- /dev/null
+++ b/src/poll/POLLPRI.c
@@ -0,0 +1,6 @@
+#include <poll.h>
+#define POLLPRI (4)
+/*
+XOPEN(400)
+POSIX(200809)
+*/
diff --git a/src/poll/POLLRDBAND.c b/src/poll/POLLRDBAND.c
new file mode 100644
index 00000000..dfd5cae8
--- /dev/null
+++ b/src/poll/POLLRDBAND.c
@@ -0,0 +1,6 @@
+#include <poll.h>
+#define POLLRDBAND (3)
+/*
+XOPEN(400)
+POSIX(200809)
+*/
diff --git a/src/poll/POLLRDNORM.c b/src/poll/POLLRDNORM.c
new file mode 100644
index 00000000..ebf84eb9
--- /dev/null
+++ b/src/poll/POLLRDNORM.c
@@ -0,0 +1,6 @@
+#include <poll.h>
+#define POLLRDNORM (2)
+/*
+XOPEN(400)
+POSIX(200809)
+*/
diff --git a/src/poll/POLLWRBAND.c b/src/poll/POLLWRBAND.c
new file mode 100644
index 00000000..ff5d5e3d
--- /dev/null
+++ b/src/poll/POLLWRBAND.c
@@ -0,0 +1,6 @@
+#include <poll.h>
+#define POLLWRBAND (7)
+/*
+XOPEN(400)
+POSIX(200809)
+*/
diff --git a/src/poll/POLLWRNORM.c b/src/poll/POLLWRNORM.c
new file mode 100644
index 00000000..c920b7c1
--- /dev/null
+++ b/src/poll/POLLWRNORM.c
@@ -0,0 +1,6 @@
+#include <poll.h>
+#define POLLWRNORM (6)
+/*
+XOPEN(400)
+POSIX(200809)
+*/
diff --git a/src/poll/nfds_t.c b/src/poll/nfds_t.c
new file mode 100644
index 00000000..2a8b8208
--- /dev/null
+++ b/src/poll/nfds_t.c
@@ -0,0 +1,6 @@
+#include <poll.h>
+typedef unsigned int nfds_t;
+/*
+XOPEN(400)
+POSIX(200809)
+*/
diff --git a/src/poll/poll.c b/src/poll/poll.c
new file mode 100644
index 00000000..7813cf37
--- /dev/null
+++ b/src/poll/poll.c
@@ -0,0 +1,11 @@
+#include <poll.h>
+
+int poll(struct pollfd fds[], nfds_t nfds, int timeout)
+{
+ return 0;
+}
+
+/*
+XOPEN(400)
+POSIX(200809)
+*/
diff --git a/src/poll/struct_pollfd.c b/src/poll/struct_pollfd.c
new file mode 100644
index 00000000..2f609bb2
--- /dev/null
+++ b/src/poll/struct_pollfd.c
@@ -0,0 +1,12 @@
+#include <poll.h>
+
+struct pollfd {
+ int fd;
+ short events;
+ short revents;
+};
+
+/*
+XOPEN(400)
+POSIX(200809)
+*/