aboutsummaryrefslogtreecommitdiff
path: root/console-tools/loadkmap.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-07-08 18:55:24 +0000
committerEric Andersen <andersen@codepoet.org>2000-07-08 18:55:24 +0000
commitbd22ed806782eec76929bcd2ec556717e79d24c7 (patch)
treee225367aaef198eacec8ed0b530d36a9d888d92f /console-tools/loadkmap.c
parent877a71bbf0b8386add4631c08f7101259ad2dc07 (diff)
downloadbusybox-w32-bd22ed806782eec76929bcd2ec556717e79d24c7.tar.gz
busybox-w32-bd22ed806782eec76929bcd2ec556717e79d24c7.tar.bz2
busybox-w32-bd22ed806782eec76929bcd2ec556717e79d24c7.zip
Update files to reduce dependance on kernel version...
-Erik
Diffstat (limited to 'console-tools/loadkmap.c')
-rw-r--r--console-tools/loadkmap.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c
index 905741467..0e8c090d2 100644
--- a/console-tools/loadkmap.c
+++ b/console-tools/loadkmap.c
@@ -24,10 +24,20 @@
24#include <errno.h> 24#include <errno.h>
25#include <fcntl.h> 25#include <fcntl.h>
26#include <stdio.h> 26#include <stdio.h>
27#include <linux/kd.h>
28#include <linux/keyboard.h>
29#include <sys/ioctl.h> 27#include <sys/ioctl.h>
30 28
29/* From <linux/kd.h> */
30struct kbentry {
31 unsigned char kb_table;
32 unsigned char kb_index;
33 unsigned short kb_value;
34};
35#define KDSKBENT 0x4B47 /* sets one entry in translation table */
36
37/* From <linux/keyboard.h> */
38#define NR_KEYS 128
39#define MAX_NR_KEYMAPS 256
40
31 41
32static const char loadkmap_usage[] = "loadkmap\n" 42static const char loadkmap_usage[] = "loadkmap\n"
33#ifndef BB_FEATURE_TRIVIAL_HELP 43#ifndef BB_FEATURE_TRIVIAL_HELP