Lines Matching refs:ttyp
1160 struct tty *ttyp;
1190 ttyp = SESSION_TP(pgrp->pg_session);
1191 if (ttyp != TTY_NULL) {
1192 if (ttyp->t_pgrp == pgrp) {
1193 tty_lock(ttyp);
1195 if (ttyp->t_pgrp == pgrp) {
1196 ttyp->t_pgrp = NULL;
1199 tty_unlock(ttyp);
1212 ttyp = SESSION_TP(sessp);
1215 if (ttyp != TTY_NULL) {
1216 tty_lock(ttyp);
1217 if (ttyp->t_session == sessp)
1218 ttyp->t_session = NULL;
1219 tty_unlock(ttyp);