test-dup2 and test-fcntl are failing on Haiku when using both the dup2 and cloexec modules in tandem. I tested on Haiku alpha 2 (the latest formal release per haiku-os.org) rather than a nightly build, so this may have already been fixed by upstream development. But it seems like I should be able to come up with workarounds.
$ cat foo.c
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
int main() {
int i;
printf("%d\n", errno);
i = fcntl(0, F_DUPFD, -1);
printf("%d %d\n", i, errno);
return 0;
}
$ ./foo
0
-1 -2147459062
That is, Haiku was failing to set errno to EINVAL, and left it with junk
instead.
--
Eric Blake [email protected] +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
