Lines Matching defs:tty
1488 /* Record that there was a login on that tty from the remote host. */
1489 record_login(s->pid, s->tty, pw->pw_name, pw->pw_uid,
1499 debug3("%s: tty %s ptyfd %d", __func__, s->tty, s->ptyfd);
1521 res = pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty));
1524 pty_setowner(authctxt->pw, s->tty);
1527 (r = sshbuf_put_cstring(m, s->tty)) != 0)
1562 debug3("%s: tty %s ptyfd %d", __func__, s->tty, s->ttyfd);
1579 char *tty;
1584 if ((r = sshbuf_get_cstring(m, &tty, NULL)) != 0)
1586 if ((s = session_by_tty(tty)) != NULL)
1589 free(tty);