Date: Fri, 27 Jun 2003 20:18:10 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <3405-Fri27Jun2003201809+0300-eliz@elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (alexvn@bigfoot.com) Subject: Re: `mmap' undeclared References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Alex Vinokur" > Newsgroups: comp.os.msdos.djgpp > Date: Thu, 26 Jun 2003 07:28:05 +0300 > > zzz.cpp: In function `void read_file(char*)': > zzz.cpp:17: `mmap' undeclared (first use this function) > zzz.cpp:17: (Each undeclared identifier is reported only once for each function > it appears in.) > zzz.cpp:20: `MAP_FAILED' undeclared (first use this function) > zzz.cpp:23: `munmap' undeclared (first use this function) > > --------- Compilation : END ----------- > > > Note. Cygwin/gcc has no problem with compilation of that code. > =========================================== > Windows 2000 > CYGWIN_NT-5.0 1.3.22(0.78/3/2) > GNU gcc version 3.2 20020927 (prerelease) > =========================================== > > > What is wrong? Nothing. DJGPP simply doesn't support `mmap', and it cannot do so, since the DPMI environment doesn't have a way to control where in the address space do we get allocated memory blocks. Cygwin doesn't work thru DPMI, so it doesn't have that limitation.