Extract usage information into a separate file.
This commit is contained in:
@@ -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;
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user