diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-10-04 14:31:18 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-10-04 14:31:18 +0000 |
commit | bb1271b931682187f67c011e7fa3ba7ca8b63a2f (patch) | |
tree | 64536b70ee179abd59e0c2813309b3dd4ee85e7a /include | |
parent | c5b1daa9f4c28c97395f04ec944985f7b011b186 (diff) | |
download | busybox-w32-bb1271b931682187f67c011e7fa3ba7ca8b63a2f.tar.gz busybox-w32-bb1271b931682187f67c011e7fa3ba7ca8b63a2f.tar.bz2 busybox-w32-bb1271b931682187f67c011e7fa3ba7ca8b63a2f.zip |
- add option 'w' to ps (wide output, optional feature defaults to off).
- move to ENABLE_ and use shorter boilerplate.
sizes without selinux-support:
text data bss dec hex filename
356 0 0 356 164 procps/ps.o.with-w
300 0 0 300 12c procps/ps.o.no-w
302 0 0 302 12e procps/ps.o.oorig
git-svn-id: svn://busybox.net/trunk/busybox@11751 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
-rw-r--r-- | include/usage.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/usage.h b/include/usage.h index 8428bfd32..fad50efdc 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -2245,17 +2245,12 @@ | |||
2245 | "$ printf \"Val=%d\\n\" 5\n" \ | 2245 | "$ printf \"Val=%d\\n\" 5\n" \ |
2246 | "Val=5\n" | 2246 | "Val=5\n" |
2247 | 2247 | ||
2248 | #if !defined(CONFIG_SELINUX) && !defined(CONFIG_PS_FEATURE_WIDE) | 2248 | #if !defined CONFIG_SELINUX && !ENABLE_FEATURE_PS_WIDE |
2249 | #define USAGE_PS "\n\tThis version of ps accepts no options." | 2249 | #define USAGE_PS "\n\tThis version of ps accepts no options." |
2250 | #else | 2250 | #else |
2251 | #define USAGE_PS "\nOptions:" | 2251 | #define USAGE_PS "\nOptions:" |
2252 | #endif | 2252 | #endif |
2253 | #ifdef CONFIG_SELINUX | 2253 | #if ENABLE_FEATURE_PS_WIDE |
2254 | #define USAGE_NONSELINUX(a) | ||
2255 | #else | ||
2256 | #define USAGE_NONSELINUX(a) a | ||
2257 | #endif | ||
2258 | #ifdef CONFIG_PS_FEATURE_WIDE | ||
2259 | #define USAGE_PS_WIDE(a) a | 2254 | #define USAGE_PS_WIDE(a) a |
2260 | #else | 2255 | #else |
2261 | #define USAGE_PS_WIDE(a) | 2256 | #define USAGE_PS_WIDE(a) |
@@ -2269,7 +2264,6 @@ | |||
2269 | USAGE_SELINUX("\n\t-c\tshow SE Linux context") \ | 2264 | USAGE_SELINUX("\n\t-c\tshow SE Linux context") \ |
2270 | USAGE_PS_WIDE("\n\tw\twide output") | 2265 | USAGE_PS_WIDE("\n\tw\twide output") |
2271 | 2266 | ||
2272 | |||
2273 | #define ps_example_usage \ | 2267 | #define ps_example_usage \ |
2274 | "$ ps\n" \ | 2268 | "$ ps\n" \ |
2275 | " PID Uid Gid State Command\n" \ | 2269 | " PID Uid Gid State Command\n" \ |