svn commit: r254706 - head/lib/libc/include

Jilles Tjoelker jilles at FreeBSD.org
Fri Aug 23 14:23:54 UTC 2013


Author: jilles
Date: Fri Aug 23 14:23:54 2013
New Revision: 254706
URL: http://svnweb.freebsd.org/changeset/base/254706

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

Modified:
  head/lib/libc/include/libc_private.h

Modified: head/lib/libc/include/libc_private.h
==============================================================================
--- head/lib/libc/include/libc_private.h	Fri Aug 23 14:18:24 2013	(r254705)
+++ head/lib/libc/include/libc_private.h	Fri Aug 23 14:23:54 2013	(r254706)
@@ -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


More information about the svn-src-head mailing list