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" 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> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: (message from Doug Kaufman on Wed, 5 Jan 2005 20:45:48 +0000 (UTC)) Subject: Re: Problem with UNRAR References: 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: Doug Kaufman > 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?