1.3.2-1: mmap and MAP_PRIVATE|MAP_FIXED|MAP_ANON
Kandziora Jan
Jan.Kandziora@ts.siemens.de
Tue Sep 18 23:29:00 GMT 2001
>
> > 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/
More information about the Cygwin
mailing list