delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/17/02:18:50

Date: Sat, 17 Mar 2001 09:16:07 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Richard Ellingworth" <ricell AT globalnet DOT co DOT uk>
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: <tb54neenrt5p27@xo.supernews.co.uk> (ricell@globalnet.co.uk)
Subject: Re: Getting disk free space on FAT32 partition
References: <tb54neenrt5p27 AT xo DOT supernews DOT co DOT uk>
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

> From: "Richard Ellingworth" <ricell AT globalnet DOT co DOT uk>
> 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.

- Raw text -


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