From: Mihai Moise Newsgroups: comp.os.msdos.djgpp Subject: Re: mmap function Date: Wed, 06 Nov 1996 12:26:15 -0500 Organization: Universite Laval Lines: 24 Message-ID: <3280CA37.41C67EA6@ift.ulaval.ca> References: <3280A426 DOT 41C6 AT ulmus DOT bot DOT astrouw DOT edu DOT pl> NNTP-Posting-Host: britten.ift.ulaval.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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"