From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: C Library: mmap() function Date: 2 Oct 2000 11:46:38 GMT Organization: Aachen University of Technology (RWTH) Lines: 32 Message-ID: <8r9siu$f18$1@nets3.rz.RWTH-Aachen.DE> References: <969980620 DOT 314295 AT shelley DOT paradise DOT net DOT nz> <8qqfpg$f04$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <8r9cvs$a00$13$1 AT news DOT t-online DOT com> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 970487198 15400 137.226.32.75 (2 Oct 2000 11:46:38 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 2 Oct 2000 11:46:38 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Peter Remmers wrote: > Hans-Bernhard Broeker schrieb ... >> Edmund Horner wrote: >> > Can the mmap() function be implemented in the DJGPP libc? [...] > 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? Possible: yes. But it wouldn't gain us a thing, compared to direct access to the framebuffer via the farptr functions or nearptr mode. We'ld have to build a whole tower of things on top of each other (framebuffer access via farptr or nearptr, plus an FSEXT, plus a mmap() imitation) in order to simulate portability where none really exists, not even among different flavours of Unix. Stuff like graphics hardware access *is*, unvariably, system-dependent, so there almost no point at all in trying to use 'portable' features to implement it. We'ld be adding new problems, instead of solving the existing ones. That's why X11 is so popular on Unix boxes: you don't have to care how that X server accesses the graphics hardware, at all. Your app talks X11, and that's it. Let the X11 implementor (or, in the context of DJGPP: the makers of Allegro and GRX) deal with the gory details. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.