Relax ttyname_r error checks