use symbolic errno value instead of hardcoded number