Date: Wed, 11 Oct 2000 08:48:56 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Wojciech Galazka cc: djgpp AT delorie DOT com Subject: Re: Support for files > 2 GB In-Reply-To: <8rve0q$l7k$1@info.nask.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Tue, 10 Oct 2000, Wojciech Galazka wrote: > >: Is there a way for DJGPP to support files larger than 2 GB? > > > >Yes. Get the latest CVS version from delorie.com. It's alpha code; > >you've been warned. > > > I got it but I cannot find the relevant code. How is actually reading from > such a biig file made? Is there any sort of interface to MSDOS calls ? The large file support requires a few small modifications in the flags passed to the DOS FileOpen call, and using a different function for statfs. The code changes are thus minimal and hard to spot. Note that this only works on FAT32 partitions, since DOS doesn't support files > 2GB on FAT16.