Lines Matching refs:tty

684 		pty_make_controlling_tty(&ttyfd, s->tty);  in do_exec_pty()
767 record_utmp_only(pid, s->tty, s->pw->pw_name, in do_pre_login()
782 char session_type[1024], *tty = NULL; in do_exec() local
812 tty = s->tty; in do_exec()
813 if (strncmp(tty, "/dev/", 5) == 0) in do_exec()
814 tty += 5; in do_exec()
819 tty == NULL ? "" : " on ", in do_exec()
820 tty == NULL ? "" : tty, in do_exec()
878 record_login(pid, s->tty, pw->pw_name, pw->pw_uid, in do_login()
1253 child_set_env(&env, &envsize, "SSH_TTY", s->tty); in do_setup_env()
1706 session_setup_sia(pw, s->ttyfd == -1 ? NULL : s->tty); in do_child()
1991 session_by_tty(char *tty) in session_by_tty() argument
1996 if (s->used && s->ttyfd != -1 && strcmp(s->tty, tty) == 0) { in session_by_tty()
1997 debug("session_by_tty: session %d tty %s", i, tty); in session_by_tty()
2001 debug("session_by_tty: unknown tty %.100s", tty); in session_by_tty()
2107 if (!PRIVSEP(pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, in session_pty_req()
2108 sizeof(s->tty)))) { in session_pty_req()
2116 debug("session_pty_req: session %d alloc %s", s->self, s->tty); in session_pty_req()
2124 pty_setowner(s->pw, s->tty); in session_pty_req()
2358 debug("session_pty_cleanup: session %d release %s", s->self, s->tty); in session_pty_cleanup2()
2362 record_logout(s->pid, s->tty, s->pw->pw_name); in session_pty_cleanup2()
2366 pty_release(s->tty); in session_pty_cleanup2()
2617 if (strncmp(s->tty, "/dev/", 5) != 0) { in session_tty_list()
2618 cp = strrchr(s->tty, '/'); in session_tty_list()
2619 cp = (cp == NULL) ? s->tty : cp + 1; in session_tty_list()
2621 cp = s->tty + 5; in session_tty_list()