From dd27e5399ebcf0be7d88585592a3fc3db774cea9 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 15 Oct 2017 09:16:45 -0500 Subject: ucontext: new module --- Makefile | 1 + libgcompat/ucontext.c | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 libgcompat/ucontext.c diff --git a/Makefile b/Makefile index 784babc..b014afc 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ LIBGCOMPAT_SRC = \ libgcompat/stdlib.c \ libgcompat/string.c \ libgcompat/sysctl.c \ + libgcompat/ucontext.c \ libgcompat/version.c LIBGCOMPAT_OBJ = ${LIBGCOMPAT_SRC:.c=.o} LIBGCOMPAT_SOVERSION = 0 diff --git a/libgcompat/ucontext.c b/libgcompat/ucontext.c new file mode 100644 index 0000000..2d6006e --- /dev/null +++ b/libgcompat/ucontext.c @@ -0,0 +1,7 @@ +#include /* errno, ENOSYS */ + +int getcontext(void *ucp) +{ + errno = ENOSYS; + return -1; +} -- cgit v1.2.3-70-g09d2