This is the mail archive of the 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: ksh on cygwin

----- Original Message -----
From: "Corinna Vinschen" <>
> > - 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
> 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?


Unsubscribe info:
Bug reporting:

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