* sysconf.cc (sysconf): Fix OPEN_MAX patch. Return page size on

_SC_PAGESIZE again.
This commit is contained in:
Corinna Vinschen 2003-07-17 07:35:16 +00:00
parent 5b429f2674
commit fc2843ca96
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-07-17 Corinna Vinschen <corinna@vinschen.de>
* sysconf.cc (sysconf): Fix OPEN_MAX patch. Return page size on
_SC_PAGESIZE again.
2003-07-14 Corinna Vinschen <corinna@vinschen.de>
* cygheap.h (class cygheap_user): Use INVALID_HANDLE_VALUE as invalid

View File

@ -33,14 +33,14 @@ sysconf (int in)
/* FIXME: what's the right value? _POSIX_ARG_MAX is only 4K */
return 1048576;
case _SC_OPEN_MAX:
return getdtablesize ();
case _SC_PAGESIZE:
{
long max = getdtablesize ();
if (max < OPEN_MAX)
max = OPEN_MAX;
return max;
}
case _SC_PAGESIZE:
return getpagesize ();
case _SC_CLK_TCK:
return CLOCKS_PER_SEC;
case _SC_JOB_CONTROL: