This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Re: 1.3.2-1: mmap and MAP_PRIVATE|MAP_FIXED|MAP_ANON
On Tue, Sep 18, 2001 at 01:28:48PM +0200, Kandziora Jan wrote:
> >
> >> if ((buf2=mmap((void*)0x70000000,1, > >
> PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,0,0))==NULL)
> >
> ^^^^ Hmm!
> >$ man mmap [...]
> RETURN VALUE On success, mmap returns a pointer to the mapped area.
> On error, MAP_FAILED (-1) is returned, and errno is set appropriately...
>
> 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.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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/