aboutsummaryrefslogtreecommitdiff
path: root/include/usage.h
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-05 00:45:47 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-05 00:45:47 +0000
commit90d665870131f12f0ebafae20021b90e106d0e40 (patch)
treea6743775e25864bf7f1e656283752df7d988de36 /include/usage.h
parent04353387ec2a1ee4a28e44be9062c2a6967f397d (diff)
downloadbusybox-w32-90d665870131f12f0ebafae20021b90e106d0e40.tar.gz
busybox-w32-90d665870131f12f0ebafae20021b90e106d0e40.tar.bz2
busybox-w32-90d665870131f12f0ebafae20021b90e106d0e40.zip
ps: implement POSIX-like options, most notably -o
(activated by CONFIG_DESKTOP) git-svn-id: svn://busybox.net/trunk/busybox@16511 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-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( \
2377 "$ printf \"Val=%d\\n\" 5\n" \ 2377 "$ printf \"Val=%d\\n\" 5\n" \
2378 "Val=5\n" 2378 "Val=5\n"
2379 2379
2380
2381#if ENABLE_DESKTOP
2382
2383#define ps_trivial_usage \
2384 ""
2385#define ps_full_usage \
2386 "Report process status\n" \
2387 "\nOptions:" \
2388 "\n\t-o col1,col2=header\tSelect columns for display" \
2389
2390#else /* !ENABLE_DESKTOP */
2391
2380#if !defined CONFIG_SELINUX && !ENABLE_FEATURE_PS_WIDE 2392#if !defined CONFIG_SELINUX && !ENABLE_FEATURE_PS_WIDE
2381#define USAGE_PS "\n\tThis version of ps accepts no options." 2393#define USAGE_PS "\n\tThis version of ps accepts no options."
2382#else 2394#else
@@ -2396,6 +2408,8 @@ USE_FEATURE_MDEV_CONFIG( \
2396 USE_SELINUX("\n\t-c\tshow SE Linux context") \ 2408 USE_SELINUX("\n\t-c\tshow SE Linux context") \
2397 USAGE_PS_WIDE("\n\tw\twide output") 2409 USAGE_PS_WIDE("\n\tw\twide output")
2398 2410
2411#endif /* ENABLE_DESKTOP */
2412
2399#define ps_example_usage \ 2413#define ps_example_usage \
2400 "$ ps\n" \ 2414 "$ ps\n" \
2401 " PID Uid Gid State Command\n" \ 2415 " PID Uid Gid State Command\n" \
@@ -2409,6 +2423,7 @@ USE_FEATURE_MDEV_CONFIG( \
2409 " 745 root root S [getty]\n" \ 2423 " 745 root root S [getty]\n" \
2410 " 2990 andersen andersen R ps\n" 2424 " 2990 andersen andersen R ps\n"
2411 2425
2426
2412#define pwd_trivial_usage \ 2427#define pwd_trivial_usage \
2413 "" 2428 ""
2414#define pwd_full_usage \ 2429#define pwd_full_usage \