These patches make it so that 'test-dup2' again passes on current cygwin, while waiting for a new release of cygwin that fixes the off-by-one crash and non-compliance of resource soft limits.
Eric Blake (2): getdtablesize: work around cygwin issue dup2, dup3: work around another cygwin crasher ChangeLog | 21 ++++++++++++++++++++ doc/glibc-functions/dup3.texi | 4 +++ doc/glibc-functions/getdtablesize.texi | 5 ++++ doc/posix-functions/dup2.texi | 4 +++ lib/dup2.c | 4 +++ lib/dup3.c | 4 +++ lib/getdtablesize.c | 33 ++++++++++++++++++++++++++----- lib/unistd.in.h | 13 ++++++++++- m4/dup2.m4 | 7 ++++- m4/dup3.m4 | 4 +- m4/getdtablesize.m4 | 31 ++++++++++++++++++++++++++++- m4/unistd_h.m4 | 3 +- modules/getdtablesize | 5 ++- modules/unistd | 1 + tests/test-dup2.c | 7 ++++++ tests/test-dup3.c | 7 ++++++ tests/test-getdtablesize.c | 2 + 17 files changed, 138 insertions(+), 17 deletions(-)