]> sourceware.org Git - newlib-cygwin.git/commitdiff
* sysconf.cc (sysconf): return `getpagesize ()' on _SC_PAGESIZE
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 15 Jan 2001 10:58:19 +0000 (10:58 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 15 Jan 2001 10:58:19 +0000 (10:58 +0000)
        request to avoid implementing the same twice.

winsup/cygwin/ChangeLog
winsup/cygwin/sysconf.cc

index 8de1b9628a40ba7c5211838942a41bb3a15ee29d..673cd0ae7ab0a680ddebf3aa561ed003c44297b5 100644 (file)
@@ -1,3 +1,8 @@
+Mon Jan 15 11:56:00 2001  Corinna Vinschen <corinna@vinschen.de>
+
+       * sysconf.cc (sysconf): return `getpagesize ()' on _SC_PAGESIZE
+       request to avoid implementing the same twice.
+
 Sun Jan 14 14:07:50 2001  Christopher Faylor <cgf@cygnus.com>
 
        * syscalls.cc (_read): Use more lightweight method for determining if
index 432c6a2ba20f11087dda03795d07a5967aacfa05..1a9424d034baf9802e8d11710c8a9659f0088e99 100644 (file)
@@ -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:
This page took 0.028218 seconds and 5 git commands to generate.