From b4f095585f1e139cba8d2e078c807e384b3e102d Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 1 May 2007 23:03:36 +0000 Subject: * 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. --- newlib/libc/stdio64/fopen64.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'newlib/libc/stdio64/fopen64.c') diff --git a/newlib/libc/stdio64/fopen64.c b/newlib/libc/stdio64/fopen64.c index 61c4e4f45..aa6775116 100644 --- a/newlib/libc/stdio64/fopen64.c +++ b/newlib/libc/stdio64/fopen64.c @@ -27,7 +27,7 @@ INDEX ANSI_SYNOPSIS #include FILE *fopen64(const char *<[file]>, const char *<[mode]>); - FILE *_fopen64_r(void *<[reent]>, + FILE *_fopen64_r(void *<[reent]>, const char *<[file]>, const char *<[mode]>); TRAD_SYNOPSIS @@ -66,7 +66,7 @@ static char sccsid[] = "%W% (Berkeley) %G%"; #include #include -#include "local64.h" +#include "local.h" #ifdef __CYGWIN__ #include #endif @@ -91,12 +91,12 @@ _DEFUN (_fopen64_r, (ptr, file, mode), if ((f = _open64_r (ptr, file, oflags, 0666)) < 0) { - __sfp_lock_acquire (); + __sfp_lock_acquire (); fp->_flags = 0; /* release */ #ifndef __SINGLE_THREAD__ __lock_close_recursive (fp->_lock); #endif - __sfp_lock_release (); + __sfp_lock_release (); return NULL; } -- cgit v1.2.3