Lines Matching refs:tty

532 		pty_make_controlling_tty(&ttyfd, s->tty);  in do_exec_pty()
605 record_utmp_only(pid, s->tty, s->pw->pw_name, in do_pre_login()
620 const char *forced = NULL, *tty = NULL; in do_exec() local
651 tty = s->tty; in do_exec()
652 if (strncmp(tty, "/dev/", 5) == 0) in do_exec()
653 tty += 5; in do_exec()
658 tty == NULL ? "" : " on ", in do_exec()
659 tty == NULL ? "" : tty, in do_exec()
719 record_login(pid, s->tty, pw->pw_name, pw->pw_uid, in do_login()
1091 child_set_env(&env, &envsize, "SSH_TTY", s->tty); in do_setup_env()
1520 session_setup_sia(pw, s->ttyfd == -1 ? NULL : s->tty); in do_child()
1794 session_by_tty(char *tty) in session_by_tty() argument
1799 if (s->used && s->ttyfd != -1 && strcmp(s->tty, tty) == 0) { in session_by_tty()
1800 debug("session_by_tty: session %d tty %s", i, tty); in session_by_tty()
1804 debug("session_by_tty: unknown tty %.100s", tty); in session_by_tty()
1904 if (!PRIVSEP(pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, in session_pty_req()
1905 sizeof(s->tty)))) { in session_pty_req()
1913 debug("session_pty_req: session %d alloc %s", s->self, s->tty); in session_pty_req()
1919 pty_setowner(s->pw, s->tty); in session_pty_req()
2157 debug("session_pty_cleanup: session %d release %s", s->self, s->tty); in session_pty_cleanup2()
2161 record_logout(s->pid, s->tty, s->pw->pw_name); in session_pty_cleanup2()
2165 pty_release(s->tty); in session_pty_cleanup2()
2422 if (strncmp(s->tty, "/dev/", 5) != 0) { in session_tty_list()
2423 cp = strrchr(s->tty, '/'); in session_tty_list()
2424 cp = (cp == NULL) ? s->tty : cp + 1; in session_tty_list()
2426 cp = s->tty + 5; in session_tty_list()