summaryrefslogtreecommitdiffstats
path: root/libc/stdio/ftello.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-26 03:57:14 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-26 03:57:14 +0000
commit9921832fa13cef31006cfa69bc5574636c36ac0f (patch)
tree4faa87a1fbc9842126d3bdc61c0d64285ebcc849 /libc/stdio/ftello.c
parent292e2d7a707449b531422d37cec4608d304da24e (diff)
downloaduClibc-alpine-9921832fa13cef31006cfa69bc5574636c36ac0f.tar.bz2
uClibc-alpine-9921832fa13cef31006cfa69bc5574636c36ac0f.tar.xz
Merge from trunk.
Diffstat (limited to 'libc/stdio/ftello.c')
-rw-r--r--libc/stdio/ftello.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/libc/stdio/ftello.c b/libc/stdio/ftello.c
index 7f5c53126..4445471a4 100644
--- a/libc/stdio/ftello.c
+++ b/libc/stdio/ftello.c
@@ -7,16 +7,21 @@
#include "_stdio.h"
+#ifdef __UCLIBC_HAS_LFS__
+libc_hidden_proto(ftello64)
+#endif
+libc_hidden_proto(ftell)
+
#ifndef __DO_LARGEFILE
-# define FTELL __ftell
+# define FTELL ftell
# define OFFSET_TYPE long int
#endif
-OFFSET_TYPE attribute_hidden FTELL(register FILE *stream)
+OFFSET_TYPE FTELL(register FILE *stream)
{
#if defined(__UCLIBC_HAS_LFS__) && !defined(__DO_LARGEFILE)
- __offmax_t pos = __ftello64(stream);
+ __offmax_t pos = ftello64(stream);
if ((sizeof(long) >= sizeof(__offmax_t)) || (((long) pos) == pos)) {
return ((long) pos);
@@ -47,8 +52,8 @@ OFFSET_TYPE attribute_hidden FTELL(register FILE *stream)
}
#ifdef __DO_LARGEFILE
-weak_alias(__ftello64,ftello64)
+libc_hidden_def(ftello64)
#else
-weak_alias(__ftell,ftell)
-weak_alias(ftell,ftello)
+libc_hidden_def(ftell)
+strong_alias(ftell,ftello)
#endif