فهرست منبع

remove duplicate prototypes for _stdio_term().

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger 13 سال پیش
والد
کامیت
56023566de
3فایلهای تغییر یافته به همراه2 افزوده شده و 4 حذف شده
  1. 1 1
      libc/stdio/_stdio.c
  2. 1 0
      libc/stdlib/_atexit.c
  3. 0 3
      libc/stdlib/abort.c

+ 1 - 1
libc/stdio/_stdio.c

@@ -185,7 +185,7 @@ void attribute_hidden __stdio_init_mutex(__UCLIBC_MUTEX_TYPE *m)
 /**********************************************************************/
 
 /* We assume here that we are the only remaining thread. */
-void attribute_hidden _stdio_term(void)
+void _stdio_term(void)
 {
 #if defined(__STDIO_BUFFERS) || defined(__UCLIBC_HAS_GLIBC_CUSTOM_STREAMS__)
 	register FILE *ptr;

+ 1 - 0
libc/stdlib/_atexit.c

@@ -40,6 +40,7 @@
 #include <features.h>
 #include <unistd.h>
 #include <stdlib.h>
+#include <stdio.h>
 #include <errno.h>
 #include <atomic.h>
 

+ 0 - 3
libc/stdlib/abort.c

@@ -47,9 +47,6 @@ static __always_inline int not_null_ptr(const void *p)
 # warning "no abort instruction defined for your arch"
 #endif
 
-#ifdef __UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT__
-extern void weak_function _stdio_term(void) attribute_hidden;
-#endif
 static smallint been_there_done_that = 0;
 
 /* Be prepared in case multiple threads try to abort() */