delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/03/13:59:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Chris January" <chris AT atomice DOT net>
To: <cygwin AT cygwin DOT com>
Subject: RE: mmap() and gcc precompiled headers
Date: Thu, 3 Jul 2003 18:59:18 +0100
Message-ID: <ICEBIHGCEJIPLNMBNCMKKEFBCIAA.chris@atomice.net>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <20030703143010.GV1165@cygbert.vinschen.de>
Importance: Normal

> On Thu, Jul 03, 2003 at 10:19:42AM -0400, Christopher Faylor wrote:
> > On Thu, Jul 03, 2003 at 11:47:28AM +0200, Corinna Vinschen wrote:
> > >Do you mean something like this:
> > >
> > >  If addr is given, check if it's 64K aligned.  If not, align and
> > >  raise the memory requirement accordingly.  Call MapViewOfFileEx
> > >  with the aligned address.  If it works, return the addr given as
> > >  parameter, otherwise return MapViewOfFileEx(NULL).
> >
> > How about, instead, just use the address and if it fails and is not
> > MAP_FIXED, use MapViewOfFileEx without the address?
>
> Yep, that's the simple approach.  I dropped this suggestion from my
> original reply since it requires addr to be on a 64k boundary.
> Unfortunately I have no idea if the chance to succeed might be better
> or worse than using the more complex approach.

Just out of curiosity would a patch to support mmap on 4k boundaries be
useful/accepted?

Chris


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019