io: use errno case instead of cond.