Lines Matching defs:tty
449 if (strncmp(src, "tty", 3) == 0)
684 int tty;
691 tty=0;
695 tty++;
702 dropbear_log(LOG_WARNING, "utmp_write_entry: tty not found");
707 tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */
711 if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) {
712 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
725 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
963 * username on a given tty line. However, some systems (HP-UX is one)