diff options
author | Matt Kraai <kraai@debian.org> | 2000-07-16 20:57:15 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-07-16 20:57:15 +0000 |
commit | bf181b9338152759fd56c8009e9a962a84808e7c (patch) | |
tree | e8c416c791c690f661c513340662e4e98ff3464a /console-tools | |
parent | 3bd8bd89ee9d0b65bf279e1ecad826a5f2f0a217 (diff) | |
download | busybox-w32-bf181b9338152759fd56c8009e9a962a84808e7c.tar.gz busybox-w32-bf181b9338152759fd56c8009e9a962a84808e7c.tar.bz2 busybox-w32-bf181b9338152759fd56c8009e9a962a84808e7c.zip |
Extract usage information into a separate file.
Diffstat (limited to 'console-tools')
-rw-r--r-- | console-tools/chvt.c | 7 | ||||
-rw-r--r-- | console-tools/deallocvt.c | 7 | ||||
-rw-r--r-- | console-tools/dumpkmap.c | 8 | ||||
-rw-r--r-- | console-tools/loadacm.c | 6 | ||||
-rw-r--r-- | console-tools/loadfont.c | 6 | ||||
-rw-r--r-- | console-tools/loadkmap.c | 8 | ||||
-rw-r--r-- | console-tools/setkeycodes.c | 11 |
7 files changed, 0 insertions, 53 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c index ab0e9218f..87a1248fd 100644 --- a/console-tools/chvt.c +++ b/console-tools/chvt.c | |||
@@ -15,13 +15,6 @@ | |||
15 | #define VT_ACTIVATE 0x5606 /* make vt active */ | 15 | #define VT_ACTIVATE 0x5606 /* make vt active */ |
16 | #define VT_WAITACTIVE 0x5607 /* wait for vt active */ | 16 | #define VT_WAITACTIVE 0x5607 /* wait for vt active */ |
17 | 17 | ||
18 | const char chvt_usage[] = | ||
19 | "chvt N\n" | ||
20 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
21 | "\nChanges the foreground virtual terminal to /dev/ttyN\n" | ||
22 | #endif | ||
23 | ; | ||
24 | |||
25 | int chvt_main(int argc, char **argv) | 18 | int chvt_main(int argc, char **argv) |
26 | { | 19 | { |
27 | int fd, num; | 20 | int fd, num; |
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index 042de8649..9c477d238 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c | |||
@@ -13,13 +13,6 @@ | |||
13 | /* From <linux/vt.h> */ | 13 | /* From <linux/vt.h> */ |
14 | #define VT_DISALLOCATE 0x5608 /* free memory associated to vt */ | 14 | #define VT_DISALLOCATE 0x5608 /* free memory associated to vt */ |
15 | 15 | ||
16 | const char deallocvt_usage[] = | ||
17 | "deallocvt N\n" | ||
18 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
19 | "\nDeallocate unused virtual terminal /dev/ttyN\n" | ||
20 | #endif | ||
21 | ; | ||
22 | |||
23 | int deallocvt_main(int argc, char *argv[]) | 16 | int deallocvt_main(int argc, char *argv[]) |
24 | { | 17 | { |
25 | int fd, num, i; | 18 | int fd, num, i; |
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c index f18050529..4ce6e8698 100644 --- a/console-tools/dumpkmap.c +++ b/console-tools/dumpkmap.c | |||
@@ -38,14 +38,6 @@ struct kbentry { | |||
38 | #define NR_KEYS 128 | 38 | #define NR_KEYS 128 |
39 | #define MAX_NR_KEYMAPS 256 | 39 | #define MAX_NR_KEYMAPS 256 |
40 | 40 | ||
41 | |||
42 | static const char dumpkmap_usage[] = "dumpkmap\n" | ||
43 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
44 | "\nPrints out a binary keyboard translation table to standard input.\n" | ||
45 | #endif | ||
46 | ; | ||
47 | |||
48 | |||
49 | int dumpkmap_main(int argc, char **argv) | 41 | int dumpkmap_main(int argc, char **argv) |
50 | { | 42 | { |
51 | struct kbentry ke; | 43 | struct kbentry ke; |
diff --git a/console-tools/loadacm.c b/console-tools/loadacm.c index 9eebf3bb5..2d70ffc5d 100644 --- a/console-tools/loadacm.c +++ b/console-tools/loadacm.c | |||
@@ -22,12 +22,6 @@ | |||
22 | #include <sys/ioctl.h> | 22 | #include <sys/ioctl.h> |
23 | #include <sys/kd.h> | 23 | #include <sys/kd.h> |
24 | 24 | ||
25 | static const char loadacm_usage[] = "loadacm\n" | ||
26 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
27 | "\nLoads an acm from standard input.\n" | ||
28 | #endif | ||
29 | ; | ||
30 | |||
31 | typedef unsigned short unicode; | 25 | typedef unsigned short unicode; |
32 | 26 | ||
33 | static long int ctoi(unsigned char *s, int *is_unicode); | 27 | static long int ctoi(unsigned char *s, int *is_unicode); |
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index 46a7574c0..622142925 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c | |||
@@ -30,12 +30,6 @@ | |||
30 | #define PSF_MAXMODE 0x03 | 30 | #define PSF_MAXMODE 0x03 |
31 | #define PSF_SEPARATOR 0xFFFF | 31 | #define PSF_SEPARATOR 0xFFFF |
32 | 32 | ||
33 | static const char loadfont_usage[] = "loadfont\n" | ||
34 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
35 | "Loads a console font from standard input.\n" | ||
36 | #endif | ||
37 | ; | ||
38 | |||
39 | struct psf_header { | 33 | struct psf_header { |
40 | unsigned char magic1, magic2; /* Magic number */ | 34 | unsigned char magic1, magic2; /* Magic number */ |
41 | unsigned char mode; /* PSF font mode */ | 35 | unsigned char mode; /* PSF font mode */ |
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index 72247a6e4..488585f9c 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c | |||
@@ -38,14 +38,6 @@ struct kbentry { | |||
38 | #define NR_KEYS 128 | 38 | #define NR_KEYS 128 |
39 | #define MAX_NR_KEYMAPS 256 | 39 | #define MAX_NR_KEYMAPS 256 |
40 | 40 | ||
41 | |||
42 | static const char loadkmap_usage[] = "loadkmap\n" | ||
43 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
44 | "\nLoads a binary keyboard translation table from standard input.\n" | ||
45 | #endif | ||
46 | ; | ||
47 | |||
48 | |||
49 | int loadkmap_main(int argc, char **argv) | 41 | int loadkmap_main(int argc, char **argv) |
50 | { | 42 | { |
51 | struct kbentry ke; | 43 | struct kbentry ke; |
diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c index 1bdb909ea..284ffa194 100644 --- a/console-tools/setkeycodes.c +++ b/console-tools/setkeycodes.c | |||
@@ -35,17 +35,6 @@ struct kbkeycode { | |||
35 | }; | 35 | }; |
36 | #define KDSETKEYCODE 0x4B4D /* write kernel keycode table entry */ | 36 | #define KDSETKEYCODE 0x4B4D /* write kernel keycode table entry */ |
37 | 37 | ||
38 | |||
39 | static const char setkeycodes_usage[] = | ||
40 | "setkeycodes SCANCODE KEYCODE ...\n" | ||
41 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
42 | "\nSet entries into the kernel's scancode-to-keycode map,\n" | ||
43 | "allowing unusual keyboards to generate usable keycodes.\n\n" | ||
44 | "SCANCODE may be either xx or e0xx (hexadecimal),\n" | ||
45 | "and KEYCODE is given in decimal\n" | ||
46 | #endif | ||
47 | ; | ||
48 | |||
49 | extern int | 38 | extern int |
50 | setkeycodes_main(int argc, char** argv) | 39 | setkeycodes_main(int argc, char** argv) |
51 | { | 40 | { |