delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/12/10:28:42

Date: Mon, 12 Jun 1995 09:37:25 -0400
From: kagel AT quasar DOT bloomberg DOT com
To: idr AT cs DOT pdx DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Mapping files to memory?
Reply-To: kagel AT ts1 DOT bloomberg DOT com

   Errors-To: postmaster AT ns1
   Xref: news-dnh.mv.net comp.os.msdos.djgpp:309
   Path: news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!spool.mu.edu!news.clark.edu!sun.lclark.edu!news.reed.edu!usenet.ee.pdx.edu!not-for-mail
   From: idr AT cs DOT pdx DOT edu (Dancing Fool)
   Newsgroups: comp.os.msdos.djgpp
   Date: 10 Jun 1995 22:46:24 -0700

   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? :-)

-- 
Art S. Kagel, kagel AT ts1 DOT bloomberg DOT com

Variety is the soul of pleasure.  --  Aphra Behn

- Raw text -


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