--- fcloseall.c	2004-03-24 18:54:13.000000000 +0300
+++ fcloseall_new.c	2004-04-01 11:59:44.000000000 +0400
@@ -73,7 +73,7 @@
   for (g = &ptr->__sglue; g != NULL; g = g->_next)
     for (fp = g->_iobs, n = g->_niobs; --n >= 0; fp++)
       if (fp->_flags != 0)
-        ret |= fclose (fp);
+        ret |= _fclose_r (ptr, fp);
   return ret;
 }
 
