delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Tue, 18 Sep 2001 18:03:07 +0200 |
From: | Corinna Vinschen <cygwin AT cygwin DOT com> |
To: | "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com> |
Subject: | Re: Re: 1.3.2-1: mmap and MAP_PRIVATE|MAP_FIXED|MAP_ANON |
Message-ID: | <20010918180307.F28304@cygbert.vinschen.de> |
Mail-Followup-To: | "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com> |
References: | <F536EC3453B2D411AD6100508BAF5F9901FAB3FD AT bwga521a DOT ts DOT siemens DOT de> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.2.5i |
In-Reply-To: | <F536EC3453B2D411AD6100508BAF5F9901FAB3FD@bwga521a.ts.siemens.de>; from Jan.Kandziora@ts.siemens.de on Tue, Sep 18, 2001 at 01:28:48PM +0200 |
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 AT cygwin DOT 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |