newlib-cygwin/winsup
Ken Brown 3d256e22e2 Cygwin: getdtablesize: always return OPEN_MAX_MAX
According to the Linux man page for getdtablesize(3), the latter is
supposed to return "the maximum number of files a process can have
open, one more than the largest possible value for a file descriptor."
The constant OPEN_MAX_MAX is the only limit enforced by Cygwin, so we
now return that.

Previously getdtablesize returned the current size of cygheap->fdtab,
Cygwin's internal file descriptor table.  But this is a dynamically
growing table, and its current size does not reflect an actual limit
on the number of open files.

With this change, gnulib now reports that getdtablesize and
fcntl(F_DUPFD) work on Cygwin.  Packages like GNU tar that use the
corresponding gnulib modules will no longer use gnulib replacements on
Cygwin.
2021-02-01 09:55:07 -05:00
..
CVSChangeLogs.old winsup: Move all old CVS Changelogs into CVSChangeLogs.old dir 2016-03-19 13:59:52 +01:00
cygserver Cygwin: Remove recursive configure 2020-11-20 15:56:11 +00:00
cygwin Cygwin: getdtablesize: always return OPEN_MAX_MAX 2021-02-01 09:55:07 -05:00
doc winsup/doc/Makefile.in: create man5 dir and install proc.5 2020-12-04 12:40:58 +01:00
testsuite Cygwin: testsuite: libltp: fix warnings showing up with -Wall 2020-12-02 14:12:56 +01:00
utils Cygwin: Fix remaining warnings building path testsuite 2020-12-02 15:31:58 +00:00
CONTRIBUTORS Cygwin: Add Ben Wijen to list of contributors 2021-01-18 12:01:19 +01:00
COPYING
COPYING.LIB Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout option 2016-06-23 10:09:17 +02:00
CYGWIN_LICENSE Clarify source file license in CYGWIN_LICENSE 2016-06-23 21:52:12 +02:00
Makefile.common Cygwin: Remove nostdlib Makefile variable 2020-10-21 17:11:02 +01:00
Makefile.in Cygwin: Remove recursive configure 2020-11-20 15:56:11 +00:00
README Fix typo and wrong URL in winsup/README 2016-05-24 10:25:18 +02:00
acinclude.m4 Cygwin: Remove recursive configure 2020-11-20 15:56:11 +00:00
aclocal.m4
autogen.sh Cygwin: Remove surplus autoconf auxiliary files 2020-11-20 15:56:21 +00:00
configure Cygwin: Remove recursive configure 2020-11-20 15:56:11 +00:00
configure.ac Cygwin: Remove recursive configure 2020-11-20 15:56:11 +00:00

README

THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESSED OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Cygwin documentation is available on the net at https://cygwin.com
You might especially be interested in

https://cygwin.com/faq/faq.html#faq.programming.building-cygwin