minor errno fix
document errno behaviour
Merge pull request #194 from fdopen/errno-fix

check_errno is not helpful