Is there a reason why you don't set `errno` here, as in the test for Darwin?