Lines Matching defs:ttyn
55 char *ttyn;
60 (void) pam_get_item(pamh, PAM_TTY, (void **)&ttyn);
74 if (ttyn == NULL || *ttyn == '\0') {
82 "user = %s, auser = %s, tty = %s", user, auser, ttyn);
84 (void) strlcpy(user_tty, ttyn, MAXPATHLEN);
86 if (strchr(ttyn, '/') == NULL || strncmp(ttyn, "/dev/", 5) == 0) {
87 ttyn = strrchr(ttyn, '/') + 1;
90 "invalid tty: %s", ttyn);
96 auser, ttyn, user);