GetErrno-methods function

Get the error number for an I/O error