From 47dcaf565d2d1001f7644e4f619ffc06fe753f1d Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 8 Apr 2004 22:26:50 +0000 Subject: 2004-04-08 Artem B. Bityuckiy * libc/stdio/fclose.c (_fclose_r): New function. * libc/stdio/freopen.c (_freopen_r): Call _fclose_r. * libc/stdio/fcloseall.c (_fcloseall_r): Call _fwalk_reent. * libc/stdio64/freopen64.c (_freopen64_r): Use _fclose_r. * libc/include/stdio.h (_fclose_r): New prototype. * libc/stdio/fopen.c: Fix typo in comment. 2004-04-08 Jeff Johnston * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk to handle _r reentrant functions. --- newlib/libc/stdio64/freopen64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/stdio64/freopen64.c') diff --git a/newlib/libc/stdio64/freopen64.c b/newlib/libc/stdio64/freopen64.c index c28cbeee2..42fe6fb22 100644 --- a/newlib/libc/stdio64/freopen64.c +++ b/newlib/libc/stdio64/freopen64.c @@ -98,7 +98,7 @@ _DEFUN (_freopen64_r, (ptr, file, mode, fp), if ((flags = __sflags (ptr, mode, &oflags)) == 0) { _funlockfile(fp); - (void) fclose (fp); + (void) _fclose_r (ptr, fp); __sfp_lock_release (); return NULL; } -- cgit v1.2.3