aboutsummaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-07-16 20:57:15 +0000
committerMatt Kraai <kraai@debian.org>2000-07-16 20:57:15 +0000
commitbf181b9338152759fd56c8009e9a962a84808e7c (patch)
treee8c416c791c690f661c513340662e4e98ff3464a /console-tools
parent3bd8bd89ee9d0b65bf279e1ecad826a5f2f0a217 (diff)
downloadbusybox-bf181b9338152759fd56c8009e9a962a84808e7c.tar.gz
Extract usage information into a separate file.
Diffstat (limited to 'console-tools')
-rw-r--r--console-tools/chvt.c7
-rw-r--r--console-tools/deallocvt.c7
-rw-r--r--console-tools/dumpkmap.c8
-rw-r--r--console-tools/loadacm.c6
-rw-r--r--console-tools/loadfont.c6
-rw-r--r--console-tools/loadkmap.c8
-rw-r--r--console-tools/setkeycodes.c11
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 @@
#define VT_ACTIVATE 0x5606 /* make vt active */
#define VT_WAITACTIVE 0x5607 /* wait for vt active */
-const char chvt_usage[] =
- "chvt N\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\nChanges the foreground virtual terminal to /dev/ttyN\n"
-#endif
- ;
-
int chvt_main(int argc, char **argv)
{
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 @@
/* From <linux/vt.h> */
#define VT_DISALLOCATE 0x5608 /* free memory associated to vt */
-const char deallocvt_usage[] =
- "deallocvt N\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\nDeallocate unused virtual terminal /dev/ttyN\n"
-#endif
- ;
-
int deallocvt_main(int argc, char *argv[])
{
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 {
#define NR_KEYS 128
#define MAX_NR_KEYMAPS 256
-
-static const char dumpkmap_usage[] = "dumpkmap\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\nPrints out a binary keyboard translation table to standard input.\n"
-#endif
- ;
-
-
int dumpkmap_main(int argc, char **argv)
{
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 @@
#include <sys/ioctl.h>
#include <sys/kd.h>
-static const char loadacm_usage[] = "loadacm\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\nLoads an acm from standard input.\n"
-#endif
- ;
-
typedef unsigned short unicode;
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 @@
#define PSF_MAXMODE 0x03
#define PSF_SEPARATOR 0xFFFF
-static const char loadfont_usage[] = "loadfont\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "Loads a console font from standard input.\n"
-#endif
- ;
-
struct psf_header {
unsigned char magic1, magic2; /* Magic number */
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 {
#define NR_KEYS 128
#define MAX_NR_KEYMAPS 256
-
-static const char loadkmap_usage[] = "loadkmap\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\nLoads a binary keyboard translation table from standard input.\n"
-#endif
- ;
-
-
int loadkmap_main(int argc, char **argv)
{
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 {
};
#define KDSETKEYCODE 0x4B4D /* write kernel keycode table entry */
-
-static const char setkeycodes_usage[] =
- "setkeycodes SCANCODE KEYCODE ...\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\nSet entries into the kernel's scancode-to-keycode map,\n"
- "allowing unusual keyboards to generate usable keycodes.\n\n"
- "SCANCODE may be either xx or e0xx (hexadecimal),\n"
- "and KEYCODE is given in decimal\n"
-#endif
- ;
-
extern int
setkeycodes_main(int argc, char** argv)
{