Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20020723131839.92905.qmail@web21006.mail.yahoo.com> Date: Tue, 23 Jul 2002 06:18:39 -0700 (PDT) From: Nicholas Wourms Subject: Requesting the functions fcloseall() and _fcloseall_r() be exported by the Cygwin dll To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hi, I noticed that newlib has finally added fcloseall() and _fcloseall_r() to its standard library. I propose that the Cygwin dll export the functions. There are programs out there that need the capabilities of these functions as well as those which which could use the capabilities these functions provide in post-error handling cleanup of streams. Here is a rundown on the functions: fcloseall - function to close all open streams _fcloseall_r - reentrancy function to close all open streams #include int _EXFUN(fcloseall, (_VOID)); int _EXFUN(_fcloseall_r, (struct _reent *)); The fcloseall function dissociates all open streams from its underlying file or set of functions. Any buffered output data is written first, using fflush(3). Note that the standard streams (stdin, stdout and stderr) are also closed. CONFORMING TO The fcloseall function is a libc extension. It can be found in Linux, Novell, IBM, Microsoft, and Watcom c-libraries as well. Comments: This is a very useful function for cleaning up in extreme error conditions. Also, since it is found in many libraries, it makes it easier to port software from other platforms. Programs which would benefit: POV-Ray PERL So I hope this provides the information necessary to considier my request. Cheers, Nicholas __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/