From 0eca075074ec5463cf9b5a0ebe52073886cb5b89 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 26 Aug 2003 18:09:43 +0000 Subject: 2003-08-26 Jeff Johnston * 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. --- newlib/libc/stdio64/tmpfile64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'newlib/libc/stdio64/tmpfile64.c') diff --git a/newlib/libc/stdio64/tmpfile64.c b/newlib/libc/stdio64/tmpfile64.c index 1f97c071c..98689631f 100644 --- a/newlib/libc/stdio64/tmpfile64.c +++ b/newlib/libc/stdio64/tmpfile64.c @@ -63,9 +63,9 @@ _DEFUN (_tmpfile64_r, (ptr), if ((f = _tmpnam_r (ptr, buf)) == NULL) return NULL; - fp = fopen64 (f, "wb+"); + fp = _fopen64_r (ptr, (const char *)f, "wb+"); e = ptr->_errno; - _CAST_VOID remove (f); + _CAST_VOID _remove_r (ptr, f); ptr->_errno = e; return fp; } -- cgit v1.2.3