Mark keyboard RAW mode deprecated

Pavel Machek (pavel@suse.cz)
Fri, 19 Nov 1999 22:37:41 +0100


Hi!

In times of sun keyboards and usb keyboards, keyboard raw mode has no
longer good sense. People already had problems with it on powerpc:
system then behaves different if you use different kind of
keyboard. We should better let world know raw mode is doomed to dead.

Pavel

--- clean/drivers/char/vt.c Sat Oct 23 20:54:46 1999
+++ linux/drivers/char/vt.c Sat Oct 23 20:44:35 1999
@@ -1,12 +1,12 @@
/*
* linux/drivers/char/vt.c
*
- * Copyright (C) 1992 obz under the linux copyright
+ * Copyright (C) 1992 Orest Zborowski under the linux copyright
*
* Dynamic diacritical handling - aeb@cwi.nl - Dec 1993
* Dynamic keymap and string allocation - aeb@cwi.nl - May 1994
* Restrict VT switching via ioctl() - grif@cs.ucr.edu - Dec 1995
* Some code moved for less code duplication - Andi Kleen - Mar 1997
*/

#include <linux/config.h>
@@ -542,6 +548,9 @@
return -EPERM;
switch(arg) {
case K_RAW:
+ /* We do not want userland code to know
+ about hardware details, do we? */
+ printk( KERN_WARNING "Warning: Deprecated keyboard RAW mode set by %s (%d)\n", current->comm, current->pid );
kbd->kbdmode = VC_RAW;
break;
case K_MEDIUMRAW:

-- 
I'm really pavel@ucw.cz. Look at http://195.113.31.123/~pavel.  Pavel
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!

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