This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Requesting the functions fcloseall() and _fcloseall_r() be exported by the Cygwin dll


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 <stdio.h>
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]