comp.os.minix
struct tty_table[] - where is it?

In Minix 2.0.2, the structure tty_table[] is referenced in consol.c,
keyboard.c & a few others (see below). Nowhere, in the space in or above the
directory usr, is it declared. Must be hiding -- anyone know where?

Many thanks, Hul


/usr/src/kernel/console.c: line = tp - &tty_table[0];
/usr/src/kernel/keyboard.c: tty_table[current].tty_events = 1;
/usr/src/kernel/keyboard.c: tp = &tty_table[current]; /* always use
the current console */
/usr/src/kernel/keyboard.c: case CF7: sigchar(&tty_table[CONSOLE], SIGQUIT);
break;
/usr/src/kernel/keyboard.c: case CF8: sigchar(&tty_table[CONSOLE], SIGINT);
break;
/usr/src/kernel/keyboard.c: case CF9: sigchar(&tty_table[CONSOLE], SIGKILL);
break;
/usr/src/kernel/pty.c: line = tp - &tty_table[NR_CONS + NR_RS_LINES];
/usr/src/kernel/rs232.c: line = tp - &tty_table[NR_CONS];
/usr/src/kernel/tty.c:#define tty_addr(line) (&tty_table[line])
/usr/src/kernel/tty.c:#define END_TTY tty_addr(sizeof(tty_table) /
sizeof(tty_table[0]))
/usr/src/kernel/tty.h:EXTERN tty_t tty_table[NR_CONS+NR_RS_LINES+NR_PTYS];
/usr/wrk/findbst.sh:find /usr -type f | xargs grep "tty_table" >/crap