quit pointlessly passing errno around