ttywait
ttywait(sp->s_ttyp);
if ((error = ttywait(tp)) != 0)
if ((error = ttywait(tp)) != 0) {
int ttywait(struct tty *tp);