summaryrefslogtreecommitdiff
path: root/libc/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio')
-rw-r--r--libc/stdio/Makefile.in3
-rw-r--r--libc/stdio/_cs_funcs.c4
-rw-r--r--libc/stdio/_stdio.h4
-rw-r--r--libc/stdio/fseeko.c2
-rw-r--r--libc/stdio/ftello.c2
-rw-r--r--libc/stdio/tmpfile.c2
6 files changed, 3 insertions, 14 deletions
diff --git a/libc/stdio/Makefile.in b/libc/stdio/Makefile.in
index 7d697bf82..b100c78f9 100644
--- a/libc/stdio/Makefile.in
+++ b/libc/stdio/Makefile.in
@@ -19,8 +19,7 @@ CSRC-y := \
printf.c vprintf.c vsprintf.c fprintf.c snprintf.c dprintf.c \
asprintf.c sprintf.c vasprintf.c vdprintf.c vsnprintf.c \
tmpfile.c popen.c ctermid.c
-CSRC-$(UCLIBC_HAS_LFS) += fgetpos64.c fopen64.c freopen64.c \
- fseeko64.c fsetpos64.c ftello64.c
+CSRC-y += fgetpos64.c fopen64.c freopen64.c fseeko64.c fsetpos64.c ftello64.c
CSRC-$(UCLIBC_SUSV4_LEGACY) += tmpnam.c tmpnam_r.c tempnam.c
# internal support functions
diff --git a/libc/stdio/_cs_funcs.c b/libc/stdio/_cs_funcs.c
index be416a450..7dfb120f5 100644
--- a/libc/stdio/_cs_funcs.c
+++ b/libc/stdio/_cs_funcs.c
@@ -13,11 +13,7 @@ int attribute_hidden __stdio_seek(FILE *stream, register __offmax_t *pos, int wh
{
__offmax_t res;
-#ifdef __UCLIBC_HAS_LFS__
res = lseek64(stream->__filedes, *pos, whence);
-#else
- res = lseek(stream->__filedes, *pos, whence);
-#endif
return (res >= 0) ? ((*pos = res), 0) : ((int) res);
}
diff --git a/libc/stdio/_stdio.h b/libc/stdio/_stdio.h
index 727e331d1..974327d82 100644
--- a/libc/stdio/_stdio.h
+++ b/libc/stdio/_stdio.h
@@ -297,11 +297,7 @@ static inline int __CLOSE(FILE *stream)
free((S)); } while (0)
-#ifdef __UCLIBC_HAS_LFS__
#define __STDIO_WHEN_LFS(E) E
-#else
-#define __STDIO_WHEN_LFS(E) ((void)0)
-#endif
/**********************************************************************/
/* The following return 0 on success. */
diff --git a/libc/stdio/fseeko.c b/libc/stdio/fseeko.c
index 16b0c043a..781032a53 100644
--- a/libc/stdio/fseeko.c
+++ b/libc/stdio/fseeko.c
@@ -18,7 +18,7 @@
int FSEEK(register FILE *stream, OFFSET_TYPE offset, int whence)
{
-#if defined(__UCLIBC_HAS_LFS__) && !defined(__DO_LARGEFILE)
+#if !defined(__DO_LARGEFILE)
return fseeko64(stream, offset, whence);
diff --git a/libc/stdio/ftello.c b/libc/stdio/ftello.c
index 219b6996a..f19735cb7 100644
--- a/libc/stdio/ftello.c
+++ b/libc/stdio/ftello.c
@@ -14,7 +14,7 @@
OFFSET_TYPE FTELL(register FILE *stream)
{
-#if defined(__UCLIBC_HAS_LFS__) && !defined(__DO_LARGEFILE)
+#if !defined(__DO_LARGEFILE)
__offmax_t pos = ftello64(stream);
diff --git a/libc/stdio/tmpfile.c b/libc/stdio/tmpfile.c
index 3654f9e3a..c00ae438b 100644
--- a/libc/stdio/tmpfile.c
+++ b/libc/stdio/tmpfile.c
@@ -48,6 +48,4 @@ FILE * tmpfile (void)
return f;
}
-#ifdef __UCLIBC_HAS_LFS__
strong_alias(tmpfile,tmpfile64)
-#endif