Extract usage information into a separate file.

This commit is contained in:
Matt Kraai
2000-07-16 20:57:15 +00:00
parent 3bd8bd89ee
commit bf181b9338
175 changed files with 2529 additions and 2050 deletions

View File

@@ -25,13 +25,6 @@
#include <stdio.h>
#include <errno.h>
const char free_usage[] =
"free\n"
#ifndef BB_FEATURE_TRIVIAL_HELP
"\nDisplays the amount of free and used system memory\n"
#endif
;
extern int free_main(int argc, char **argv)
{
struct sysinfo info;

View File

@@ -31,24 +31,6 @@
#include <sys/stat.h>
#include <unistd.h>
static const char *kill_usage =
"kill [-signal] process-id [process-id ...]\n"
#ifndef BB_FEATURE_TRIVIAL_HELP
"\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
"Options:\n" "\t-l\tList all signal names and numbers.\n\n"
#endif
;
#ifdef BB_KILLALL
static const char *killall_usage =
"killall [-signal] process-name [process-name ...]\n"
#ifndef BB_FEATURE_TRIVIAL_HELP
"\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
"Options:\n" "\t-l\tList all signal names and numbers.\n\n"
#endif
#endif
;
#define KILL 0
#define KILLALL 1

View File

@@ -114,14 +114,6 @@ static void parse_proc_status(char *S, proc_t * P)
}
const char ps_usage[] =
"ps\n"
#ifndef BB_FEATURE_TRIVIAL_HELP
"\nReport process status\n"
"\nThis version of ps accepts no options.\n"
#endif
;
extern int ps_main(int argc, char **argv)
{
proc_t p;