summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-06-30 20:51:15 +0000
committerjilles <jilles@FreeBSD.org>2013-06-30 20:51:15 +0000
commitcf3175531d237ca749a4e1bd0d8d5b6cc7c4dd87 (patch)
tree6aa9dabf56cbd0d7c910e9ef0b1a51603fb52b6e /lib
parentfdd0a4cf934b0c544c97ceba0888463d2819c2f2 (diff)
downloadFreeBSD-src-cf3175531d237ca749a4e1bd0d8d5b6cc7c4dd87.zip
FreeBSD-src-cf3175531d237ca749a4e1bd0d8d5b6cc7c4dd87.tar.gz
libc: Access _sigintr more efficiently.
The variable _sigintr is not exported via the version script; therefore, tell the compiler that no indirection (to allow interposition) is needed.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/siginterrupt.c2
-rw-r--r--lib/libc/gen/signal.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/siginterrupt.c b/lib/libc/gen/siginterrupt.c
index dde474c..fde33ca 100644
--- a/lib/libc/gen/siginterrupt.c
+++ b/lib/libc/gen/siginterrupt.c
@@ -46,7 +46,7 @@ int
siginterrupt(sig, flag)
int sig, flag;
{
- extern sigset_t _sigintr;
+ extern sigset_t _sigintr __hidden;
struct sigaction sa;
int ret;
diff --git a/lib/libc/gen/signal.c b/lib/libc/gen/signal.c
index c93633e..ee96dcc 100644
--- a/lib/libc/gen/signal.c
+++ b/lib/libc/gen/signal.c
@@ -41,7 +41,7 @@ __FBSDID("$FreeBSD$");
#include "un-namespace.h"
#include "libc_private.h"
-sigset_t _sigintr; /* shared with siginterrupt */
+sigset_t _sigintr __hidden; /* shared with siginterrupt */
sig_t
signal(s, a)
OpenPOWER on IntegriCloud