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 |
Message-ID: | <F536EC3453B2D411AD6100508BAF5F9901FAB3FE@bwga521a.ts.siemens.de> |
From: | Kandziora Jan <Jan DOT Kandziora AT ts DOT siemens DOT de> |
To: | "'Corinna Vinschen'" <cygwin AT cygwin DOT com> |
Subject: | Re: 1.3.2-1: mmap and MAP_PRIVATE|MAP_FIXED|MAP_ANON |
Date: | Wed, 19 Sep 2001 08:29:47 +0200 |
MIME-Version: | 1.0 |
X-Mailer: | Internet Mail Service (5.5.2653.19) |
> > > 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |