delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
Date: | Thu, 06 Jan 2005 06:48:49 +0200 |
From: | "Eli Zaretskii" <eliz AT gnu DOT org> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | djgpp AT delorie DOT com |
Message-ID: | <01c4f3ab$Blat.v2.2.2$28b62780@zahav.net.il> |
X-Mailer: | emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 |
In-reply-to: | <crhjls$v2b$1@blue.rahul.net> (message from Doug Kaufman on Wed, |
5 Jan 2005 20:45:48 +0000 (UTC)) | |
Subject: | Re: Problem with UNRAR |
References: | <Pine DOT GSO DOT 4 DOT 31L2A DOT 0501052037160 DOT 28985-100000 AT mail> <crhjls$v2b$1 AT blue DOT rahul DOT net> |
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: Doug Kaufman <dkaufman AT rahul DOT net> > Date: Wed, 5 Jan 2005 20:45:48 +0000 (UTC) > > +#ifdef __DJGPP__ > + { > + __dpmi_regs regs; > + memset(®s,0,sizeof(regs)); > + regs.h.ah=0x36; > + regs.h.dl=Drive; > + __dpmi_int (0x21, ®s); > + if (regs.x.ax==0xffff) > + return(1457664); > + Int64 FreeSize=regs.x.ax*regs.x.cx; > + FreeSize=FreeSize*regs.x.bx; > + return(FreeSize); > + } > +#else Why work so hard when DJGPP has the `statfs' function which will return the disk free space?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |