Return the right error value when dup[23]() newfd argument is too large