fcntl(F_DUPFD) needs an argument. Otherwise it fails with EINVALwhen compiled with clang.
various cleanups; david says results are same
Simple test for fcntl(F_DUPFD).