diff options
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/syscalls.cc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 1456b9520..27d0caefe 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2007-01-09 Corinna Vinschen <corinna@vinschen.de> + * syscalls.cc (getpagesize): Change condition for clarity. + (getsystempagesize): Ditto. + +2007-01-09 Corinna Vinschen <corinna@vinschen.de> + * mmap.cc: Do bookkeeping in 4K pages, rather than in 64K chunks. 2007-01-07 Corinna Vinschen <corinna@vinschen.de> diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index addb11ea0..72f9e5b0f 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1562,7 +1562,7 @@ getdtablesize () extern "C" size_t getpagesize () { - if (!system_info.dwPageSize) + if (!system_info.dwAllocationGranularity) GetSystemInfo (&system_info); return (size_t) system_info.dwAllocationGranularity; } @@ -1570,7 +1570,7 @@ getpagesize () size_t getsystempagesize () { - if (!system_info.dwAllocationGranularity) + if (!system_info.dwPageSize) GetSystemInfo (&system_info); return (size_t) system_info.dwPageSize; } |