* doc/glibc-functions/dup3.texi: Mention NetBSD bug fixed by the Gnulib
implementation after the previous commit.
* modules/dup3-tests (Depends-on): Remove test-xfail.
(Makefile.am): Don't expect test-dup3 to fail on NetBSD.
2024-05-18 Collin Funk <collin.funk1@gmail.com>
+ dup3: Update documentation and expected test results.
+ * doc/glibc-functions/dup3.texi: Mention NetBSD bug fixed by the Gnulib
+ implementation after the previous commit.
+ * modules/dup3-tests (Depends-on): Remove test-xfail.
+ (Makefile.am): Don't expect test-dup3 to fail on NetBSD.
+
dup3: Fix behavior for equal file descriptors on NetBSD.
* lib/dup3.c (dup3) [__NetBSD__]: Check for equal file descriptors upon
a successful call to dup3. If they are equal fail with errno == EINVAL.
@item
This function can crash on some platforms:
Cygwin 1.7.25.
+
+@item
+This function mistakenly succeeds when given two equal file descriptors on some platforms:
+@c https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=58266
+NetBSD 10.0.
@end itemize
Portability problems not fixed by Gnulib:
msvc-nothrow
open
close
-test-xfail
configure.ac:
Makefile.am:
TESTS += test-dup3
check_PROGRAMS += test-dup3
-
-if OS_IS_NETBSD
-XFAIL_TESTS += test-dup3
-endif