Lines Matching refs:tty
138 free(s->tty);
214 if (s->tty)
215 fprintf(f, "TTY=%s\n", s->tty);
336 "TTY", &s->tty,
754 static int get_tty_atime(const char *tty, usec_t *atime) {
758 assert(tty);
761 if (!path_is_absolute(tty)) {
762 p = strappend("/dev/", tty);
766 tty = p;
767 } else if (!path_startswith(tty, "/dev/"))
770 if (lstat(tty, &st) < 0)
810 /* For sessions with an explicitly configured tty, let's check
812 if (s->tty) {
813 r = get_tty_atime(s->tty, &atime);
819 * tty, let's check the controlling tty of the leader */
991 char path[sizeof("/dev/tty") + DECIMAL_STR_MAX(s->vtnr)];
999 sprintf(path, "/dev/tty%u", s->vtnr);
1021 "Cannot change owner of /dev/tty%u: %m",
1029 "Cannot set K_OFF on /dev/tty%u: %m",
1037 "Cannot set KD_GRAPHICS on /dev/tty%u: %m",
1051 "Cannot set VT_PROCESS on /dev/tty%u: %m",
1236 [SESSION_TTY] = "tty",