aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/include
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2013-08-23 14:23:54 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2013-08-23 14:23:54 +0000
commit442542b86cbefe6eab27b6b3be80c6776b89c3ed (patch)
treec797967072df84f7594dfe2b7e6edca24cd9cbe4 /lib/libc/include
parent246fb6b232e775ff4d33f5a2e11778b0483250e2 (diff)
libc: Access some unexported variables more efficiently (related to stdio).
Notes
svn path=/head/; revision=254706
Diffstat (limited to 'lib/libc/include')
-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 faae02811d17..40a5f7266709 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