Lines Matching refs:tty_fd
238 mksh_tcset(tty_fd, &tty_state); in j_suspend()
240 if (tcsetpgrp(tty_fd, restore_ttypgrp) < 0) { in j_suspend()
265 } else if (tcsetpgrp(tty_fd, kshpid) < 0) { in j_suspend()
319 tcsetpgrp(tty_fd, restore_ttypgrp); in j_exit()
344 if ((ttypgrp_ok = (use_tty && tty_fd >= 0 && tty_devtty))) { in j_change()
351 if ((ttypgrp = tcgetpgrp(tty_fd)) < 0) { in j_change()
372 if (tcsetpgrp(tty_fd, kshpid) < 0) { in j_change()
539 tcsetpgrp(tty_fd, j->pgrp); in exchild()
855 mksh_tcset(tty_fd, &j->ttystat); in j_resume()
858 tcsetpgrp(tty_fd, (j->flags & JF_SAVEDTTYPGRP) ? in j_resume()
862 mksh_tcset(tty_fd, &tty_state); in j_resume()
865 "fg: 1st", "tcsetpgrp", tty_fd, in j_resume()
884 mksh_tcset(tty_fd, &tty_state); in j_resume()
885 if (ttypgrp_ok && tcsetpgrp(tty_fd, kshpgrp) < 0) in j_resume()
887 "fg: 2nd", "tcsetpgrp", tty_fd, in j_resume()
1175 (j->saved_ttypgrp = tcgetpgrp(tty_fd)) >= 0) in j_waitj()
1177 if (tcsetpgrp(tty_fd, kshpgrp) < 0) in j_waitj()
1179 "j_waitj:", "tcsetpgrp", tty_fd, in j_waitj()
1183 mksh_tcget(tty_fd, &j->ttystat); in j_waitj()
1199 mksh_tcget(tty_fd, &tty_state); in j_waitj()
1201 mksh_tcset(tty_fd, &tty_state); in j_waitj()
1919 if (tty_fd >= 0) { in tty_init_state()
1920 mksh_tcget(tty_fd, &tty_state); in tty_init_state()