aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/fseek.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2007-05-01 23:03:36 +0000
committerEric Blake <eblake@redhat.com>2007-05-01 23:03:36 +0000
commitb4f095585f1e139cba8d2e078c807e384b3e102d (patch)
treee7ee261d556586898030b9ac5252c6a2ab3d5c1d /newlib/libc/stdio/fseek.c
parent2babeb3d94cb8a507ca12b46252995b453600290 (diff)
downloadnewlib-b4f095585f1e139cba8d2e078c807e384b3e102d.zip
newlib-b4f095585f1e139cba8d2e078c807e384b3e102d.tar.gz
newlib-b4f095585f1e139cba8d2e078c807e384b3e102d.tar.bz2
* libc/stdio64/local64.h: Delete, move contents to...
* libc/stdio/local.h: ...here. * libc/stdio64/fdopen64.c: Update includes. * libc/stdio64/fopen64.c: Likewise. * libc/stdio64/freopen64.c: Likewise. * libc/stdio64/fseeko64.c: Likewise. * libc/stdio64/ftello64.c: Likewise. * libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout, and stderr with 64-bit offset. * libc/stdio/fseek.c (_fseek_r): Avoid compile warning. * libc/stdio/makebuf.c (__smakebuf_r): Likewise. * libc/stdio/mktemp.c (_gettemp): Likewise.
Diffstat (limited to 'newlib/libc/stdio/fseek.c')
-rw-r--r--newlib/libc/stdio/fseek.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/newlib/libc/stdio/fseek.c b/newlib/libc/stdio/fseek.c
index 9ba9fac..e1670e1 100644
--- a/newlib/libc/stdio/fseek.c
+++ b/newlib/libc/stdio/fseek.c
@@ -32,9 +32,9 @@ ANSI_SYNOPSIS
#include <stdio.h>
int fseek(FILE *<[fp]>, long <[offset]>, int <[whence]>)
int fseeko(FILE *<[fp]>, off_t <[offset]>, int <[whence]>)
- int _fseek_r(struct _reent *<[ptr]>, FILE *<[fp]>,
+ int _fseek_r(struct _reent *<[ptr]>, FILE *<[fp]>,
long <[offset]>, int <[whence]>)
- int _fseeko_r(struct _reent *<[ptr]>, FILE *<[fp]>,
+ int _fseeko_r(struct _reent *<[ptr]>, FILE *<[fp]>,
off_t <[offset]>, int <[whence]>)
TRAD_SYNOPSIS
@@ -126,7 +126,11 @@ _DEFUN(_fseek_r, (ptr, fp, offset, whence),
_fpos_t target;
_fpos_t curoff = 0;
size_t n;
+#ifdef __USE_INTERNAL_STAT64
+ struct stat64 st;
+#else
struct stat st;
+#endif
int havepos;
/* Make sure stdio is set up. */