delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/12/08:06:15

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
Subject: Mapping files to memory?
Date: 10 Jun 1995 22:46:24 -0700
Lines: 11
Nntp-Posting-Host: zetar.cs.pdx.edu
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

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.

- Raw text -


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