Mail Archives: djgpp-workers/1999/01/24/14:09:20
On Sun, 24 Jan 1999, Eli Zaretskii wrote:
> On Fri, 22 Jan 1999, Michael Callahan wrote:
>
> > (Note that this means that I do not support using mmap() to map the
> > contents of a file.)
>
> Please note that this means the limited version of mmap you are
> suggesting should be called by some other name, not mmap. Otherwise,
> packages that auto-configure themselves by trying to link in the mmap
> function will think that DJGPP supports it, and try to use it.
Hmm. There are real Unices that support mmap() only for device-special
files (where it was used to support mapping the framebuffer in the X
server), so such autoconfig scripts are likely to come to grief already.
This was actually pretty common in late 1980s Unices, IIRC.
For Coda's purposes it would be a lot nicer not to have to modify all the
call sites where mmap() is used to use a different name.
However, I don't feel strongly enough about this to object much if the
community feels otherwise.
Note again: using mmap requires you to use a different crt0.o. We have
set up djgpp so that this is an entirely separate -b machine option to the
gcc driver. So programs that autoconfigure using the default djgpp-gcc
command don't see mmap at all.
Michael
- Raw text -