Re: [BUG] 2.5.69 - no setfont and loadkeys on tty > 1

Andries Brouwer (aebr@win.tue.nl)
Thu, 15 May 2003 04:44:17 +0200


On Wed, May 14, 2003 at 11:19:59PM +0100, James Simmons wrote:

> P.S
> KDGKBDTYPE. (Wow, I can't believe we still have this. It should die)

It is rather useless for determining keyboard proterties, yes.
On the other hand, quite a few utilities use it in code like

static int
is_a_console(int fd) {
char arg;

arg = 0;
return (ioctl(fd, KDGKBTYPE, &arg) == 0
&& ((arg == KB_101) || (arg == KB_84)));
}

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/