Lines Matching defs:tty
64 static int add_serial_getty(const char *tty) {
68 assert(tty);
70 log_debug("Automatically adding serial getty for /dev/%s.", tty);
72 r = unit_name_from_path_instance("serial-getty", tty, ".service", &n);
79 static int add_container_getty(const char *tty) {
83 assert(tty);
85 log_debug("Automatically adding container getty for /dev/pts/%s.", tty);
87 r = unit_name_from_path_instance("container-getty", tty, ".service", &n);
165 char tty[l + 1];
167 memcpy(tty, word, l);
168 tty[l] = 0;
171 t = path_startswith(tty, "/dev/");
173 t = tty;
189 if (read_one_line_file("/sys/class/tty/console/active", &active) >= 0) {
196 _cleanup_free_ char *tty = NULL;
198 tty = strndup(word, l);
199 if (!tty) {
204 if (isempty(tty) || tty_is_vc(tty))
207 if (verify_tty(tty) < 0)
214 if (add_serial_getty(tty) < 0)
224 p = strjoina("/sys/class/tty/", j);