Lines Matching defs:tty
576 const char *service, *type, *class, *cseat, *tty, *display, *remote_user, *remote_host, *desktop;
597 r = sd_bus_message_read(message, "uusssssussbss", &uid, &leader, &service, &type, &class, &desktop, &cseat, &vtnr, &tty, &display, &remote, &remote_user, &remote_host);
637 if (tty_is_vc(tty)) {
643 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "TTY %s is virtual console but seat %s is not seat0", tty, seat->id);
645 v = vtnr_from_tty(tty);
647 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Cannot determine VT number from virtual console TTY %s", tty);
654 } else if (tty_is_console(tty)) {
682 else if (!isempty(tty))
774 if (!isempty(tty)) {
775 session->tty = strdup(tty);
776 if (!session->tty) {
1994 const char *tty = NULL;
1997 (void) sd_bus_creds_get_tty(creds, &tty);
1999 r = free_and_strdup(&m->scheduled_shutdown_tty, tty);
2032 const char *tty = NULL;
2039 (void) sd_bus_creds_get_tty(creds, &tty);
2043 uid_to_name(uid), tty, logind_wall_tty_filter, m);