aboutsummaryrefslogtreecommitdiff
path: root/procps/ps.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/ps.c')
-rw-r--r--procps/ps.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/procps/ps.c b/procps/ps.c
index 6945780ec..7f273d0a6 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -9,6 +9,53 @@
9 * Licensed under GPLv2, see file LICENSE in this source tree. 9 * Licensed under GPLv2, see file LICENSE in this source tree.
10 */ 10 */
11 11
12//usage:#if ENABLE_DESKTOP
13//usage:
14//usage:#define ps_trivial_usage
15//usage: "[-o COL1,COL2=HEADER]" IF_FEATURE_SHOW_THREADS(" [-T]")
16//usage:#define ps_full_usage "\n\n"
17//usage: "Show list of processes\n"
18//usage: "\nOptions:"
19//usage: "\n -o COL1,COL2=HEADER Select columns for display"
20//usage: IF_FEATURE_SHOW_THREADS(
21//usage: "\n -T Show threads"
22//usage: )
23//usage:
24//usage:#else /* !ENABLE_DESKTOP */
25//usage:
26//usage:#if !ENABLE_SELINUX && !ENABLE_FEATURE_PS_WIDE
27//usage:#define USAGE_PS "\nThis version of ps accepts no options"
28//usage:#else
29//usage:#define USAGE_PS "\nOptions:"
30//usage:#endif
31//usage:
32//usage:#define ps_trivial_usage
33//usage: ""
34//usage:#define ps_full_usage "\n\n"
35//usage: "Show list of processes\n"
36//usage: USAGE_PS
37//usage: IF_SELINUX(
38//usage: "\n -Z Show selinux context"
39//usage: )
40//usage: IF_FEATURE_PS_WIDE(
41//usage: "\n w Wide output"
42//usage: )
43//usage:
44//usage:#endif /* ENABLE_DESKTOP */
45//usage:
46//usage:#define ps_example_usage
47//usage: "$ ps\n"
48//usage: " PID Uid Gid State Command\n"
49//usage: " 1 root root S init\n"
50//usage: " 2 root root S [kflushd]\n"
51//usage: " 3 root root S [kupdate]\n"
52//usage: " 4 root root S [kpiod]\n"
53//usage: " 5 root root S [kswapd]\n"
54//usage: " 742 andersen andersen S [bash]\n"
55//usage: " 743 andersen andersen S -bash\n"
56//usage: " 745 root root S [getty]\n"
57//usage: " 2990 andersen andersen R ps\n"
58
12#include "libbb.h" 59#include "libbb.h"
13 60
14/* Absolute maximum on output line length */ 61/* Absolute maximum on output line length */