[PATCH 0/4] getdtablesize, OPEN_MAX, etc.

Ken Brown kbrown@cornell.edu
Fri Jan 29 19:24:17 GMT 2021

This patchset is an extension of the patch submitted here:


That patch is included as the first patch in this set.  The change to
OPEN_MAX still needs testing to see if it has too much impact on the
performance of tcsh.

I've make a first attempt to implement the suggestion of adding a new
<cygwin/limits.h> header.  At this writing I'm not completely sure
that I fully understand the purpose of that.  My choice of which
macros to define in it might need to be changed.

Ken Brown (4):
  Cygwin: getdtablesize: always return OPEN_MAX_MAX
  Cygwin: sysconf, getrlimit: don't call getdtablesize
  Cygwin: remove the OPEN_MAX_MAX macro
  Cygwin: include/cygwin/limits.h: new header

 winsup/cygwin/dtable.cc               |  8 +--
 winsup/cygwin/dtable.h                |  2 -
 winsup/cygwin/fcntl.cc                |  2 +-
 winsup/cygwin/include/cygwin/limits.h | 65 ++++++++++++++++++++
 winsup/cygwin/include/limits.h        | 85 +++++++++++----------------
 winsup/cygwin/resource.cc             |  5 +-
 winsup/cygwin/syscalls.cc             |  8 +--
 winsup/cygwin/sysconf.cc              | 11 +---
 8 files changed, 111 insertions(+), 75 deletions(-)
 create mode 100644 winsup/cygwin/include/cygwin/limits.h


More information about the Cygwin-patches mailing list