Browse Source

Hide _stdio_init/term, sorry, one change went mistakenly into the earlier commit

Peter S. Mazinger 18 years ago
parent
commit
8b7e919bac
4 changed files with 6 additions and 6 deletions
  1. 1 1
      libc/misc/internals/__uClibc_main.c
  2. 2 2
      libc/stdio/_stdio.c
  3. 2 2
      libc/stdlib/abort.c
  4. 1 1
      libc/stdlib/atexit.c

+ 1 - 1
libc/misc/internals/__uClibc_main.c

@@ -56,7 +56,7 @@ strong_alias(__stack_chk_guard,__guard)
 /*
  * Prototypes.
  */
-extern void weak_function _stdio_init(void);
+extern void weak_function _stdio_init(void) attribute_hidden;
 extern int *weak_const_function __errno_location(void);
 extern int *weak_const_function __h_errno_location(void);
 #ifdef __UCLIBC_HAS_LOCALE__

+ 2 - 2
libc/stdio/_stdio.c

@@ -176,7 +176,7 @@ void attribute_hidden __stdio_init_mutex(pthread_mutex_t *m)
 /**********************************************************************/
 
 /* We assume here that we are the only remaining thread. */
-void _stdio_term(void)
+void attribute_hidden _stdio_term(void)
 {
 #if defined(__STDIO_BUFFERS) || defined(__UCLIBC_HAS_GLIBC_CUSTOM_STREAMS__)
 	register FILE *ptr;
@@ -238,7 +238,7 @@ void _stdio_term(void)
 #endif
 }
 
-void _stdio_init(void)
+void attribute_hidden _stdio_init(void)
 {
 #ifdef __STDIO_BUFFERS
 	int old_errno = errno;

+ 2 - 2
libc/stdlib/abort.c

@@ -68,9 +68,9 @@ Cambridge, MA 02139, USA.  */
 #endif
 
 #ifdef __UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT__
-extern void weak_function _stdio_term(void);
+extern void weak_function _stdio_term(void) attribute_hidden;
 #endif
-extern void _exit __P((int __status)) __attribute__ ((__noreturn__));
+extern void _exit (int __status) __attribute__ ((__noreturn__));
 static int been_there_done_that = 0;
 
 /* Be prepared in case multiple threads try to abort() */

+ 1 - 1
libc/stdlib/atexit.c

@@ -305,7 +305,7 @@ void __exit_handler(int status)
 #endif
 
 #ifdef L_exit
-extern void weak_function _stdio_term(void);
+extern void weak_function _stdio_term(void) attribute_hidden;
 void (*__exit_cleanup) (int) = 0;
 #ifdef __UCLIBC_HAS_THREADS__
 pthread_mutex_t mylock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;