commented errno function