diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-01-15 10:58:19 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-01-15 10:58:19 +0000 |
commit | 4cf2c0e0cb47b03d1cc5a9fedb5d6a9f628cd91e (patch) | |
tree | f080746cbdd8f16598590619983f0a4fbd237b22 /winsup/cygwin/sysconf.cc | |
parent | 8d1c033908662c697c44455b78ef2146705c5912 (diff) | |
download | newlib-4cf2c0e0cb47b03d1cc5a9fedb5d6a9f628cd91e.zip newlib-4cf2c0e0cb47b03d1cc5a9fedb5d6a9f628cd91e.tar.gz newlib-4cf2c0e0cb47b03d1cc5a9fedb5d6a9f628cd91e.tar.bz2 |
* sysconf.cc (sysconf): return `getpagesize ()' on _SC_PAGESIZE
request to avoid implementing the same twice.
Diffstat (limited to 'winsup/cygwin/sysconf.cc')
-rw-r--r-- | winsup/cygwin/sysconf.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/winsup/cygwin/sysconf.cc b/winsup/cygwin/sysconf.cc index 432c6a2..1a9424d 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: |