summaryrefslogtreecommitdiff
path: root/lib/libc_r/uthread/uthread_sigaltstack.c
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1998-11-09 03:13:22 +0000
committerDavid Leonard <d@cvs.openbsd.org>1998-11-09 03:13:22 +0000
commitff47464de5e68e9c49fe312c953f54b2e90f546c (patch)
tree4ec0e7f13d619e1b5bf6abfd7125a4ec17569568 /lib/libc_r/uthread/uthread_sigaltstack.c
parent1b2b2c2386c6cc5ebffc769b8a39b80d47e4e0d0 (diff)
sync with FreeBSD (rwlock, gc thread, man pages)
add (broken) mips md stuff fix some const warnings add sigaltstack() stub another hash at getting shlib auto-init to work (mips/elf and i386/a.out)
Diffstat (limited to 'lib/libc_r/uthread/uthread_sigaltstack.c')
-rw-r--r--lib/libc_r/uthread/uthread_sigaltstack.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/libc_r/uthread/uthread_sigaltstack.c b/lib/libc_r/uthread/uthread_sigaltstack.c
new file mode 100644
index 00000000000..9a1f9614542
--- /dev/null
+++ b/lib/libc_r/uthread/uthread_sigaltstack.c
@@ -0,0 +1,21 @@
+/*
+ * $OpenBSD: uthread_sigaltstack.c,v 1.1 1998/11/09 03:13:20 d Exp $
+ */
+
+#include <signal.h>
+#include <errno.h>
+#ifdef _THREAD_SAFE
+#include <pthread.h>
+#include "pthread_private.h"
+
+/*
+ * placeholder for sigaltstack XXX impl to be done
+ */
+
+int
+sigaltstack(const struct sigaltstack *ss, struct sigaltstack *oss)
+{
+ errno = EINVAL;
+ return (-1);
+}
+#endif /* _THREAD_SAFE */