This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: 1.3.2-1: mmap and MAP_PRIVATE|MAP_FIXED|MAP_ANON
- To: "'Corinna Vinschen'" <cygwin at cygwin dot com>
- Subject: Re: 1.3.2-1: mmap and MAP_PRIVATE|MAP_FIXED|MAP_ANON
- From: Kandziora Jan <Jan dot Kandziora at ts dot siemens dot de>
- Date: Wed, 19 Sep 2001 08:29:47 +0200
>
> > You are right. But it does *not* return MAP_FAILED, it returns
0x60001000,
> > which is a valid address.
>
> Ok, I figured out what's going wrong. A fix will be in the next
> developers snapshot.
>
For all you who are interested: I was able to walk around this problem by
using a disk file for each area and mmap that file with
MAP_PRIVATE|MAP_FIXED, avoiding MAP_ANON. The disk file must be at least as
long as requested in the following mmap call, though; But that can be done
easily by creating, lseeking, writing and immediately unlinking it from
within the program.
Jan
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/