]> Savannah Git Hosting - gnulib.git/commitdiff
dup3: Update documentation and expected test results.
authorCollin Funk <collin.funk1@gmail.com>
Sun, 19 May 2024 00:34:09 +0000 (17:34 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sun, 19 May 2024 00:34:09 +0000 (17:34 -0700)
* 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.

ChangeLog
doc/glibc-functions/dup3.texi
modules/dup3-tests

index 71a111ee7de48376c491616dbf1380b2f1bae07f..fc2c42283c16ffb5a526ee7fa2f76f0bae49b4f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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.
index dfe47b472542b6e4189d0038b4a19b83366fafee..c04e6bd7a40e8082bfae54de9e12b17a7f28b7bb 100644 (file)
@@ -15,6 +15,11 @@ glibc 2.8, macOS 11.1, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.
 @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:
index eff2e21307d479f0d4f1971786c108392e536c55..7d527717308cd7e404b1b6754eacf6fbbcbe5eef 100644 (file)
@@ -8,14 +8,9 @@ getdtablesize
 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