1 --- fclose.c.orig 2009-02-15 03:11:22.000000000 -0800
2 +++ fclose.c 2009-02-15 19:01:59.000000000 -0800
3 @@ -53,6 +53,13 @@ fclose(FILE *fp)
14 if (fp->_flags == 0) { /* not open! */
17 @@ -69,7 +76,7 @@ fclose(FILE *fp)
20 fp->_r = fp->_w = 0; /* Mess up if reaccessed. */
21 - fp->_flags = 0; /* Release this FILE for reuse. */
22 + __sfprelease(fp); /* Release this FILE for reuse. */