delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/03/10:19:32

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
Date: Thu, 3 Jul 2003 10:19:42 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: mmap() and gcc precompiled headers
Message-ID: <20030703141942.GB25320@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3F034280 DOT 6070908 AT agilent DOT com> <20030703094728 DOT GC22232 AT cygbert DOT vinschen DOT de>
Mime-Version: 1.0
In-Reply-To: <20030703094728.GC22232@cygbert.vinschen.de>
User-Agent: Mutt/1.4.1i

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?

cgf

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