diff options
| -rw-r--r-- | src/ucontext/getcontext.c | 10 | ||||
| -rw-r--r-- | src/ucontext/makecontext.c | 9 | ||||
| -rw-r--r-- | src/ucontext/mcontext_t.c | 7 | ||||
| -rw-r--r-- | src/ucontext/setcontext.c | 10 | ||||
| -rw-r--r-- | src/ucontext/swapcontext.c | 9 | ||||
| -rw-r--r-- | src/ucontext/ucontext_t.c | 12 |
6 files changed, 57 insertions, 0 deletions
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 <ucontext.h> + +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 <ucontext.h> + +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 <ucontext.h> + +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 <ucontext.h> + +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 <ucontext.h> + +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 <ucontext.h> + +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) +*/ |
