This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to get mmap page size?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]