delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/11/29/03:23:42

Date: Thu, 29 Nov 2001 10:20:57 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Dennis Louie <dennis-louie AT att DOT net>
cc: Andrew Cottrell <acottrel AT ihug DOT com DOT au>, djgpp-workers AT delorie DOT com,
Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Subject: Re: statfs not returning correct cluster size - 7302h and GNU df don't work either
In-Reply-To: <002701c17889$185c9d60$0100a8c0@pentiumii>
Message-ID: <Pine.SUN.3.91.1011129102032.10998M-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 28 Nov 2001, Dennis Louie wrote:

> > > Could you send me mail when the statfs problem is fixed?
> >
> > Fixed--how?  AFAIU, `statfs' does on W2K the best job it could, given
> > the system calls implemented by W2K.  How can we fix that?
> 
> There must be a DOS function that can be made to return this information
> correctly.

If there is such a beast, we don't know about it, and neither does
RBIL.  I think it simply doesn't exist.

> Windows XP can determine the correct disk size and available
> space.

Windows doesn't use DOS calls.  It also quite deliberately doesn't let
DOS programs access Windows features that are available via the Win32
API calls.  Microsoft wants DOS programs to die, so it does everything
in their power to make them miserable.

> The current statfs code doesn't even try to use Functions 7302h or 7303h.

That's because, as far as we know, these functions aren't supported on
W2K and XP.  I thought we just demonstrated that fact one more time in
this thread.

> _osmajor is 5 for WinXP and the conditional only tries to execute those
> functions if it's between 7 and 10 (whatever Windows versions they
> correspond to).  Whoever wrote that code must have some information about
> INT21 functions that isn't widely known (yet)...

We wrote that code, and the information that 7302h and 7303h aren't
supported except on Windows 9X family is spelled out in RBIL.  Our
testing indicates that RBIL is right.

If you want statfs to be fixed on W2K and XP, bug Microsoft to provide
some API for that, or add support for the 73xx functions we use on
Windows 9X.  We cannot do anything if they actively block us from
accessing this information.

- Raw text -


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