diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-09 13:24:16 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-09 13:24:16 -0500 |
| commit | 7d080ea59666baf2d03149344f455ccc35d455c3 (patch) | |
| tree | 62c819965446a3787d96fe0b1da6417f78636e3f | |
| parent | ba3c4cc6f3d7e844ed022f2efff3c692ed412305 (diff) | |
merge XOPEN identifiers
| -rw-r--r-- | src/poll/POLLERR.c | 6 | ||||
| -rw-r--r-- | src/poll/POLLHUP.c | 6 | ||||
| -rw-r--r-- | src/poll/POLLIN.c | 6 | ||||
| -rw-r--r-- | src/poll/POLLNVAL.c | 6 | ||||
| -rw-r--r-- | src/poll/POLLOUT.c | 6 | ||||
| -rw-r--r-- | src/poll/POLLPRI.c | 6 | ||||
| -rw-r--r-- | src/poll/POLLRDBAND.c | 6 | ||||
| -rw-r--r-- | src/poll/POLLRDNORM.c | 6 | ||||
| -rw-r--r-- | src/poll/POLLWRBAND.c | 6 | ||||
| -rw-r--r-- | src/poll/POLLWRNORM.c | 6 | ||||
| -rw-r--r-- | src/poll/nfds_t.c | 6 | ||||
| -rw-r--r-- | src/poll/poll.c | 11 | ||||
| -rw-r--r-- | src/poll/struct_pollfd.c | 12 |
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) +*/ |
