summaryrefslogtreecommitdiff
path: root/src/unistd
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-20 12:00:12 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-20 12:00:12 -0500
commit52b8c93b7180eac72721d59315aae2b592e7b3a1 (patch)
treed304c2e253c56ca39df04e5d346309f08f67c445 /src/unistd
parent49836ed4fa13e431fdbb52e418499853df8693c6 (diff)
add symbols from POSIX.1b-1993
Diffstat (limited to 'src/unistd')
-rw-r--r--src/unistd/_PC_ASYNC_IO.c5
-rw-r--r--src/unistd/_PC_PRIO_IO.c5
-rw-r--r--src/unistd/_PC_SYNC_IO.c5
-rw-r--r--src/unistd/_POSIX_ASYNCHRONOUS_IO.c6
-rw-r--r--src/unistd/_POSIX_ASYNC_IO.c5
-rw-r--r--src/unistd/_POSIX_FSYNC.c5
-rw-r--r--src/unistd/_POSIX_MAPPED_FILES.c5
-rw-r--r--src/unistd/_POSIX_MEMLOCK.c5
-rw-r--r--src/unistd/_POSIX_MEMLOCK_RANGE.c6
-rw-r--r--src/unistd/_POSIX_MEMORY_PROTECTION.c6
-rw-r--r--src/unistd/_POSIX_MESSAGE_PASSING.c6
-rw-r--r--src/unistd/_POSIX_PRIORITIZED_IO.c6
-rw-r--r--src/unistd/_POSIX_PRIORITY_SCHEDULING.c6
-rw-r--r--src/unistd/_POSIX_PRIO_IO.c5
-rw-r--r--src/unistd/_POSIX_REALTIME_SIGNALS.c5
-rw-r--r--src/unistd/_POSIX_SEMAPHORES.c6
-rw-r--r--src/unistd/_POSIX_SHARED_MEMORY_OBJECTS.c6
-rw-r--r--src/unistd/_POSIX_SYNCHRONIZED_IO.c6
-rw-r--r--src/unistd/_POSIX_SYNC_IO.c5
-rw-r--r--src/unistd/_POSIX_TIMERS.c6
-rw-r--r--src/unistd/_SC_AIO_LISTIO_MAX.c5
-rw-r--r--src/unistd/_SC_AIO_MAX.c5
-rw-r--r--src/unistd/_SC_AIO_PRIO_DELTA_MAX.c5
-rw-r--r--src/unistd/_SC_ASYNCHRONOUS_IO.c5
-rw-r--r--src/unistd/_SC_DELAYTIMER_MAX.c5
-rw-r--r--src/unistd/_SC_FSYNC.c5
-rw-r--r--src/unistd/_SC_MAPPED_FILES.c5
-rw-r--r--src/unistd/_SC_MEMLOCK.c5
-rw-r--r--src/unistd/_SC_MEMLOCK_RANGE.c5
-rw-r--r--src/unistd/_SC_MEMORY_PROTECTION.c5
-rw-r--r--src/unistd/_SC_MESSAGE_PASSING.c5
-rw-r--r--src/unistd/_SC_MQ_OPEN_MAX.c5
-rw-r--r--src/unistd/_SC_MQ_PRIO_MAX.c5
-rw-r--r--src/unistd/_SC_PRIORITIZED_IO.c5
-rw-r--r--src/unistd/_SC_PRIORITY_SCHEDULING.c5
-rw-r--r--src/unistd/_SC_REALTIME_SIGNALS.c5
-rw-r--r--src/unistd/_SC_RTSIG_MAX.c5
-rw-r--r--src/unistd/_SC_SEMAPHORES.c5
-rw-r--r--src/unistd/_SC_SEM_NSEMS_MAX.c5
-rw-r--r--src/unistd/_SC_SEM_VALUE_MAX.c5
-rw-r--r--src/unistd/_SC_SHARED_MEMORY_OBJECTS.c5
-rw-r--r--src/unistd/_SC_SIGQUEUE_MAX.c5
-rw-r--r--src/unistd/_SC_SYNCHRONIZED_IO.c5
-rw-r--r--src/unistd/_SC_TIMERS.c5
-rw-r--r--src/unistd/_SC_TIMER_MAX.c5
-rw-r--r--src/unistd/fdatasync.c11
46 files changed, 246 insertions, 0 deletions
diff --git a/src/unistd/_PC_ASYNC_IO.c b/src/unistd/_PC_ASYNC_IO.c
new file mode 100644
index 00000000..dce54d64
--- /dev/null
+++ b/src/unistd/_PC_ASYNC_IO.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _PC_ASYNC_IO 2
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_PC_PRIO_IO.c b/src/unistd/_PC_PRIO_IO.c
new file mode 100644
index 00000000..a7fb2784
--- /dev/null
+++ b/src/unistd/_PC_PRIO_IO.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _PC_PRIO_IO 12
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_PC_SYNC_IO.c b/src/unistd/_PC_SYNC_IO.c
new file mode 100644
index 00000000..c9c8921b
--- /dev/null
+++ b/src/unistd/_PC_SYNC_IO.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _PC_SYNC_IO 18
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_ASYNCHRONOUS_IO.c b/src/unistd/_POSIX_ASYNCHRONOUS_IO.c
new file mode 100644
index 00000000..32855cc9
--- /dev/null
+++ b/src/unistd/_POSIX_ASYNCHRONOUS_IO.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+#define _POSIX_ASYNCHRONOUS_IO 200809L
+
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_ASYNC_IO.c b/src/unistd/_POSIX_ASYNC_IO.c
new file mode 100644
index 00000000..dc896913
--- /dev/null
+++ b/src/unistd/_POSIX_ASYNC_IO.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _POSIX_ASYNC_IO 200809L
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_FSYNC.c b/src/unistd/_POSIX_FSYNC.c
new file mode 100644
index 00000000..591f74ef
--- /dev/null
+++ b/src/unistd/_POSIX_FSYNC.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _POSIX_FSYNC (-1)
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_MAPPED_FILES.c b/src/unistd/_POSIX_MAPPED_FILES.c
new file mode 100644
index 00000000..8d26f4b4
--- /dev/null
+++ b/src/unistd/_POSIX_MAPPED_FILES.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _POSIX_MAPPED_FILES 200809L
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_MEMLOCK.c b/src/unistd/_POSIX_MEMLOCK.c
new file mode 100644
index 00000000..5b814d37
--- /dev/null
+++ b/src/unistd/_POSIX_MEMLOCK.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _POSIX_MEMLOCK (-1)
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_MEMLOCK_RANGE.c b/src/unistd/_POSIX_MEMLOCK_RANGE.c
new file mode 100644
index 00000000..6b42c768
--- /dev/null
+++ b/src/unistd/_POSIX_MEMLOCK_RANGE.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+#define _POSIX_MEMLOCK_RANGE (-1)
+
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_MEMORY_PROTECTION.c b/src/unistd/_POSIX_MEMORY_PROTECTION.c
new file mode 100644
index 00000000..a24f59e3
--- /dev/null
+++ b/src/unistd/_POSIX_MEMORY_PROTECTION.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+#define _POSIX_MEMORY_PROTECTION 200809L
+
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_MESSAGE_PASSING.c b/src/unistd/_POSIX_MESSAGE_PASSING.c
new file mode 100644
index 00000000..c146700c
--- /dev/null
+++ b/src/unistd/_POSIX_MESSAGE_PASSING.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+#define _POSIX_MESSAGE_PASSING (-1)
+
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_PRIORITIZED_IO.c b/src/unistd/_POSIX_PRIORITIZED_IO.c
new file mode 100644
index 00000000..d72d6a95
--- /dev/null
+++ b/src/unistd/_POSIX_PRIORITIZED_IO.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+#define _POSIX_PRIORITIZED_IO (-1)
+
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_PRIORITY_SCHEDULING.c b/src/unistd/_POSIX_PRIORITY_SCHEDULING.c
new file mode 100644
index 00000000..990167a2
--- /dev/null
+++ b/src/unistd/_POSIX_PRIORITY_SCHEDULING.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+#define _POSIX_PRIORITY_SCHEDULING (-1)
+
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_PRIO_IO.c b/src/unistd/_POSIX_PRIO_IO.c
new file mode 100644
index 00000000..438fdd76
--- /dev/null
+++ b/src/unistd/_POSIX_PRIO_IO.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _POSIX_PRIO_IO 200809L
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_REALTIME_SIGNALS.c b/src/unistd/_POSIX_REALTIME_SIGNALS.c
new file mode 100644
index 00000000..5377fa85
--- /dev/null
+++ b/src/unistd/_POSIX_REALTIME_SIGNALS.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _POSIX_REALTIME_SIGNALS 200809L
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_SEMAPHORES.c b/src/unistd/_POSIX_SEMAPHORES.c
new file mode 100644
index 00000000..3b862191
--- /dev/null
+++ b/src/unistd/_POSIX_SEMAPHORES.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+#define _POSIX_SEMAPHORES 200809L
+
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_SHARED_MEMORY_OBJECTS.c b/src/unistd/_POSIX_SHARED_MEMORY_OBJECTS.c
new file mode 100644
index 00000000..21263d7a
--- /dev/null
+++ b/src/unistd/_POSIX_SHARED_MEMORY_OBJECTS.c
@@ -0,0 +1,6 @@
+#inlcude <unistd.h>
+#define _POSIX_SHARED_MEMORY_OBJECTS (-1)
+
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_SYNCHRONIZED_IO.c b/src/unistd/_POSIX_SYNCHRONIZED_IO.c
new file mode 100644
index 00000000..e5ac5538
--- /dev/null
+++ b/src/unistd/_POSIX_SYNCHRONIZED_IO.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+#define _POSIX_SYNCHRONIZED_IO (-1)
+
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_SYNC_IO.c b/src/unistd/_POSIX_SYNC_IO.c
new file mode 100644
index 00000000..2478f840
--- /dev/null
+++ b/src/unistd/_POSIX_SYNC_IO.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _POSIX_SYNC_IO 200809L
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_POSIX_TIMERS.c b/src/unistd/_POSIX_TIMERS.c
new file mode 100644
index 00000000..9a0b9c84
--- /dev/null
+++ b/src/unistd/_POSIX_TIMERS.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+#define _POSIX_TIMERS 200809L
+
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_AIO_LISTIO_MAX.c b/src/unistd/_SC_AIO_LISTIO_MAX.c
new file mode 100644
index 00000000..b42fb6ab
--- /dev/null
+++ b/src/unistd/_SC_AIO_LISTIO_MAX.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_AIO_LISTIO_MAX 16
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_AIO_MAX.c b/src/unistd/_SC_AIO_MAX.c
new file mode 100644
index 00000000..3ca8dc20
--- /dev/null
+++ b/src/unistd/_SC_AIO_MAX.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_AIO_MAX 17
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_AIO_PRIO_DELTA_MAX.c b/src/unistd/_SC_AIO_PRIO_DELTA_MAX.c
new file mode 100644
index 00000000..ca70d203
--- /dev/null
+++ b/src/unistd/_SC_AIO_PRIO_DELTA_MAX.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_AIO_PRIO_DELTA_MAX 18
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_ASYNCHRONOUS_IO.c b/src/unistd/_SC_ASYNCHRONOUS_IO.c
new file mode 100644
index 00000000..cf73f736
--- /dev/null
+++ b/src/unistd/_SC_ASYNCHRONOUS_IO.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_ASYNCHRONOUS_IO 20
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_DELAYTIMER_MAX.c b/src/unistd/_SC_DELAYTIMER_MAX.c
new file mode 100644
index 00000000..160473ad
--- /dev/null
+++ b/src/unistd/_SC_DELAYTIMER_MAX.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_DELAYTIMER_MAX 32
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_FSYNC.c b/src/unistd/_SC_FSYNC.c
new file mode 100644
index 00000000..8d895063
--- /dev/null
+++ b/src/unistd/_SC_FSYNC.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_FSYNC 34
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_MAPPED_FILES.c b/src/unistd/_SC_MAPPED_FILES.c
new file mode 100644
index 00000000..d2fe3ff7
--- /dev/null
+++ b/src/unistd/_SC_MAPPED_FILES.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_MAPPED_FILES 43
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_MEMLOCK.c b/src/unistd/_SC_MEMLOCK.c
new file mode 100644
index 00000000..7e62b5b1
--- /dev/null
+++ b/src/unistd/_SC_MEMLOCK.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_MEMLOCK 44
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_MEMLOCK_RANGE.c b/src/unistd/_SC_MEMLOCK_RANGE.c
new file mode 100644
index 00000000..b47ad9ba
--- /dev/null
+++ b/src/unistd/_SC_MEMLOCK_RANGE.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_MEMLOCK_RANGE 45
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_MEMORY_PROTECTION.c b/src/unistd/_SC_MEMORY_PROTECTION.c
new file mode 100644
index 00000000..75e3d3be
--- /dev/null
+++ b/src/unistd/_SC_MEMORY_PROTECTION.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_MEMORY_PROTECTION 46
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_MESSAGE_PASSING.c b/src/unistd/_SC_MESSAGE_PASSING.c
new file mode 100644
index 00000000..372b00c9
--- /dev/null
+++ b/src/unistd/_SC_MESSAGE_PASSING.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_MESSAGE_PASSING 47
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_MQ_OPEN_MAX.c b/src/unistd/_SC_MQ_OPEN_MAX.c
new file mode 100644
index 00000000..1a717caf
--- /dev/null
+++ b/src/unistd/_SC_MQ_OPEN_MAX.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_MQ_OPEN_MAX 49
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_MQ_PRIO_MAX.c b/src/unistd/_SC_MQ_PRIO_MAX.c
new file mode 100644
index 00000000..ddb97822
--- /dev/null
+++ b/src/unistd/_SC_MQ_PRIO_MAX.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_MQ_PRIO_MAX 50
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_PRIORITIZED_IO.c b/src/unistd/_SC_PRIORITIZED_IO.c
new file mode 100644
index 00000000..befe8ada
--- /dev/null
+++ b/src/unistd/_SC_PRIORITIZED_IO.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_PRIORITIZED_IO /* TODO */
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_PRIORITY_SCHEDULING.c b/src/unistd/_SC_PRIORITY_SCHEDULING.c
new file mode 100644
index 00000000..0c961dd2
--- /dev/null
+++ b/src/unistd/_SC_PRIORITY_SCHEDULING.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_PRIORITY_SCHEDULING 56
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_REALTIME_SIGNALS.c b/src/unistd/_SC_REALTIME_SIGNALS.c
new file mode 100644
index 00000000..c0cfaaa3
--- /dev/null
+++ b/src/unistd/_SC_REALTIME_SIGNALS.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_REALTIME_SIGNALS 60
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_RTSIG_MAX.c b/src/unistd/_SC_RTSIG_MAX.c
new file mode 100644
index 00000000..ca6778c8
--- /dev/null
+++ b/src/unistd/_SC_RTSIG_MAX.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_RTSIG_MAX 62
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_SEMAPHORES.c b/src/unistd/_SC_SEMAPHORES.c
new file mode 100644
index 00000000..3db19c48
--- /dev/null
+++ b/src/unistd/_SC_SEMAPHORES.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_SEMAPHORES 66
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_SEM_NSEMS_MAX.c b/src/unistd/_SC_SEM_NSEMS_MAX.c
new file mode 100644
index 00000000..698e49cd
--- /dev/null
+++ b/src/unistd/_SC_SEM_NSEMS_MAX.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_SEM_NSEMS_MAX 64
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_SEM_VALUE_MAX.c b/src/unistd/_SC_SEM_VALUE_MAX.c
new file mode 100644
index 00000000..95798bd8
--- /dev/null
+++ b/src/unistd/_SC_SEM_VALUE_MAX.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_SEM_VALUE_MAX 65
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_SHARED_MEMORY_OBJECTS.c b/src/unistd/_SC_SHARED_MEMORY_OBJECTS.c
new file mode 100644
index 00000000..d5c897fb
--- /dev/null
+++ b/src/unistd/_SC_SHARED_MEMORY_OBJECTS.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_SHARED_MEMORY_OBJECTS 67
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_SIGQUEUE_MAX.c b/src/unistd/_SC_SIGQUEUE_MAX.c
new file mode 100644
index 00000000..cb7edaf0
--- /dev/null
+++ b/src/unistd/_SC_SIGQUEUE_MAX.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_SIGQUEUE_MAX 69
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_SYNCHRONIZED_IO.c b/src/unistd/_SC_SYNCHRONIZED_IO.c
new file mode 100644
index 00000000..8ecc9281
--- /dev/null
+++ b/src/unistd/_SC_SYNCHRONIZED_IO.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_SYNCHRONIZED_IO 76
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_TIMERS.c b/src/unistd/_SC_TIMERS.c
new file mode 100644
index 00000000..9d661053
--- /dev/null
+++ b/src/unistd/_SC_TIMERS.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_TIMERS 95
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/_SC_TIMER_MAX.c b/src/unistd/_SC_TIMER_MAX.c
new file mode 100644
index 00000000..b20b7bcf
--- /dev/null
+++ b/src/unistd/_SC_TIMER_MAX.c
@@ -0,0 +1,5 @@
+#include <unistd.h>
+#define _SC_TIMER_MAX 94
+/*
+POSIX(199309)
+*/
diff --git a/src/unistd/fdatasync.c b/src/unistd/fdatasync.c
new file mode 100644
index 00000000..3de269ec
--- /dev/null
+++ b/src/unistd/fdatasync.c
@@ -0,0 +1,11 @@
+#include <unistd.h>
+#include "__nonstd.h"
+
+int fdatasync(int fildes)
+{
+ __SC(int, fildes);
+}
+
+/*
+POSIX(199309)
+*/