From: Jose Manuel Lopez-Cepero Newsgroups: comp.os.msdos.djgpp Subject: Re: A way to find how many files are currently 'open'? Date: Thu, 20 Mar 1997 22:50:16 +0100 Organization: Unisource Espana NEWS SERVER Lines: 17 Message-ID: <3331B118.277A@ctv.es> References: <332C8C47 DOT 59EF AT osha DOT igs DOT net> Reply-To: sigma AT ctv DOT es NNTP-Posting-Host: macarena.ctv.es Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp hi! Delong wrote: > I was wonreing if there is a function (either from libc or an interrupt) > that will return the number of files currently open ... Well, I don't use open() (fopen() instead), so I'm not sure of what I tell, but you should check the _fwalk() function on the libc ref. As far as I can recall this does a walk on every opened file calling a routine, you can make a function to increment a counter, and that would be it :-) Bay _* \ |/_|\/||\ sigma AT ctv DOT es _\|\/| ||_\ (formerly Sigmatech) Jerez / Cadiz / Spain