summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-08-23 14:23:54 +0000
committerjilles <jilles@FreeBSD.org>2013-08-23 14:23:54 +0000
commitea95259d9852f44f3ada0f2eac976efc4683f3a7 (patch)
treec797967072df84f7594dfe2b7e6edca24cd9cbe4 /lib
parent7cf3eec1d47287096a555d0fc2d1d8052234abf5 (diff)
downloadFreeBSD-src-ea95259d9852f44f3ada0f2eac976efc4683f3a7.zip
FreeBSD-src-ea95259d9852f44f3ada0f2eac976efc4683f3a7.tar.gz
libc: Access some unexported variables more efficiently (related to stdio).
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/include/libc_private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/include/libc_private.h b/lib/libc/include/libc_private.h
index faae028..40a5f72 100644
--- a/lib/libc/include/libc_private.h
+++ b/lib/libc/include/libc_private.h
@@ -83,7 +83,7 @@ void _rtld_error(const char *fmt, ...);
#define FUNLOCKFILE(fp) if (__isthreaded) _funlockfile(fp)
struct _spinlock;
-extern struct _spinlock __stdio_thread_lock;
+extern struct _spinlock __stdio_thread_lock __hidden;
#define STDIO_THREAD_LOCK() \
do { \
if (__isthreaded) \
@@ -218,7 +218,7 @@ void _malloc_postfork(void);
/*
* Function to clean up streams, called from abort() and exit().
*/
-extern void (*__cleanup)(void);
+extern void (*__cleanup)(void) __hidden;
/*
* Get kern.osreldate to detect ABI revisions. Explicitly
OpenPOWER on IntegriCloud