www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/01/17/12:23:13

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sat, 17 Jan 2009 18:22:49 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: how to get mmap page size?
Message-ID: <20090117172249.GD400@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <ee2e06e90901160845o35da940em9ef9cbadacdec47a AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <ee2e06e90901160845o35da940em9ef9cbadacdec47a@mail.gmail.com>
User-Agent: Mutt/1.5.17 (2007-11-01)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Jan 16 16:45, Jay Foad wrote:
> Corinna Vinschen wrote:
> 
> > Right.  The reason is that mmap started to map memory top down at one
> > point to fix a problem with Windows Vista.  The mechanism to align
> > the map always to 64K is still in Cygwin, but it currently doesn't
> > work for files.  I'll have a look into fixing that for Cygwin 1.7.
> 
> OK, thanks. In the mean time I guess I'll just use a hard coded value
> of 4K for the page size in my application.

I fixed that in CVS.  Actually it turned out that it never quite worked
as intended due to a erronous condition.  Please note that this can't
work under WOW64 since WOW64 does not support the AT_ROUND_TO_PAGE flag
to NtMapViewOfSection for some reason.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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