Lines Matching defs:tty
358 char *tty;
360 tty = strrchr(ttyn, '/');
362 if (tty == NULL)
363 tty = ttyn;
365 tty++;
367 if ((t = getttynam(tty)) != NULL)
651 char *tty, host[256];
817 ioctl(0, TIOCNXCL, 0); /* set non-exclusive use of tty */
844 syslog(LOG_DEBUG, "reading user name from tty buffer");
1003 tty = ttyname(0);
1005 if (tty == (char *) 0 || *tty == '\0')
1006 tty = "UNKNOWN"; /* was: "/dev/tty??" */
1019 syslog(LOG_DEBUG, "tty = %s", tty);
1111 name, tty, host);
1114 name, tty);
1199 if (!invalid && !thisuser.pw_uid && !rootterm(tty)) {
1202 tty, HMAX, host);
1204 syslog(LOG_CRIT, "ROOT LOGIN REFUSED ON %s", tty);
1213 tty, HMAX, host, sizeof(name), name);
1216 tty, sizeof(name), name);
1249 if (opielogin(tty, name, host))
1250 syslog(LOG_ERR, "can't record login: tty %s, name %s, host %s", tty, name, host);
1275 if (!strncmp(tty, "/dev/", 5))
1276 opiestrncpy(ll.ll_line, tty + 5, sizeof(ll.ll_line));
1278 opiestrncpy(ll.ll_line, tty, sizeof(ll.ll_line));
1286 chown(tty, thisuser.pw_uid, TTYGID(thisuser.pw_gid));
1298 chmod(tty, 0622);
1308 permsfile(name, tty, thisuser.pw_uid, thisuser.pw_gid);
1344 if (c = strrchr(tty, '/'))
1347 c = tty;
1402 if (tty[sizeof("tty") - 1] == 'd')
1403 syslog(LOG_INFO, "DIALUP %s, %s", tty, name);
1406 syslog(LOG_NOTICE, "ROOT LOGIN %s FROM %.*s", tty, HMAX, host);
1408 syslog(LOG_NOTICE, "ROOT LOGIN %s", tty);