You may have to deal with a sign flip here and there, but the uv error codes should align with errno on unix (not on windows though).