]> 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:49:31 +0000 (16:49 +0200)
commit1a2bb33101610bb157192999e34170908c62a3e8
tree53835a5e4666ba1351fe81bcbbe0ad79f83fbdda
parent5226cfc5d27bd3b58c81b94366909a8136dc9ba4
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
lib/dup3.c