2004-04-08 Artem B. Bityuckiy <abitytsky@softminecorp.com>

* 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  <jjohnstn@redhat.com>

        * libc/stdio/fwalk.c (_fwalk_reent): New version of _fwalk
        to handle _r reentrant functions.
This commit is contained in:
Jeff Johnston
2004-04-08 22:26:50 +00:00
parent 4121d8cf68
commit 47dcaf565d
8 changed files with 93 additions and 7 deletions

View File

@ -96,7 +96,7 @@ _DEFUN (_freopen_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;
}