summaryrefslogtreecommitdiff
path: root/libc/stdio/fflush.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/fflush.c')
-rw-r--r--libc/stdio/fflush.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/libc/stdio/fflush.c b/libc/stdio/fflush.c
index 0a74afe3f..e33a0065a 100644
--- a/libc/stdio/fflush.c
+++ b/libc/stdio/fflush.c
@@ -7,6 +7,8 @@
#include "_stdio.h"
+libc_hidden_proto(fflush_unlocked)
+
#ifdef __DO_UNLOCKED
#ifdef __UCLIBC_MJN3_ONLY__
@@ -31,7 +33,7 @@
#endif
-int attribute_hidden __fflush_unlocked(register FILE *stream)
+int fflush_unlocked(register FILE *stream)
{
#ifdef __STDIO_BUFFERS
@@ -125,16 +127,17 @@ int attribute_hidden __fflush_unlocked(register FILE *stream)
return 0;
#endif /* __STDIO_BUFFERS */
}
+libc_hidden_def(fflush_unlocked)
-weak_alias(__fflush_unlocked,fflush_unlocked)
#ifndef __UCLIBC_HAS_THREADS__
-hidden_strong_alias(__fflush_unlocked,__fflush)
-weak_alias(__fflush_unlocked,fflush)
+strong_alias(fflush_unlocked,fflush)
+libc_hidden_proto(fflush)
+libc_hidden_def(fflush)
#endif
#elif defined __UCLIBC_HAS_THREADS__
-int attribute_hidden __fflush(register FILE *stream)
+int fflush(register FILE *stream)
{
int retval;
__STDIO_AUTO_THREADLOCK_VAR;
@@ -147,15 +150,16 @@ int attribute_hidden __fflush(register FILE *stream)
__STDIO_AUTO_THREADLOCK(stream);
- retval = __fflush_unlocked(stream);
+ retval = fflush_unlocked(stream);
__STDIO_AUTO_THREADUNLOCK(stream);
} else {
- retval = __fflush_unlocked(stream);
+ retval = fflush_unlocked(stream);
}
return retval;
}
-strong_alias(__fflush,fflush)
+libc_hidden_proto(fflush)
+libc_hidden_def(fflush)
#endif