fcntl: work around Haiku F_DUPFD bugs
authorEric Blake <eblake@redhat.com>
Wed, 26 Jan 2011 05:06:16 +0000 (22:06 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 26 Jan 2011 17:05:43 +0000 (10:05 -0700)
commitfc12f35ab10cca4dc698ddee31b5e2bbeeb54167
tree2485156dfb6f291381f5ae241445a05b8911b3a3
parent01523ab68d2ce6ad7a0dc7f22c3b7063f3cead74
fcntl: work around Haiku F_DUPFD bugs

* m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
* lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
cloexec bit on duplication.
* doc/posix-functions/fcntl.texi (fcntl): Document the bug.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
doc/posix-functions/fcntl.texi
lib/fcntl.c
m4/fcntl.m4