libc: Access some unexported variables more efficiently (related to stdio).

This commit is contained in:
Jilles Tjoelker 2013-08-23 14:23:54 +00:00
parent 246fb6b232
commit 442542b86c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254706

View File

@ -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