delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/24/18:21:05

X-Originating-IP: [200.42.6.246]
From: "Norberto Alfredo Bensa" <nbensa AT hotmail DOT com>
To: "DJGPP" <djgpp AT delorie DOT com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1001224083259 DOT 7747G-100000 AT is> <OE69fKRfcjcMzfoV1qd000015a1 AT hotmail DOT com> <924tsv$8i1$1 AT news DOT luth DOT se> <OE63OBktZVzjbamDx8400001780 AT hotmail DOT com> <jrtc4to2m596angm5u6rdatshci3v58cjr AT 4ax DOT com>
Subject: Re: getdfree on FAT32?
Date: Sun, 24 Dec 2000 20:19:22 -0300
Organization: nBens@ Computers
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Message-ID: <OE19268bxFIOmvHbp8200001bd6@hotmail.com>
X-OriginalArrivalTime: 24 Dec 2000 23:20:55.0690 (UTC) FILETIME=[2A682EA0:01C06E00]
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.

------=_NextPart_000_005B_01C06DE6.CD6F4120
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit


From: "Damian Yerrick" <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>

> On Sun, 24 Dec 2000 16:11:47 -0300, "Norberto Alfredo Bensa"
> <nbensa AT hotmail DOT com> wrote:
>
> >Is there any global variable or function which I could use to know if I'm
> >running under Windows or plain DOS?
>
> There is an interrupt to find this; look in Ralf Brown's Interrupt
> List.
> http://www.ctyme.com/rbrown.htm
>

I was using Ralf Brown's Interrupt List for a description of Int21/AX=7302
to see what's wrong. Thanks anyway.

Actually there's no need to know that. If Int21/AX=7303 fails, then I can
use Int21/AX=7302

Now I've been running some test using two systems and this is what I found:

Both system are running the same Windows version (4.10.1998)

As you can see, in both systems TEST.EXE reports 1 more cluster when running
on plain DOS, but system A is reporting 2 free clusters left than CHKDSK (?)

If you want to check this, the source code for TEST.EXE is attached
(zipped). Compile with "gcc -DTEST -o test.exe statfs.c"

(Please note, 'statfs.c' is a modified version of
%DJDIR%/src/libc/compat/sys/vfs/statfs.c from CVS)

Best regards,
Norberto

--------------System A (4096 byte per cluster)

DOS/CHKDSK
2012211 total clusters
322370 clusters free

DOS/TEST.EXE
2012212 total clusters
322368 clusters free

Windows/CHKDSK
2012211 total clusters
322370 clusters free

Windows/TEST.EXE
2012211 total clusters
322370 clusters free

--------------System B (8192 bytes per cluster)

DOS/CHKDSK
2058319 total clusters
703079 clusters free

DOS/TEST.EXE
2058320 total clustes
703079 clusters free

Windows/CHKDSK
2058319 total clusters
703012 clusters free

Windows/TEST.EXE
2058319 total clusters
703012 clusters free














------=_NextPart_000_005B_01C06DE6.CD6F4120
Content-Type: application/x-zip-compressed;
	name="test.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="test.zip"

UEsDBBQAAgAIAOmcmCmy12QOJAkAAOYbAAAIACQAc3RhdGZzLmMKACAAAAAAAAEAGAAA76pZ+m3A
AQD4nJpVbcABwJ2ZnXdtwAHFGWtv2zjyswv0P0xz2NTyOY7txH1l06KbR5FD2xRNenuLbeGjJcrm
RRJ9JOXYe9v/fpwh9bDipFn0HgGqyjOc4bw5Q+124EjOV0pMZwbaRwEMnj9/Dsd/gWOeSCV4FzTn
cHT+4Zez9296Fh5LBRE3TCQaOrsPH2xi8Ox7GTz9XgajP8LgTyILkzzi8GMiJuGuNvlE92Yv6wht
lMimDWA0T0UDNJV7w+Yq2WRGu8RMzY2aNnFcqUw2YHkmtIkawDjMTNKUcqV3F/HG7awUosk35alU
KwIiOIb+uspRQcGzSMS4SGTm4QNtmIk1tEOZaQPhjCnozJmZWTsblYcG/ILOJI8D+NfDB63xGE01
VnyqAR8HDx8AtCwziJRY8HGWpxOuKmgYKZmOQ5YkepxrHsEh9B02kdkUJokMr3QDGMbKermxUIvf
CljLCRr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Hbc+f1hd12Ar+4/nmheWrWoz3ecosUWgzhY1+ReivS/S5MywMpafw9Bh1FZN53KdY29ab7BqO+e
YSHHDdfdRfUs8K0Fqnwfgv1ym3tp6agG/aB2aNJuxcF5wUOZRX/45Fw7O9dOz9r5icNk/fws4mq9
g9rtwKlIEhDuBsDdzeSKF/dOkzzeeRmPJ3R9h3alzQ7WcM5RG3HxHTivm8W5t3VCkXANtyC9k6HK
mgpnVnNEVffPBUMtInftc/P6rL5kgEvenX96fzn+dHqxhqcLZ2J9ejF+9/rN2ZEr3FQMi3vWR4dA
t8zOjWsNgr/Io9qMwn31t/0Rj+Hy5OLS/dxw67/hmwR9AYCUWb+18Y2padj1nwDs++LXL1SQ7YbV
ZwEr+FZvy6m0/oEg1lbFg1pTjezgJZ40npB4Dr444uLU6ddJio8R7gPENrF0LWtQ9YrQpkDc+kgj
o6be9+8/6M+PX3zOthyqfLmUhvmZV7/ABCgxr4u75I1YahxoJizgLjdIMHoj2XpFBDZgVTKVIOSF
EJf9pcZkBmshat6rjwub3eyz8N9QSwECGQAUAAIACADpnJgpstdkDiQJAADmGwAACAAAAAAAAAAA
ACAAAAAAAAAAc3RhdGZzLmNQSwUGAAAAAAEAAQA2AAAAbgkAAAAA

------=_NextPart_000_005B_01C06DE6.CD6F4120--

- Raw text -


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