OSDN Git Service

Changed fclose behavior when custom streams were enabled. Previously,
authorManuel Novoa III <mjn3@codepoet.org>
Sun, 25 Aug 2002 22:11:29 +0000 (22:11 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Sun, 25 Aug 2002 22:11:29 +0000 (22:11 -0000)
commit7ceb5c35f2a2a63d3bd14254b8cfd1493298d6ec
tree772f71448d27ebcc028da4f65b368d623119fee4
parent9a1eb39a6018cdf98de8518a9dd68c67098b6dcb
Changed fclose behavior when custom streams were enabled.  Previously,
the cookie pointer was set to NULL as a debugging aid.  However,
some of the perl 5.8 test rely on being able to close stderr and
still try writing to it.  So now, the cookie pointer and handler
function pointers are set to that it is a "normal" file with a
file descriptor of -1.

Note: The cookie pointer is reset to NULL if the FILE struct is
free'd by fclose.
libc/stdio/stdio.c