From 52b8c93b7180eac72721d59315aae2b592e7b3a1 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 20 Feb 2019 12:00:12 -0500 Subject: add symbols from POSIX.1b-1993 --- src/semaphore/sem_close.c | 11 +++++++++++ src/semaphore/sem_destroy.c | 11 +++++++++++ src/semaphore/sem_getvalue.c | 11 +++++++++++ src/semaphore/sem_init.c | 11 +++++++++++ src/semaphore/sem_open.c | 11 +++++++++++ src/semaphore/sem_post.c | 11 +++++++++++ src/semaphore/sem_t.c | 5 +++++ src/semaphore/sem_trywait.c | 11 +++++++++++ src/semaphore/sem_unlink.c | 11 +++++++++++ src/semaphore/sem_wait.c | 11 +++++++++++ 10 files changed, 104 insertions(+) create mode 100644 src/semaphore/sem_close.c create mode 100644 src/semaphore/sem_destroy.c create mode 100644 src/semaphore/sem_getvalue.c create mode 100644 src/semaphore/sem_init.c create mode 100644 src/semaphore/sem_open.c create mode 100644 src/semaphore/sem_post.c create mode 100644 src/semaphore/sem_t.c create mode 100644 src/semaphore/sem_trywait.c create mode 100644 src/semaphore/sem_unlink.c create mode 100644 src/semaphore/sem_wait.c (limited to 'src/semaphore') 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 + +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 + +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 + +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 + +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 + +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 + +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 +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 + +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 + +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 + +int sem_wait(sem_t * sem) +{ + return 0; +} + +/* +POSIX(199309) +LINK(rt) +*/ -- cgit v1.2.1