* sysconf.cc (sysconf): return `getpagesize ()' on _SC_PAGESIZE
request to avoid implementing the same twice.
This commit is contained in:
parent
8d1c033908
commit
4cf2c0e0cb
|
@ -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>
|
Sun Jan 14 14:07:50 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* syscalls.cc (_read): Use more lightweight method for determining if
|
* syscalls.cc (_read): Use more lightweight method for determining if
|
||||||
|
|
|
@ -36,11 +36,7 @@ sysconf (int in)
|
||||||
we should return NOFILE or OPEN_MAX instead? */
|
we should return NOFILE or OPEN_MAX instead? */
|
||||||
return fdtab.size;
|
return fdtab.size;
|
||||||
case _SC_PAGESIZE:
|
case _SC_PAGESIZE:
|
||||||
{
|
return getpagesize ();
|
||||||
SYSTEM_INFO b;
|
|
||||||
GetSystemInfo (&b);
|
|
||||||
return b.dwPageSize;
|
|
||||||
}
|
|
||||||
case _SC_CLK_TCK:
|
case _SC_CLK_TCK:
|
||||||
return CLOCKS_PER_SEC;
|
return CLOCKS_PER_SEC;
|
||||||
case _SC_JOB_CONTROL:
|
case _SC_JOB_CONTROL:
|
||||||
|
|
Loading…
Reference in New Issue