This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: reentrant fclose


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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]