summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-11-05 00:45:47 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-11-05 00:45:47 +0000
commit9494919ea5116075e16daac1355265b023419cdc (patch)
treea6743775e25864bf7f1e656283752df7d988de36 /include
parentaae0311356b4458e3a62fb19af656e00323e3bf1 (diff)
ps: implement POSIX-like options, most notably -o
(activated by CONFIG_DESKTOP)
Diffstat (limited to 'include')
-rw-r--r--include/usage.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/usage.h b/include/usage.h
index 46bb9eca4..7174ad414 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2377,6 +2377,18 @@ USE_FEATURE_MDEV_CONFIG( \
"$ printf \"Val=%d\\n\" 5\n" \
"Val=5\n"
+
+#if ENABLE_DESKTOP
+
+#define ps_trivial_usage \
+ ""
+#define ps_full_usage \
+ "Report process status\n" \
+ "\nOptions:" \
+ "\n\t-o col1,col2=header\tSelect columns for display" \
+
+#else /* !ENABLE_DESKTOP */
+
#if !defined CONFIG_SELINUX && !ENABLE_FEATURE_PS_WIDE
#define USAGE_PS "\n\tThis version of ps accepts no options."
#else
@@ -2396,6 +2408,8 @@ USE_FEATURE_MDEV_CONFIG( \
USE_SELINUX("\n\t-c\tshow SE Linux context") \
USAGE_PS_WIDE("\n\tw\twide output")
+#endif /* ENABLE_DESKTOP */
+
#define ps_example_usage \
"$ ps\n" \
" PID Uid Gid State Command\n" \
@@ -2409,6 +2423,7 @@ USE_FEATURE_MDEV_CONFIG( \
" 745 root root S [getty]\n" \
" 2990 andersen andersen R ps\n"
+
#define pwd_trivial_usage \
""
#define pwd_full_usage \