cvs commit: src/lib/libc/stdio fopen.3 freopen.c
Hiten Pandya
hmp at crater.dragonflybsd.org
Mon Jun 7 17:45:38 PDT 2004
hmp 2004/06/07 17:45:01 PDT
DragonFly src repository
Modified files:
lib/libc/stdio fopen.3 freopen.c
Log:
C99 update: freopen(3) with NULL 'path' argument so that it opens the
same file with a different mode.
At the moment, we just recycle the old file descriptor instead of storing
it somewhere and using that to reopen the file, as the standard seems to
require. Strictly conforming C99 applications would probably not be able
to tell the difference but POSIX ones can.
While I am there, update the manual page about the new functionality and
correct nearby mdoc(7) markup errors.
Original-work-by: Tim J. Robbins <tjr at xxxxxxxxxxx>
Additional-work-by: Hiten Pandya <hmp at xxxxxxxxxxxxx>
Revision Changes Path
1.3 +42 -8 src/lib/libc/stdio/fopen.3
1.4 +57 -1 src/lib/libc/stdio/freopen.c
http://www.dragonflybsd.org/cvsweb/src/lib/libc/stdio/fopen.3.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/lib/libc/stdio/freopen.c.diff?r1=1.3&r2=1.4&f=u
More information about the Commits
mailing list