Mail Archives: djgpp/2000/10/02/03:30:46
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 -