* syscalls.cc (getpagesize): Change condition for clarity.
(getsystempagesize): Ditto.
This commit is contained in:
parent
a1c408a120
commit
1656b94637
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue