* syscalls.cc (getpagesize): Change condition for clarity.

(getsystempagesize): Ditto.
This commit is contained in:
Corinna Vinschen 2007-01-09 15:46:41 +00:00
parent a1c408a120
commit 1656b94637
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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;
}