delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/02/03:30:46

From: "Peter Remmers" <Peter DOT Remmers AT t-online DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C Library: mmap() function
Date: Mon, 2 Oct 2000 09:23:15 +0200
Organization: T-Online
Lines: 28
Message-ID: <8r9cvs$a00$13$1@news.t-online.com>
References: <969980620 DOT 314295 AT shelley DOT paradise DOT net DOT nz> <8qqfpg$f04$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>
Mime-Version: 1.0
X-Trace: news.t-online.com 970471228 13 10240 320094726121-0001 001002 07:20:28
X-Complaints-To: abuse AT t-online DOT de
X-Sender: 320094726121-0001 AT t-dialin DOT net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> schrieb ...
> Edmund Horner <ejrh AT paradise DOT net DOT nz> wrote:
> > Can the mmap() function be implemented in the DJGPP libc?
>
> mmap(), originally, is not a libc feature, but provided by the system.
> DPMI doesn't provide this feature, AFAIK, so we'ld have to simulate
> it.  The problem with such a simulation is that it would lose all the
> positive effects of mmap(), compared to straight-forward file I/O,
> which originally made it a good idea on Unix.  We have no alternative
> to just doing the file I/O, in order to emulate mmap(), killing any
> advantage it may have.

Wouldn't it be possible to write a filesystem extension for
say "/dev/fb0" which sits on VBE2.0, and then have a mmap() for getting
a pointer to the framebuffer?

I don't know exactly how this could be done. I think you would
HAVE to use the nearpointer hack for this.

BTA, a "normal" VESA library with its own API would do the same, right?

Anyway, just a thought...

Peter



- Raw text -


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