: I guess I found a bug in the kernel. (My first!).
: The consoles reported back in vstat->v_state on the VT_GETSTATE request
: are shifted by one, and tty0 is reported twice. (Please don't tell me
: POSIX requires this <G>).
You did not understand the difference in numbering of tty's
and vt's (there is a shift by 1: vt's 1..63 correspond to tty's 0..62).
Your change would break X and other programs.
Andries