Date: Sat, 17 Mar 2001 09:16:07 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Richard Ellingworth" Message-Id: <8011-Sat17Mar2001091606+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 CC: djgpp AT delorie DOT com In-reply-to: (ricell@globalnet.co.uk) Subject: Re: Getting disk free space on FAT32 partition References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Richard Ellingworth" > Newsgroups: comp.os.msdos.djgpp > Date: Fri, 16 Mar 2001 22:28:35 -0000 > > Has anyone succeeded in writing a function to get the disk free space from a > FAT32 drive? This has been done for the next version of DJGPP. Get the module statfs.c via anonymous CVS (http://www.delorie.com/djgpp/cvs.html), put it into your libc.a library (see section 21.4 of the DJGPP FAQ list for how to do this), and then rewrite your program to use statfs instead of getdfree. (statfs is much more portable, since it is available on Unix and GNU/Linux systems.) ALternatively, study the source of statfs and modify getdfree to use similar code.