This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 1.3.2-1: mmap and MAP_PRIVATE|MAP_FIXED|MAP_ANON


>
> > 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]