Browse Source

Change internal name __f[ge,pu]tc_unlocked to __libc_x

Peter S. Mazinger 18 years ago
parent
commit
5c2de4b255
2 changed files with 13 additions and 11 deletions
  1. 6 5
      libc/stdio/fgetc.c
  2. 7 6
      libc/stdio/fputc.c

+ 6 - 5
libc/stdio/fgetc.c

@@ -14,7 +14,7 @@
 
 #ifdef __DO_UNLOCKED
 
-int attribute_hidden __fgetc_unlocked(FILE *stream)
+int attribute_hidden __libc_fgetc_unlocked(FILE *stream)
 {
 	__STDIO_STREAM_VALIDATE(stream);
 
@@ -69,11 +69,12 @@ int attribute_hidden __fgetc_unlocked(FILE *stream)
 	return EOF;
 }
 
-weak_alias(__fgetc_unlocked,fgetc_unlocked);
-weak_alias(__fgetc_unlocked,getc_unlocked);
+strong_alias(__libc_fgetc_unlocked,__fgetc_unlocked)
+weak_alias(__fgetc_unlocked,fgetc_unlocked)
+weak_alias(__fgetc_unlocked,getc_unlocked)
 #ifndef __UCLIBC_HAS_THREADS__
-weak_alias(__fgetc_unlocked,fgetc);
-weak_alias(__fgetc_unlocked,getc);
+weak_alias(__fgetc_unlocked,fgetc)
+weak_alias(__fgetc_unlocked,getc)
 #endif
 
 #elif defined __UCLIBC_HAS_THREADS__

+ 7 - 6
libc/stdio/fputc.c

@@ -14,7 +14,7 @@
 
 #ifdef __DO_UNLOCKED
 
-int attribute_hidden __fputc_unlocked(int c, register FILE *stream)
+int attribute_hidden __libc_fputc_unlocked(int c, register FILE *stream)
 {
 	__STDIO_STREAM_VALIDATE(stream);
 
@@ -69,11 +69,12 @@ int attribute_hidden __fputc_unlocked(int c, register FILE *stream)
 	return EOF;
 }
 
-weak_alias(__fputc_unlocked,fputc_unlocked);
-weak_alias(__fputc_unlocked,putc_unlocked);
+strong_alias(__libc_fputc_unlocked,__fputc_unlocked)
+weak_alias(__fputc_unlocked,fputc_unlocked)
+weak_alias(__fputc_unlocked,putc_unlocked)
 #ifndef __UCLIBC_HAS_THREADS__
-weak_alias(__fputc_unlocked,fputc);
-weak_alias(__fputc_unlocked,putc);
+weak_alias(__fputc_unlocked,fputc)
+weak_alias(__fputc_unlocked,putc)
 #endif
 
 #elif defined __UCLIBC_HAS_THREADS__
@@ -91,6 +92,6 @@ int fputc(int c, register FILE *stream)
 	}
 }
 
-weak_alias(fputc,putc);
+weak_alias(fputc,putc)
 
 #endif