Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/ftello.c')
-rw-r--r--newlib/libc/stdio/ftello.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/newlib/libc/stdio/ftello.c b/newlib/libc/stdio/ftello.c
index f4c28b4d1..918883cf0 100644
--- a/newlib/libc/stdio/ftello.c
+++ b/newlib/libc/stdio/ftello.c
@@ -18,9 +18,21 @@
#include <stdio.h>
_off_t
-_DEFUN (ftello, (fp),
+_DEFUN (_ftello_r, (ptr, fp),
+ struct _reent * ptr _AND
register FILE * fp)
{
/* for now we simply cast since off_t should be long */
- return (_off_t)ftell (fp);
+ return (_off_t)_ftell_r (ptr, fp);
}
+
+#ifndef _REENT_ONLY
+
+_off_t
+_DEFUN (ftello, (fp),
+ register FILE * fp)
+{
+ return (_off_t)_ftell_r (_REENT, fp);
+}
+
+#endif /* !_REENT_ONLY */