Date: Tue, 26 Sep 2000 17:33:44 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Edmund Horner cc: djgpp AT delorie DOT com Subject: Re: C Library: mmap() function In-Reply-To: <969980620.314295@shelley.paradise.net.nz> 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 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.