www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/13/06:16:39

Date: Tue, 13 Jun 1995 10:56:06 CET
From: kwasik AT lodz2 DOT p DOT lodz DOT pl
To: DJGPP AT SUN DOT SOE DOT CLARKSON DOT EDU
Subject: Re: Mapping files to memory?

From:	MX%"kagel AT ts1 DOT bloomberg DOT com"
>   Is there a somewhat painless way in djgpp to map a file directly to
>   memory?  So that a person could do something like this:
>
>	   ptr = fmap( "bigfile.dat", "r" );
>	   Decompress( ptr, bigDestBuffer );
>	   funmap( ptr );
>
>  I know that some Unix flavors have something similar, but I'm not sure
>   if it's part of the OS or the compiler.
>
>Some UNIX flavorsdo, noteably System V.4, do offer a memory mapped I/O
>facility.  However, this is not a compiler feature but an OS feature.  Such a
>facility is not available in DJGPP, yet.  Want to write it? :-)


	I'm not sure I understand well what the first sender wanted to
do but what about streams ?


					Balzack

- Raw text -


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