diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-08 18:55:24 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-08 18:55:24 +0000 |
commit | e4d63164fd2e82ba6899cc37acd02537fc49241d (patch) | |
tree | e225367aaef198eacec8ed0b530d36a9d888d92f /loadkmap.c | |
parent | 0022fe5638fbe702405ad218f43006e718f4ef9e (diff) | |
download | busybox-w32-e4d63164fd2e82ba6899cc37acd02537fc49241d.tar.gz busybox-w32-e4d63164fd2e82ba6899cc37acd02537fc49241d.tar.bz2 busybox-w32-e4d63164fd2e82ba6899cc37acd02537fc49241d.zip |
Update files to reduce dependance on kernel version...
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@779 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'loadkmap.c')
-rw-r--r-- | loadkmap.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/loadkmap.c b/loadkmap.c index 905741467..0e8c090d2 100644 --- a/loadkmap.c +++ b/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> */ | ||
30 | struct 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 | ||
32 | static const char loadkmap_usage[] = "loadkmap\n" | 42 | static const char loadkmap_usage[] = "loadkmap\n" |
33 | #ifndef BB_FEATURE_TRIVIAL_HELP | 43 | #ifndef BB_FEATURE_TRIVIAL_HELP |