Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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/