Mail Archives: djgpp/1996/11/08/19:45:49
Wojciech Borkowski wrote:
>
> Hi All!
> I made C++ library that use IRIX(unix?) mmap funtion (and his family:
> munmap etc).
> I port it to DJGPP without this but it is not as effective as I
> expected. Have anybody a implementation of mmap for DJGPP?
> There is a head of man page:
>
It is possible to do it with DJGPP. You must use the DPMI system calls.
To get a description of them, look into DJ's web site and in dpmi.h.
I don't remember the function names by heart. You must only use dpmi 0.9
functions.
Note, though, that the mapping will be done out of your DS, therefore,
you will have to use farptrs to access it, or the fat-ds hack.
For an example, look at the source code for DOS/svgalib.
Hope this helps,
Mihai "the sailor"
- Raw text -