]> Savannah Git Hosting - gnulib.git/commit
dup3: Fix behavior for equal file descriptors on Haiku.
authorCollin Funk <collin.funk1@gmail.com>
Thu, 13 Mar 2025 01:55:26 +0000 (18:55 -0700)
committerBruno Haible <bruno@clisp.org>
Tue, 1 Apr 2025 14:31:37 +0000 (16:31 +0200)
commit0424f0108e1beaf45b897a456aab49a03bd2cb0c
tree0cf145266f3421133f0f8387697bf0ee407e4518
parent7ecb9e528eba34c23fb9e64cf1c73f0386faade3
dup3: Fix behavior for equal file descriptors on Haiku.

* lib/dup3.c (dup3) [__HAIKU__]: Set errno to EINVAL and return -1 if
both file descriptors are equal.
* doc/posix-functions/dup3.texi: Document the Haiku bug.
ChangeLog
doc/posix-functions/dup3.texi
lib/dup3.c