summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/lib/libc/inc/libc.h5
-rw-r--r--usr/src/lib/libc/sparc/gen/getctxt.c9
-rw-r--r--usr/src/lib/libc/sparcv9/gen/getctxt.c9
3 files changed, 13 insertions, 10 deletions
diff --git a/usr/src/lib/libc/inc/libc.h b/usr/src/lib/libc/inc/libc.h
index 90a2859b33..98872ac161 100644
--- a/usr/src/lib/libc/inc/libc.h
+++ b/usr/src/lib/libc/inc/libc.h
@@ -222,6 +222,11 @@ extern int _so_getsockopt(int, int, int, char *, int *);
extern int lsign(dl_t);
/*
+ * defined in getctxt.c
+ */
+extern int _getcontext(ucontext_t *) __RETURNS_TWICE;
+
+/*
* defined in ucontext.s
*/
extern int __getcontext(ucontext_t *);
diff --git a/usr/src/lib/libc/sparc/gen/getctxt.c b/usr/src/lib/libc/sparc/gen/getctxt.c
index 3213955108..317a3f92ec 100644
--- a/usr/src/lib/libc/sparc/gen/getctxt.c
+++ b/usr/src/lib/libc/sparc/gen/getctxt.c
@@ -25,16 +25,15 @@
*/
/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-#pragma weak _getcontext = getcontext
+/* All Rights Reserved */
#include "lint.h"
#include "thr_uberdata.h"
#include <ucontext.h>
#include <sys/types.h>
+#include "libc.h"
+
+#pragma weak _getcontext = getcontext
int
getcontext(ucontext_t *ucp)
diff --git a/usr/src/lib/libc/sparcv9/gen/getctxt.c b/usr/src/lib/libc/sparcv9/gen/getctxt.c
index 3213955108..317a3f92ec 100644
--- a/usr/src/lib/libc/sparcv9/gen/getctxt.c
+++ b/usr/src/lib/libc/sparcv9/gen/getctxt.c
@@ -25,16 +25,15 @@
*/
/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-#pragma weak _getcontext = getcontext
+/* All Rights Reserved */
#include "lint.h"
#include "thr_uberdata.h"
#include <ucontext.h>
#include <sys/types.h>
+#include "libc.h"
+
+#pragma weak _getcontext = getcontext
int
getcontext(ucontext_t *ucp)