From fc2843ca96e24d35606412bb142c7095471da7b2 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 17 Jul 2003 07:35:16 +0000 Subject: * sysconf.cc (sysconf): Fix OPEN_MAX patch. Return page size on _SC_PAGESIZE again. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/sysconf.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'winsup') 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 + + * sysconf.cc (sysconf): Fix OPEN_MAX patch. Return page size on + _SC_PAGESIZE again. + 2003-07-14 Corinna Vinschen * 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: -- cgit v1.1