From 78ace90c3c1fa2055620ebe59f9210d9bc1e7638 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 9 Feb 2019 14:56:50 -0500 Subject: merge XOPEN identifiers --- src/ucontext/getcontext.c | 10 ++++++++++ src/ucontext/makecontext.c | 9 +++++++++ src/ucontext/mcontext_t.c | 7 +++++++ src/ucontext/setcontext.c | 10 ++++++++++ src/ucontext/swapcontext.c | 9 +++++++++ src/ucontext/ucontext_t.c | 12 ++++++++++++ 6 files changed, 57 insertions(+) create mode 100644 src/ucontext/getcontext.c create mode 100644 src/ucontext/makecontext.c create mode 100644 src/ucontext/mcontext_t.c create mode 100644 src/ucontext/setcontext.c create mode 100644 src/ucontext/swapcontext.c create mode 100644 src/ucontext/ucontext_t.c (limited to 'src') diff --git a/src/ucontext/getcontext.c b/src/ucontext/getcontext.c new file mode 100644 index 00000000..eaf1e43a --- /dev/null +++ b/src/ucontext/getcontext.c @@ -0,0 +1,10 @@ +#include + +int getcontext(ucontext_t *ucp) +{ + return 0; +} + +/* +XOPEN(400,700) +*/ diff --git a/src/ucontext/makecontext.c b/src/ucontext/makecontext.c new file mode 100644 index 00000000..444b8b89 --- /dev/null +++ b/src/ucontext/makecontext.c @@ -0,0 +1,9 @@ +#include + +void makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) +{ +} + +/* +XOPEN(400,700) +*/ diff --git a/src/ucontext/mcontext_t.c b/src/ucontext/mcontext_t.c new file mode 100644 index 00000000..f2d49169 --- /dev/null +++ b/src/ucontext/mcontext_t.c @@ -0,0 +1,7 @@ +#include + +typedef unsigned long mcontext_t; + +/* +XOPEN(400,700) +*/ diff --git a/src/ucontext/setcontext.c b/src/ucontext/setcontext.c new file mode 100644 index 00000000..c4808307 --- /dev/null +++ b/src/ucontext/setcontext.c @@ -0,0 +1,10 @@ +#include + +int setcontext(const ucontext_t *ucp) +{ + return 0; +} + +/* +XOPEN(400,700) +*/ diff --git a/src/ucontext/swapcontext.c b/src/ucontext/swapcontext.c new file mode 100644 index 00000000..9f8f3cad --- /dev/null +++ b/src/ucontext/swapcontext.c @@ -0,0 +1,9 @@ +#include + +void swapcontext(ucontext_t *oucp, const ucontext_t *ucp) +{ +} + +/* +XOPEN(400,700) +*/ diff --git a/src/ucontext/ucontext_t.c b/src/ucontext/ucontext_t.c new file mode 100644 index 00000000..740df115 --- /dev/null +++ b/src/ucontext/ucontext_t.c @@ -0,0 +1,12 @@ +#include + +typedef struct ucontext_t { + struct ucontext_t * uc_link; + sigset_t uc_sigmask; + stack_t uc_stack; + mcontext_t uc_mcontext; +} ucontext_t; + +/* +XOPEN(400,700) +*/ -- cgit v1.2.1