aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio64/fseeko64.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-08-26 18:09:43 +0000
committerJeff Johnston <jjohnstn@redhat.com>2003-08-26 18:09:43 +0000
commit0eca075074ec5463cf9b5a0ebe52073886cb5b89 (patch)
treeb24e9e5543555223e6f2d941b045f107cd497d1b /newlib/libc/stdio64/fseeko64.c
parent1ce25e2add550674056f27ef33c4849f73ccb5a8 (diff)
downloadnewlib-0eca075074ec5463cf9b5a0ebe52073886cb5b89.zip
newlib-0eca075074ec5463cf9b5a0ebe52073886cb5b89.tar.gz
newlib-0eca075074ec5463cf9b5a0ebe52073886cb5b89.tar.bz2
2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h: Allow the io64 function prototypes for Cygwin when compiling newlib. * libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64 to expose the Cygwin struct __stat64 type. * libc/stdio64/fseeko64.c: Use _fstat64_r and pass a struct stat64 pointer. * libc/stdio64/tmpfile64.c(_tmpfile64_r): Call _fopen64_r.
Diffstat (limited to 'newlib/libc/stdio64/fseeko64.c')
-rw-r--r--newlib/libc/stdio64/fseeko64.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/newlib/libc/stdio64/fseeko64.c b/newlib/libc/stdio64/fseeko64.c
index 524aac3..3128830 100644
--- a/newlib/libc/stdio64/fseeko64.c
+++ b/newlib/libc/stdio64/fseeko64.c
@@ -108,8 +108,7 @@ _DEFUN (_fseeko64_r, (ptr, fp, offset, whence),
_fpos64_t target, curoff;
size_t n;
- /* FIXME: this should be stat64. */
- struct stat st;
+ struct stat64 st;
int havepos;
_flockfile(fp);
@@ -205,7 +204,7 @@ _DEFUN (_fseeko64_r, (ptr, fp, offset, whence),
{
if (seekfn != __sseek64
|| fp->_file < 0
- || _fstat_r (ptr, fp->_file, &st)
+ || _fstat64_r (ptr, fp->_file, &st)
|| (st.st_mode & S_IFMT) != S_IFREG)
{
fp->_flags |= __SNPT;