Lines Matching defs:tty
130 _cleanup_free_ char *p = NULL, *tty = NULL;
140 * the controlling tty of that and if it's a VC then we know
160 r = get_ctty(ucred.pid, NULL, &tty);
164 v = vtnr_from_tty(tty);
226 *tty = NULL, *display = NULL,
289 pam_get_item(handle, PAM_TTY, (const void**) &tty);
317 tty = strempty(tty);
319 if (strchr(tty, ':')) {
320 /* A tty with a colon is usually an X11 display,
323 * tty. */
326 display = tty;
327 tty = NULL;
328 } else if (streq(tty, "cron")) {
334 tty = NULL;
335 } else if (streq(tty, "ssh")) {
339 type ="tty";
341 tty = NULL;
362 !isempty(tty) ? "tty" : "unspecified";
379 "uid="UID_FMT" pid="PID_FMT" service=%s type=%s class=%s desktop=%s seat=%s vtnr=%"PRIu32" tty=%s display=%s remote=%s remote_user=%s remote_host=%s",
383 strempty(seat), vtnr, strempty(tty), strempty(display),
402 tty,