Lines Matching defs:tty
608 if (strncmp(src, "tty", 3) == 0)
841 int tty;
848 tty=0;
851 tty++;
858 logit("%s: tty not found", __func__);
863 tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */
867 if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) {
870 pos = (off_t)tty * sizeof(struct utmp);
877 logit("%s: Couldn't seek to tty %d slot in %s",
878 __func__, tty, UTMP_FILE);
899 logit("%s: Couldn't seek to tty %d slot in %s",
900 __func__, tty, UTMP_FILE);
1147 * username on a given tty line. However, some systems (HP-UX is one)