Lines Matching defs:tty
285 char tty[sizeof (utmp[0].ut_line) + 5];
293 strcpy(tty, "/dev/");
294 strncat(tty, utp->ut_line, sizeof (utp->ut_line));
295 dsyslog(LOG_DEBUG, "notify %s on %s\n", utp->ut_name, tty);
296 if (stat(tty, &stb) == -1) {
297 dsyslog(LOG_DEBUG, "can't stat tty\n");
326 * We need to make sure that the tty listed in the utmp
327 * file really is a tty device so that a corrupted utmp
330 if ((fd = open(tty, O_RDWR)) == -1) {
331 dsyslog(LOG_DEBUG, "can't open tty");
335 dsyslog(LOG_DEBUG, "line listed in utmp file is not a tty\n");
341 * we need to make sure that the tty we will be sending
349 "tty is not owned by user getting the biff\n");