Further reduce usage of errno