Lines Matching refs:tty_fd
245 mksh_tcset(tty_fd, &tty_state); in j_suspend()
247 if (tcsetpgrp(tty_fd, restore_ttypgrp) < 0) { in j_suspend()
272 } else if (tcsetpgrp(tty_fd, kshpid) < 0) { in j_suspend()
326 tcsetpgrp(tty_fd, restore_ttypgrp); in j_exit()
351 if ((ttypgrp_ok = (use_tty && tty_fd >= 0 && tty_devtty))) { in j_change()
358 if ((ttypgrp = tcgetpgrp(tty_fd)) < 0) { in j_change()
379 if (tcsetpgrp(tty_fd, kshpid) < 0) { in j_change()
546 tcsetpgrp(tty_fd, j->pgrp); in exchild()
862 mksh_tcset(tty_fd, &j->ttystat); in j_resume()
865 tcsetpgrp(tty_fd, (j->flags & JF_SAVEDTTYPGRP) ? in j_resume()
869 mksh_tcset(tty_fd, &tty_state); in j_resume()
872 "fg: 1st", "tcsetpgrp", tty_fd, in j_resume()
891 mksh_tcset(tty_fd, &tty_state); in j_resume()
892 if (ttypgrp_ok && tcsetpgrp(tty_fd, kshpgrp) < 0) in j_resume()
894 "fg: 2nd", "tcsetpgrp", tty_fd, in j_resume()
1188 (j->saved_ttypgrp = tcgetpgrp(tty_fd)) >= 0) in j_waitj()
1190 if (tcsetpgrp(tty_fd, kshpgrp) < 0) in j_waitj()
1192 "j_waitj:", "tcsetpgrp", tty_fd, in j_waitj()
1196 mksh_tcget(tty_fd, &j->ttystat); in j_waitj()
1212 mksh_tcget(tty_fd, &tty_state); in j_waitj()
1214 mksh_tcset(tty_fd, &tty_state); in j_waitj()
1947 if (tty_fd >= 0) { in tty_init_state()
1948 mksh_tcget(tty_fd, &tty_state); in tty_init_state()