Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-08-16 18:29:21 +0400
committerCorinna Vinschen <corinna@vinschen.de>2001-08-16 18:29:21 +0400
commit1457739a6335f150e6ca015fae725838150f0bf9 (patch)
treeea7f0155d641389b41a104b0ec035cbf8cdaab4f /winsup/cygwin/sysconf.cc
parent3171175e90d908fd5be0da43af7aa427701d45b6 (diff)
* resource.cc (getrlimit): Return getdtablesize () as current limit
on RLIMIT_NOFILE. * syscalls.cc (getdtablesize): Return OPEN_MAX if current dtable size is less than OPEN_MAX, the current dtable size otherwise. * sysconf.cc (sysconf): Return getdtablesize () on _SC_OPEN_MAX.
Diffstat (limited to 'winsup/cygwin/sysconf.cc')
-rw-r--r--winsup/cygwin/sysconf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/sysconf.cc b/winsup/cygwin/sysconf.cc
index 5c930fb22..5ffb03789 100644
--- a/winsup/cygwin/sysconf.cc
+++ b/winsup/cygwin/sysconf.cc
@@ -33,7 +33,7 @@ sysconf (int in)
/* FIXME: what's the right value? _POSIX_ARG_MAX is only 4K */
return 1048576;
case _SC_OPEN_MAX:
- return OPEN_MAX;
+ return getdtablesize ();
case _SC_PAGESIZE:
return getpagesize ();
case _SC_CLK_TCK: