delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/26/11:35:23

Date: Tue, 26 Sep 2000 17:33:44 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Edmund Horner <ejrh AT paradise DOT net DOT nz>
cc: djgpp AT delorie DOT com
Subject: Re: C Library: mmap() function
In-Reply-To: <969980620.314295@shelley.paradise.net.nz>
Message-ID: <Pine.SUN.3.91.1000926172717.15724A-100000@is>
MIME-Version: 1.0
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

On Wed, 27 Sep 2000, Edmund Horner wrote:

> Can the mmap() function be implemented in the DJGPP libc?

Yes, but only for allocating memory and then only for some values of
the arguments.  For example, memory-mapped files cannot be supported,
and MAP_FIXED in the flags will not work (since the DPMI client has no 
control on the address where memory is allocated).

> If so, would it be a simple port from, say, the Linux glibc source, or would
> it (as I suspect) involve a lot of fiddling with DPMI?

I cannot imagine that a Linux source will be a good starting point,
since Linux uses a totally different memory organization and protection
methods.

- Raw text -


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