summaryrefslogtreecommitdiff
path: root/src/semaphore
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/semaphore
parent49836ed4fa13e431fdbb52e418499853df8693c6 (diff)
add symbols from POSIX.1b-1993
Diffstat (limited to 'src/semaphore')
-rw-r--r--src/semaphore/sem_close.c11
-rw-r--r--src/semaphore/sem_destroy.c11
-rw-r--r--src/semaphore/sem_getvalue.c11
-rw-r--r--src/semaphore/sem_init.c11
-rw-r--r--src/semaphore/sem_open.c11
-rw-r--r--src/semaphore/sem_post.c11
-rw-r--r--src/semaphore/sem_t.c5
-rw-r--r--src/semaphore/sem_trywait.c11
-rw-r--r--src/semaphore/sem_unlink.c11
-rw-r--r--src/semaphore/sem_wait.c11
10 files changed, 104 insertions, 0 deletions
diff --git a/src/semaphore/sem_close.c b/src/semaphore/sem_close.c
new file mode 100644
index 00000000..3f0e6c36
--- /dev/null
+++ b/src/semaphore/sem_close.c
@@ -0,0 +1,11 @@
+#include <semaphore.h>
+
+int sem_close(sem_t *sem)
+{
+ return 0;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/
diff --git a/src/semaphore/sem_destroy.c b/src/semaphore/sem_destroy.c
new file mode 100644
index 00000000..c0f0e33c
--- /dev/null
+++ b/src/semaphore/sem_destroy.c
@@ -0,0 +1,11 @@
+#include <semaphore.h>
+
+int sem_destroy(sem_t * sem)
+{
+ return 0;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/
diff --git a/src/semaphore/sem_getvalue.c b/src/semaphore/sem_getvalue.c
new file mode 100644
index 00000000..1b50bc93
--- /dev/null
+++ b/src/semaphore/sem_getvalue.c
@@ -0,0 +1,11 @@
+#include <semaphore.h>
+
+int sem_getvalue(sem_t * restrict sem, int * restrict sval)
+{
+ return *sval;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/
diff --git a/src/semaphore/sem_init.c b/src/semaphore/sem_init.c
new file mode 100644
index 00000000..64ddc10f
--- /dev/null
+++ b/src/semaphore/sem_init.c
@@ -0,0 +1,11 @@
+#include <semaphore.h>
+
+int sem_init(sem_t * sem, int pshared, unsigned value)
+{
+ return pshared;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/
diff --git a/src/semaphore/sem_open.c b/src/semaphore/sem_open.c
new file mode 100644
index 00000000..04ba0144
--- /dev/null
+++ b/src/semaphore/sem_open.c
@@ -0,0 +1,11 @@
+#include <semaphore.h>
+
+sem_t * sem_open(const char * name, int oflag, ...)
+{
+ return SEM_FAILED;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/
diff --git a/src/semaphore/sem_post.c b/src/semaphore/sem_post.c
new file mode 100644
index 00000000..de43da36
--- /dev/null
+++ b/src/semaphore/sem_post.c
@@ -0,0 +1,11 @@
+#include <semaphore.h>
+
+int sem_post(sem_t * sem)
+{
+ return 0;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/
diff --git a/src/semaphore/sem_t.c b/src/semaphore/sem_t.c
new file mode 100644
index 00000000..e0fcb4cc
--- /dev/null
+++ b/src/semaphore/sem_t.c
@@ -0,0 +1,5 @@
+#include <semaphore.h>
+typedef struct __sem_t sem_t;
+/*
+POSIX(199309)
+*/
diff --git a/src/semaphore/sem_trywait.c b/src/semaphore/sem_trywait.c
new file mode 100644
index 00000000..02696b9d
--- /dev/null
+++ b/src/semaphore/sem_trywait.c
@@ -0,0 +1,11 @@
+#include <semaphore.h>
+
+int sem_trywait(sem_t * sem)
+{
+ return 0;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/
diff --git a/src/semaphore/sem_unlink.c b/src/semaphore/sem_unlink.c
new file mode 100644
index 00000000..0be65021
--- /dev/null
+++ b/src/semaphore/sem_unlink.c
@@ -0,0 +1,11 @@
+#include <semaphore.h>
+
+int sem_unlink(const char * name)
+{
+ return -1;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/
diff --git a/src/semaphore/sem_wait.c b/src/semaphore/sem_wait.c
new file mode 100644
index 00000000..8bf012a4
--- /dev/null
+++ b/src/semaphore/sem_wait.c
@@ -0,0 +1,11 @@
+#include <semaphore.h>
+
+int sem_wait(sem_t * sem)
+{
+ return 0;
+}
+
+/*
+POSIX(199309)
+LINK(rt)
+*/