This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: ksh on cygwin
----- Original Message -----
From: "Corinna Vinschen" <cygwin@cygwin.com>
> > - getpagesize() should return a value compatible with mmap(), that
is dwAllocGranularity (65536) instead of dwPageSize (1024).
>
> We discussed that months ago. I think we're not going to change that
> (it's 4096, not 1024, btw.). It will result in dubious problems
> when a process mmaps a file. For instance, the latest gcc expects to
> be able to read over the end of an mmaped file if the size is not a
> multiple of getpagesize(). Now think of a file which is
coincidentally
> exactly 1 page long...
I'm not sure what you are implying. unless getpagesize returns 1, the
behaviour for gcc will be consistent for all larger sizes. If it's 4k,
then a file that is 4k will behave the same way as a 64K file if the
pagesize returned is 64k.
You seem to be implying that something bad happens when the file size ==
the returned page size.
What is that bad thing?
Rob
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/