summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2021-03-17 12:11:07 +0200
committerToomas Soome <tsoome@me.com>2021-04-01 19:52:11 +0300
commitdd699a3e07422d6135575d35b14927cd260ef32e (patch)
tree5e00933da52e9ed560773b5dabeeab3059696874
parent4ba84af54d7e87f645088b6bb6f9baac08e77373 (diff)
downloadillumos-joyent-dd699a3e07422d6135575d35b14927cd260ef32e.tar.gz
13682 libc: '_getcontext' specifies less restrictive attribute than its target
Reviewed by: Robert Mustacchi <rm@fingolfin.org> Approved by: Gordon Ross <gordon.w.ross@gmail.com>
-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)