A value is only assigned to errno if NumRead equals -1, so do