X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Sat, 23 Feb 2002 15:20:58 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Hugo Simon" Message-Id: <5567-Sat23Feb2002152057+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <000d01c1bc50$0ee85fc0$0265a8c0@tpc2> (hugo.simon@gmx.de) Subject: Re: How to obtain correct disk size References: <%Qvd8.5806$0y2 DOT 288632 AT typhoon DOT austin DOT rr DOT com> <200202222204 DOT g1MM4J623552 AT envy DOT delorie DOT com> <001101c1bbef$efac2a20$0265a8c0 AT tpc2> <2593-Sat23Feb2002101825+0200-eliz AT is DOT elta DOT co DOT il> <000d01c1bc50$0ee85fc0$0265a8c0 AT tpc2> 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: "Hugo Simon" > Date: Sat, 23 Feb 2002 10:54:11 +0100 > > > Is that a FAT32 disk? DJGPP v2.03 does not yet support FAT32-specific > > system calls. There's code in the CVS to support that, though. > Yes it is FAT32. But I cannot find the code you mentioned. Maybe it is > because I didn't know how to handle CVS. The front end I cannot download, > the FTP server does not respond. And in the web interface I find no search > function. You want the source of the function `statfs' (`getdfree' wasn't extended to handle FAT32, and probably never will, since it is documented to call a specific function of Int 21h, and that function doesn't support FAT32). So get from the CVS the file src/libc/compat/sys/vfs/statfs.c, compile it, and put it into your library instead of the existing one, like this: gcc -c -O2 statfs.c ar rvs c:/djgpp/libc.a statfs.o (this assumes your DJGPP installation is rooted at C:\DJGPP; if not, change the last command as appropriate). Thereafter, use the `statfs' function in your programs; see the docs of `statfs' for the details.