From 4cf2c0e0cb47b03d1cc5a9fedb5d6a9f628cd91e Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 15 Jan 2001 10:58:19 +0000 Subject: [PATCH] * sysconf.cc (sysconf): return `getpagesize ()' on _SC_PAGESIZE request to avoid implementing the same twice. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/sysconf.cc | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 8de1b9628..673cd0ae7 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 15 11:56:00 2001 Corinna Vinschen + + * sysconf.cc (sysconf): return `getpagesize ()' on _SC_PAGESIZE + request to avoid implementing the same twice. + Sun Jan 14 14:07:50 2001 Christopher Faylor * syscalls.cc (_read): Use more lightweight method for determining if diff --git a/winsup/cygwin/sysconf.cc b/winsup/cygwin/sysconf.cc index 432c6a2ba..1a9424d03 100644 --- a/winsup/cygwin/sysconf.cc +++ b/winsup/cygwin/sysconf.cc @@ -36,11 +36,7 @@ sysconf (int in) we should return NOFILE or OPEN_MAX instead? */ return fdtab.size; case _SC_PAGESIZE: - { - SYSTEM_INFO b; - GetSystemInfo (&b); - return b.dwPageSize; - } + return getpagesize (); case _SC_CLK_TCK: return CLOCKS_PER_SEC; case _SC_JOB_CONTROL: