This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: reentrant fclose
- From: Jeff Johnston <jjohnstn at redhat dot com>
- To: "Artem B. Bityuckiy" <abityuckiy at yandex dot ru>
- Cc: newlib at sources dot redhat dot com
- Date: Thu, 08 Apr 2004 19:39:20 -0400
- Subject: Re: reentrant fclose
- References: <406BD5B0.9060907@yandex.ru>
Patch checked in with a slight change for fcloseall which has changed design.
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.
Artem B. Bityuckiy wrote:
Hello.
I've added reentrant version of fclose (_fclose_r). Please, see attached
patches and commit if consider necessary.
fclose.c.patch - Add reentrant _fclose_r function. Update documentation.
fcloseall.c.patch, freopen.c.patch, freopen64.c.patch - Use reentrant
_fclose_r instead of fclose.
stdio.h.patch - Add _fclose_r prototype.
fopen.c.patch - Fix documentation typo.