Lines Matching defs:tty
110 #define TALKABLE 0220 /* tty is writable if this mode */
118 char tty[LMAX+1]; /* null terminated tty line */
120 char *ttyloc; /* location of tty line, if any */
126 char writable; /* tty is writable */
291 bcopy(u->ut_line, p->tty, LMAX);
292 p->tty[LMAX] = 0;
412 bcopy(u->ut_line, p->tty, LMAX);
413 p->tty[LMAX] = 0;
422 bcopy(u->ut_line, new->tty, LMAX);
423 new->tty[LMAX] = 0;
552 * print out information on quick format giving just name, tty, login time
564 pers->tty, ctime(&pers->loginat));
568 pers->tty, ctime(&pers->loginat));
578 * tty, idle time, login time, and host.
603 if (*pers->tty) {
604 (void) printf("%-11.11s ", pers->tty);
659 &ep[4], pers->tty, pers->host);
663 &ep[4], pers->tty);
671 ep, ep+20, pers->tty);
677 (void) printf("\nLast login %16.16s on %s", ep, pers->tty);
754 bcopy(ll.ll_line, pers->tty, l_max);
755 pers->tty[l_max] = '\0';
763 pers->tty[0] = 0;
772 pers->tty[0] = 0;
786 * find the idle time of a user by doing a stat on /dev/tty??,
787 * where tty?? has been gotten from UTMPX_FILE, supposedly.
799 (void) strcpy(buffer + TTYLEN, pers->tty);
806 if (strcmp(pers->tty, "console") == 0) {