The attached patches fix some of these failures.
The remaining failures are:
> FAIL: test-areadlinkat
> ==
>
> ../../gltests/test-areadlinkat.c:78: assertion 'errno == EBADF' failed
> Abort
> FAIL test-areadlinkat (exit status: 134)
>
> FAIL: test-cloexec
> =
On a recent Haiku (32-bit system), a POSIX testdir shows 44 failures:
FAIL: test-areadlinkat
==
../../gltests/test-areadlinkat.c:78: assertion 'errno == EBADF' failed
Abort
FAIL test-areadlinkat (exit status: 134)
FAIL: test-cloexec
==
../../gltests/test-clo