• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/busybox/loginutils/

Lines Matching refs:tty

89 	const char *tty;                /* name of tty */
210 /* we loosen up a bit and accept both "baudrate tty" and "tty baudrate" */
211 op->tty = argv[0]; /* tty name */
215 op->tty = ts; /* tty name is in argv[1] */
229 /* open_tty - set up tty as standard { input, output, error } */
230 static void open_tty(const char *tty)
233 if (NOT_LONE_DASH(tty)) {
241 // xstat(tty, &st);
243 // bb_error_msg_and_die("%s: not a character device", tty);
245 if (tty[0] != '/')
246 tty = xasprintf("/dev/%s", tty); /* will leak it */
248 /* Open the tty as standard input. */
251 /*fd =*/ xopen(tty, O_RDWR | O_NONBLOCK); /* uses fd 0 */
256 /* Open the tty as standard input, continued */
382 print_login_issue(op->issue, op->tty);
438 bb_perror_msg_and_die("%s: read", op->tty);
494 bb_error_msg_and_die("%s: input overrun", op->tty);
516 /* termios_final - set the final tty mode bits */
576 ioctl_or_perror_and_die(0, TCSETS, tp, "%s: TCSETS", op->tty);
597 options.tty = "tty1"; /* default tty line */
608 /* Create new session, lose controlling tty, if any */
636 /* Open the tty as standard input, if it is not "-" */
639 open_tty(options.tty);
646 * The following ioctl will fail if stdin is not a tty, but also when
654 ioctl_or_perror_and_die(0, TCGETS, &termios, "%s: TCGETS", options.tty);
659 // /* Forcibly make fd 0 our controlling tty, even if another session
666 /* Update the utmp file. This tty is ours now! */
667 update_utmp(pid, LOGIN_PROCESS, options.tty, "LOGIN", fakehost);
735 bb_error_msg_and_die("%s: can't exec %s", options.tty, options.login);