www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/24/01:36:57

Date: Sun, 24 Dec 2000 08:35:16 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Norberto Alfredo Bensa <nbensa AT hotmail DOT com>
cc: DJGPP <djgpp AT delorie DOT com>
Subject: Re: getdfree on FAT32?
In-Reply-To: <OE664MoSn03t3Z4d5ht00001619@hotmail.com>
Message-ID: <Pine.SUN.3.91.1001224083259.7747G-100000@is>
MIME-Version: 1.0
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

On Sat, 23 Dec 2000, Norberto Alfredo Bensa wrote:

>     struct statfs fs;
>     statfs ("", &fs);
> 
>     free = fs.f_bfree * fs.f_bsize;
> 
> reports 5,905,580,032 bytes free, while Windows says 5,924,487,168. What is
> wrong here?

Probably, Windows itself.  Is the Windows swap file located on this 
volume?  If so, what's its size?

Also, what happens if you run the same program on the same machine, but 
in plain DOS mode (i.e., boot to command prompt only)?

- Raw text -


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