Lines Matching defs:tty
196 { "tty", "TT", 7, 7 },
256 static struct tty {
259 } *tty = NULL; /* for t option */
548 (void) strcpy(p, "tty");
555 tty = Realloc(tty,
556 (ttysz + 1) * sizeof (struct tty));
558 tty[ntty].tdev = PRNODEV;
562 tty[ntty].tdev = s.st_rdev;
563 tty[ntty++].tname = p;
730 tty[ntty].tname = NULL;
741 /* get our own controlling tty name using /proc */
763 tty = Realloc(tty, (ttysz + 1) * sizeof (struct tty));
765 tty[ntty].tdev = info.pr_ttydev;
766 tty[ntty++].tname = name;
767 tty[ntty].tname = NULL;
1266 * gettty returns the user's tty number or ? if none.
1291 * Find the process's tty and return 1 if process is to be printed.
1297 struct tty *ttyp;
1320 for (ttyp = tty; ttyp->tname != NULL; ttyp++) {