diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-15 19:40:16 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-15 19:40:16 +0000 |
commit | ce104350778d32ea38caa68767f119c3accc1de3 (patch) | |
tree | 6f6d5e01a5ce4667639f602507b447cd43c996e4 | |
parent | b2b61b775500cf34803e0856dd7ed4093ee4ac74 (diff) |
Hide *getc* *putc*
-rw-r--r-- | libc/stdio/fgetc.c | 10 | ||||
-rw-r--r-- | libc/stdio/fputc.c | 11 |
2 files changed, 13 insertions, 8 deletions
diff --git a/libc/stdio/fgetc.c b/libc/stdio/fgetc.c index be9322714..7135848b3 100644 --- a/libc/stdio/fgetc.c +++ b/libc/stdio/fgetc.c @@ -69,17 +69,19 @@ int attribute_hidden __fgetc_unlocked_internal(FILE *stream) return EOF; } -strong_alias(__fgetc_unlocked_internal,__fgetc_unlocked) +hidden_strong_alias(__fgetc_unlocked_internal,__fgetc_unlocked) weak_alias(__fgetc_unlocked_internal,fgetc_unlocked) +hidden_strong_alias(__fgetc_unlocked_internal,__getc_unlocked) weak_alias(__fgetc_unlocked_internal,getc_unlocked) #ifndef __UCLIBC_HAS_THREADS__ +hidden_strong_alias(__fgetc_unlocked_internal,__fgetc) weak_alias(__fgetc_unlocked_internal,fgetc) weak_alias(__fgetc_unlocked_internal,getc) #endif #elif defined __UCLIBC_HAS_THREADS__ -int fgetc(register FILE *stream) +int attribute_hidden __fgetc(register FILE *stream) { if (stream->__user_locking != 0) { return __GETC_UNLOCKED_MACRO(stream); @@ -91,7 +93,7 @@ int fgetc(register FILE *stream) return retval; } } - -weak_alias(fgetc,getc); +strong_alias(__fgetc,fgetc) +weak_alias(__fgetc,getc) #endif diff --git a/libc/stdio/fputc.c b/libc/stdio/fputc.c index b319263a1..611d16cc0 100644 --- a/libc/stdio/fputc.c +++ b/libc/stdio/fputc.c @@ -69,17 +69,19 @@ int attribute_hidden __fputc_unlocked_internal(int c, register FILE *stream) return EOF; } -strong_alias(__fputc_unlocked_internal,__fputc_unlocked) +hidden_strong_alias(__fputc_unlocked_internal,__fputc_unlocked) weak_alias(__fputc_unlocked_internal,fputc_unlocked) weak_alias(__fputc_unlocked_internal,putc_unlocked) #ifndef __UCLIBC_HAS_THREADS__ +hidden_strong_alias(__fputc_unlocked_internal,__fputc) weak_alias(__fputc_unlocked_internal,fputc) +hidden_strong_alias(__fputc_unlocked_internal,__putc) weak_alias(__fputc_unlocked_internal,putc) #endif #elif defined __UCLIBC_HAS_THREADS__ -int fputc(int c, register FILE *stream) +int attribute_hidden __fputc(int c, register FILE *stream) { if (stream->__user_locking != 0) { return __PUTC_UNLOCKED_MACRO(c, stream); @@ -91,7 +93,8 @@ int fputc(int c, register FILE *stream) return retval; } } - -weak_alias(fputc,putc) +strong_alias(__fputc,fputc) +hidden_strong_alias(__fputc,__putc) +weak_alias(__fputc,putc) #endif |