diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-07-17 07:35:16 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-07-17 07:35:16 +0000 |
commit | fc2843ca96e24d35606412bb142c7095471da7b2 (patch) | |
tree | 8e1f36b199aa039191796a50be790243fac9eed1 /winsup | |
parent | 5b429f26744bb7babfb7dd0075ebe6d865bfb069 (diff) | |
download | newlib-fc2843ca96e24d35606412bb142c7095471da7b2.zip newlib-fc2843ca96e24d35606412bb142c7095471da7b2.tar.gz newlib-fc2843ca96e24d35606412bb142c7095471da7b2.tar.bz2 |
* sysconf.cc (sysconf): Fix OPEN_MAX patch. Return page size on
_SC_PAGESIZE again.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/sysconf.cc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index ee5897b..c18ad14 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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 diff --git a/winsup/cygwin/sysconf.cc b/winsup/cygwin/sysconf.cc index 760208a..d94b606 100644 --- a/winsup/cygwin/sysconf.cc +++ b/winsup/cygwin/sysconf.cc @@ -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: |