delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/23/09:18:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <nwourms AT yahoo DOT com>
Subject: Requesting the functions fcloseall() and _fcloseall_r() be exported by the Cygwin dll
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019