diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/fuser.c | 1 | ||||
-rw-r--r-- | procps/iostat.c | 1 | ||||
-rw-r--r-- | procps/kill.c | 3 | ||||
-rw-r--r-- | procps/mpstat.c | 1 | ||||
-rw-r--r-- | procps/pgrep.c | 2 | ||||
-rw-r--r-- | procps/pidof.c | 2 | ||||
-rw-r--r-- | procps/pmap.c | 16 | ||||
-rw-r--r-- | procps/ps.c | 2 | ||||
-rw-r--r-- | procps/pstree.c | 1 | ||||
-rw-r--r-- | procps/renice.c | 1 | ||||
-rw-r--r-- | procps/sysctl.c | 1 | ||||
-rw-r--r-- | procps/watch.c | 1 |
12 files changed, 9 insertions, 23 deletions
diff --git a/procps/fuser.c b/procps/fuser.c index 8d63a7313..05b52abb1 100644 --- a/procps/fuser.c +++ b/procps/fuser.c | |||
@@ -11,7 +11,6 @@ | |||
11 | //usage: "[OPTIONS] FILE or PORT/PROTO" | 11 | //usage: "[OPTIONS] FILE or PORT/PROTO" |
12 | //usage:#define fuser_full_usage "\n\n" | 12 | //usage:#define fuser_full_usage "\n\n" |
13 | //usage: "Find processes which use FILEs or PORTs\n" | 13 | //usage: "Find processes which use FILEs or PORTs\n" |
14 | //usage: "\nOptions:" | ||
15 | //usage: "\n -m Find processes which use same fs as FILEs" | 14 | //usage: "\n -m Find processes which use same fs as FILEs" |
16 | //usage: "\n -4,-6 Search only IPv4/IPv6 space" | 15 | //usage: "\n -4,-6 Search only IPv4/IPv6 space" |
17 | //usage: "\n -s Don't display PIDs" | 16 | //usage: "\n -s Don't display PIDs" |
diff --git a/procps/iostat.c b/procps/iostat.c index 51c5fac08..978d23430 100644 --- a/procps/iostat.c +++ b/procps/iostat.c | |||
@@ -393,7 +393,6 @@ static void dev_report(cputime_t itv) | |||
393 | //usage: "[-c] [-d] [-t] [-z] [-k|-m] [ALL|BLOCKDEV...] [INTERVAL [COUNT]]" | 393 | //usage: "[-c] [-d] [-t] [-z] [-k|-m] [ALL|BLOCKDEV...] [INTERVAL [COUNT]]" |
394 | //usage:#define iostat_full_usage "\n\n" | 394 | //usage:#define iostat_full_usage "\n\n" |
395 | //usage: "Report CPU and I/O statistics\n" | 395 | //usage: "Report CPU and I/O statistics\n" |
396 | //usage: "\nOptions:" | ||
397 | //usage: "\n -c Show CPU utilization" | 396 | //usage: "\n -c Show CPU utilization" |
398 | //usage: "\n -d Show device utilization" | 397 | //usage: "\n -d Show device utilization" |
399 | //usage: "\n -t Print current time" | 398 | //usage: "\n -t Print current time" |
diff --git a/procps/kill.c b/procps/kill.c index 6776d9546..224e5ad1a 100644 --- a/procps/kill.c +++ b/procps/kill.c | |||
@@ -12,7 +12,6 @@ | |||
12 | //usage: "[-l] [-SIG] PID..." | 12 | //usage: "[-l] [-SIG] PID..." |
13 | //usage:#define kill_full_usage "\n\n" | 13 | //usage:#define kill_full_usage "\n\n" |
14 | //usage: "Send a signal (default: TERM) to given PIDs\n" | 14 | //usage: "Send a signal (default: TERM) to given PIDs\n" |
15 | //usage: "\nOptions:" | ||
16 | //usage: "\n -l List all signal names and numbers" | 15 | //usage: "\n -l List all signal names and numbers" |
17 | /* //usage: "\n -s SIG Yet another way of specifying SIG" */ | 16 | /* //usage: "\n -s SIG Yet another way of specifying SIG" */ |
18 | //usage: | 17 | //usage: |
@@ -30,7 +29,6 @@ | |||
30 | //usage: "[-l] [-q] [-SIG] PROCESS_NAME..." | 29 | //usage: "[-l] [-q] [-SIG] PROCESS_NAME..." |
31 | //usage:#define killall_full_usage "\n\n" | 30 | //usage:#define killall_full_usage "\n\n" |
32 | //usage: "Send a signal (default: TERM) to given processes\n" | 31 | //usage: "Send a signal (default: TERM) to given processes\n" |
33 | //usage: "\nOptions:" | ||
34 | //usage: "\n -l List all signal names and numbers" | 32 | //usage: "\n -l List all signal names and numbers" |
35 | /* //usage: "\n -s SIG Yet another way of specifying SIG" */ | 33 | /* //usage: "\n -s SIG Yet another way of specifying SIG" */ |
36 | //usage: "\n -q Don't complain if no processes were killed" | 34 | //usage: "\n -q Don't complain if no processes were killed" |
@@ -42,7 +40,6 @@ | |||
42 | //usage: "[-l] [-SIG] [-o PID]..." | 40 | //usage: "[-l] [-SIG] [-o PID]..." |
43 | //usage:#define killall5_full_usage "\n\n" | 41 | //usage:#define killall5_full_usage "\n\n" |
44 | //usage: "Send a signal (default: TERM) to all processes outside current session\n" | 42 | //usage: "Send a signal (default: TERM) to all processes outside current session\n" |
45 | //usage: "\nOptions:" | ||
46 | //usage: "\n -l List all signal names and numbers" | 43 | //usage: "\n -l List all signal names and numbers" |
47 | //usage: "\n -o PID Don't signal this PID" | 44 | //usage: "\n -o PID Don't signal this PID" |
48 | /* //usage: "\n -s SIG Yet another way of specifying SIG" */ | 45 | /* //usage: "\n -s SIG Yet another way of specifying SIG" */ |
diff --git a/procps/mpstat.c b/procps/mpstat.c index da8f34dab..aa5a5c73f 100644 --- a/procps/mpstat.c +++ b/procps/mpstat.c | |||
@@ -844,7 +844,6 @@ static int get_irqcpu_nr(const char *f, int max_irqs) | |||
844 | //usage: "[-A] [-I SUM|CPU|ALL|SCPU] [-u] [-P num|ALL] [INTERVAL [COUNT]]" | 844 | //usage: "[-A] [-I SUM|CPU|ALL|SCPU] [-u] [-P num|ALL] [INTERVAL [COUNT]]" |
845 | //usage:#define mpstat_full_usage "\n\n" | 845 | //usage:#define mpstat_full_usage "\n\n" |
846 | //usage: "Per-processor statistics\n" | 846 | //usage: "Per-processor statistics\n" |
847 | //usage: "\nOptions:" | ||
848 | //usage: "\n -A Same as -I ALL -u -P ALL" | 847 | //usage: "\n -A Same as -I ALL -u -P ALL" |
849 | //usage: "\n -I SUM|CPU|ALL|SCPU Report interrupt statistics" | 848 | //usage: "\n -I SUM|CPU|ALL|SCPU Report interrupt statistics" |
850 | //usage: "\n -P num|ALL Processor to monitor" | 849 | //usage: "\n -P num|ALL Processor to monitor" |
diff --git a/procps/pgrep.c b/procps/pgrep.c index 902a3a75e..156b4ad69 100644 --- a/procps/pgrep.c +++ b/procps/pgrep.c | |||
@@ -11,7 +11,6 @@ | |||
11 | //usage: "[-flnovx] [-s SID|-P PPID|PATTERN]" | 11 | //usage: "[-flnovx] [-s SID|-P PPID|PATTERN]" |
12 | //usage:#define pgrep_full_usage "\n\n" | 12 | //usage:#define pgrep_full_usage "\n\n" |
13 | //usage: "Display process(es) selected by regex PATTERN\n" | 13 | //usage: "Display process(es) selected by regex PATTERN\n" |
14 | //usage: "\nOptions:" | ||
15 | //usage: "\n -l Show command name too" | 14 | //usage: "\n -l Show command name too" |
16 | //usage: "\n -f Match against entire command line" | 15 | //usage: "\n -f Match against entire command line" |
17 | //usage: "\n -n Show the newest process only" | 16 | //usage: "\n -n Show the newest process only" |
@@ -25,7 +24,6 @@ | |||
25 | //usage: "[-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]" | 24 | //usage: "[-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]" |
26 | //usage:#define pkill_full_usage "\n\n" | 25 | //usage:#define pkill_full_usage "\n\n" |
27 | //usage: "Send a signal to process(es) selected by regex PATTERN\n" | 26 | //usage: "Send a signal to process(es) selected by regex PATTERN\n" |
28 | //usage: "\nOptions:" | ||
29 | //usage: "\n -l List all signals" | 27 | //usage: "\n -l List all signals" |
30 | //usage: "\n -f Match against entire command line" | 28 | //usage: "\n -f Match against entire command line" |
31 | //usage: "\n -n Signal the newest process only" | 29 | //usage: "\n -n Signal the newest process only" |
diff --git a/procps/pidof.c b/procps/pidof.c index e102a31c6..6d7b59109 100644 --- a/procps/pidof.c +++ b/procps/pidof.c | |||
@@ -10,7 +10,7 @@ | |||
10 | //usage:#if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT) | 10 | //usage:#if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT) |
11 | //usage:#define pidof_trivial_usage | 11 | //usage:#define pidof_trivial_usage |
12 | //usage: "[OPTIONS] [NAME]..." | 12 | //usage: "[OPTIONS] [NAME]..." |
13 | //usage:#define USAGE_PIDOF "\n\nOptions:" | 13 | //usage:#define USAGE_PIDOF "\n" |
14 | //usage:#else | 14 | //usage:#else |
15 | //usage:#define pidof_trivial_usage | 15 | //usage:#define pidof_trivial_usage |
16 | //usage: "[NAME]..." | 16 | //usage: "[NAME]..." |
diff --git a/procps/pmap.c b/procps/pmap.c index 7f7f391b9..fd995a54d 100644 --- a/procps/pmap.c +++ b/procps/pmap.c | |||
@@ -8,22 +8,22 @@ | |||
8 | * for details. | 8 | * for details. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | //applet:IF_PMAP(APPLET(pmap, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
12 | //kbuild:lib-$(CONFIG_PMAP) += pmap.o | ||
13 | |||
14 | //config:config PMAP | 11 | //config:config PMAP |
15 | //config: bool "pmap" | 12 | //config: bool "pmap" |
16 | //config: default y | 13 | //config: default y |
17 | //config: help | 14 | //config: help |
18 | //config: Display processes' memory mappings. | 15 | //config: Display processes' memory mappings. |
19 | 16 | ||
17 | //applet:IF_PMAP(APPLET(pmap, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
18 | //kbuild:lib-$(CONFIG_PMAP) += pmap.o | ||
19 | |||
20 | //usage:#define pmap_trivial_usage | 20 | //usage:#define pmap_trivial_usage |
21 | //usage: "[-x][-q] PID" | 21 | //usage: "[-xq] PID" |
22 | //usage:#define pmap_full_usage "\n\n" | 22 | //usage:#define pmap_full_usage "\n\n" |
23 | //usage: "Display detailed precesses' memory usage\n" | 23 | //usage: "Display detailed process memory usage" |
24 | //usage: "\nOptions:" | 24 | //usage: "\n" |
25 | //usage: "\n -x show details" | 25 | //usage: "\n -x Show details" |
26 | //usage: "\n -q quiet" | 26 | //usage: "\n -q Quiet" |
27 | 27 | ||
28 | #include "libbb.h" | 28 | #include "libbb.h" |
29 | 29 | ||
diff --git a/procps/ps.c b/procps/ps.c index 7f273d0a6..213695f16 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -15,7 +15,6 @@ | |||
15 | //usage: "[-o COL1,COL2=HEADER]" IF_FEATURE_SHOW_THREADS(" [-T]") | 15 | //usage: "[-o COL1,COL2=HEADER]" IF_FEATURE_SHOW_THREADS(" [-T]") |
16 | //usage:#define ps_full_usage "\n\n" | 16 | //usage:#define ps_full_usage "\n\n" |
17 | //usage: "Show list of processes\n" | 17 | //usage: "Show list of processes\n" |
18 | //usage: "\nOptions:" | ||
19 | //usage: "\n -o COL1,COL2=HEADER Select columns for display" | 18 | //usage: "\n -o COL1,COL2=HEADER Select columns for display" |
20 | //usage: IF_FEATURE_SHOW_THREADS( | 19 | //usage: IF_FEATURE_SHOW_THREADS( |
21 | //usage: "\n -T Show threads" | 20 | //usage: "\n -T Show threads" |
@@ -26,7 +25,6 @@ | |||
26 | //usage:#if !ENABLE_SELINUX && !ENABLE_FEATURE_PS_WIDE | 25 | //usage:#if !ENABLE_SELINUX && !ENABLE_FEATURE_PS_WIDE |
27 | //usage:#define USAGE_PS "\nThis version of ps accepts no options" | 26 | //usage:#define USAGE_PS "\nThis version of ps accepts no options" |
28 | //usage:#else | 27 | //usage:#else |
29 | //usage:#define USAGE_PS "\nOptions:" | ||
30 | //usage:#endif | 28 | //usage:#endif |
31 | //usage: | 29 | //usage: |
32 | //usage:#define ps_trivial_usage | 30 | //usage:#define ps_trivial_usage |
diff --git a/procps/pstree.c b/procps/pstree.c index 16649cfaa..8ba30795d 100644 --- a/procps/pstree.c +++ b/procps/pstree.c | |||
@@ -24,7 +24,6 @@ | |||
24 | //usage: "[-p] [PID|USER]" | 24 | //usage: "[-p] [PID|USER]" |
25 | //usage:#define pstree_full_usage "\n\n" | 25 | //usage:#define pstree_full_usage "\n\n" |
26 | //usage: "Display process tree, optionally start from USER or PID\n" | 26 | //usage: "Display process tree, optionally start from USER or PID\n" |
27 | //usage: "\nOptions:" | ||
28 | //usage: "\n -p Show pids" | 27 | //usage: "\n -p Show pids" |
29 | 28 | ||
30 | #include "libbb.h" | 29 | #include "libbb.h" |
diff --git a/procps/renice.c b/procps/renice.c index 067c8f75a..77f400a1d 100644 --- a/procps/renice.c +++ b/procps/renice.c | |||
@@ -23,7 +23,6 @@ | |||
23 | //usage: "{{-n INCREMENT} | PRIORITY} [[-p | -g | -u] ID...]" | 23 | //usage: "{{-n INCREMENT} | PRIORITY} [[-p | -g | -u] ID...]" |
24 | //usage:#define renice_full_usage "\n\n" | 24 | //usage:#define renice_full_usage "\n\n" |
25 | //usage: "Change scheduling priority for a running process\n" | 25 | //usage: "Change scheduling priority for a running process\n" |
26 | //usage: "\nOptions:" | ||
27 | //usage: "\n -n Adjust current nice value (smaller is faster)" | 26 | //usage: "\n -n Adjust current nice value (smaller is faster)" |
28 | //usage: "\n -p Process id(s) (default)" | 27 | //usage: "\n -p Process id(s) (default)" |
29 | //usage: "\n -g Process group id(s)" | 28 | //usage: "\n -g Process group id(s)" |
diff --git a/procps/sysctl.c b/procps/sysctl.c index f36548f87..cb3b6a25a 100644 --- a/procps/sysctl.c +++ b/procps/sysctl.c | |||
@@ -15,7 +15,6 @@ | |||
15 | //usage: "[OPTIONS] [VALUE]..." | 15 | //usage: "[OPTIONS] [VALUE]..." |
16 | //usage:#define sysctl_full_usage "\n\n" | 16 | //usage:#define sysctl_full_usage "\n\n" |
17 | //usage: "Configure kernel parameters at runtime\n" | 17 | //usage: "Configure kernel parameters at runtime\n" |
18 | //usage: "\nOptions:" | ||
19 | //usage: "\n -n Don't print key names" | 18 | //usage: "\n -n Don't print key names" |
20 | //usage: "\n -e Don't warn about unknown keys" | 19 | //usage: "\n -e Don't warn about unknown keys" |
21 | //usage: "\n -w Change sysctl setting" | 20 | //usage: "\n -w Change sysctl setting" |
diff --git a/procps/watch.c b/procps/watch.c index e289bf8cb..36af1cca7 100644 --- a/procps/watch.c +++ b/procps/watch.c | |||
@@ -15,7 +15,6 @@ | |||
15 | //usage: "[-n SEC] [-t] PROG ARGS" | 15 | //usage: "[-n SEC] [-t] PROG ARGS" |
16 | //usage:#define watch_full_usage "\n\n" | 16 | //usage:#define watch_full_usage "\n\n" |
17 | //usage: "Run PROG periodically\n" | 17 | //usage: "Run PROG periodically\n" |
18 | //usage: "\nOptions:" | ||
19 | //usage: "\n -n Loop period in seconds (default 2)" | 18 | //usage: "\n -n Loop period in seconds (default 2)" |
20 | //usage: "\n -t Don't print header" | 19 | //usage: "\n -t Don't print header" |
21 | //usage: | 20 | //usage: |