Home | History | Annotate | Download | only in src

Lines Matching full:tty

67 #define JF_FG		0x010	/* running in foreground (also has tty pgrp) */
73 #define JF_USETTYMODE 0x400 /* tty mode saved if process exits normally */
92 mksh_ttyst ttystat; /* saved tty state for stopped jobs */
93 pid_t saved_ttypgrp; /* saved tty process group for stopped jobs */
137 static bool ttypgrp_ok; /* set if can use tty pgrps */
267 * Need to restore the tty pgrp to what it was when the
269 * will be able to access the tty when we are done.
272 * process we are to become will be able to access the tty.
294 /* don't call mksh_tcget until we own the tty process group */
298 /* no controlling tty, no SIGT* */
302 /* wait to be given tty (POSIX.1, B.2, job control) */
437 * tty process group and we don't save or restore tty modes.
807 /* attach tty to job */
1118 * Save the tty's current pgrp so it can be restored
1125 * has restored the tty's pgrp to that of the su
1143 * Only restore tty settings if job was originally
1146 * typically get and save the shell's vi/emacs tty
1147 * settings before setting up the tty for itself;
1157 * Don't use tty mode if job is stopped and
1177 * a tty generated ^C goes to the whole process group)
1824 "No controlling tty", "open", "/dev/tty",
1830 warningf(false, "%s: %s", "can't find tty fd", cstrerror(errno));
1835 "dup of tty fd", "failed", cstrerror(errno));