Lines Matching refs:tty_fd
246 mksh_tcset(tty_fd, &tty_state);
248 if (tcsetpgrp(tty_fd, restore_ttypgrp) < 0) {
273 } else if (tcsetpgrp(tty_fd, kshpid) < 0) {
327 tcsetpgrp(tty_fd, restore_ttypgrp);
353 if ((ttypgrp_ok = (use_tty && tty_fd >= 0 && tty_devtty))) {
355 if ((ttypgrp_ok = (use_tty && tty_fd >= 0))) {
363 if ((ttypgrp = tcgetpgrp(tty_fd)) < 0) {
384 if (tcsetpgrp(tty_fd, kshpid) < 0) {
551 tcsetpgrp(tty_fd, j->pgrp);
867 mksh_tcset(tty_fd, &j->ttystat);
870 tcsetpgrp(tty_fd, (j->flags & JF_SAVEDTTYPGRP) ?
874 mksh_tcset(tty_fd, &tty_state);
877 "fg: 1st", "tcsetpgrp", tty_fd,
896 mksh_tcset(tty_fd, &tty_state);
897 if (ttypgrp_ok && tcsetpgrp(tty_fd, kshpgrp) < 0)
899 "fg: 2nd", "tcsetpgrp", tty_fd,
1193 (j->saved_ttypgrp = tcgetpgrp(tty_fd)) >= 0)
1195 if (tcsetpgrp(tty_fd, kshpgrp) < 0)
1197 "j_waitj:", "tcsetpgrp", tty_fd,
1201 mksh_tcget(tty_fd, &j->ttystat);
1217 mksh_tcget(tty_fd, &tty_state);
1219 mksh_tcset(tty_fd, &tty_state);
1966 if (tty_fd >= 0) {
1967 mksh_tcget(tty_fd, &tty_state);