diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2005-10-04 14:31:18 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2005-10-04 14:31:18 +0000 |
commit | 6d6a40cc4b77b8d3930dddce228ab3b37e6bf29e (patch) | |
tree | 64536b70ee179abd59e0c2813309b3dd4ee85e7a /include/usage.h | |
parent | 5209e18ba72fa6718fdda7d91788f9b11e352c60 (diff) | |
download | busybox-w32-6d6a40cc4b77b8d3930dddce228ab3b37e6bf29e.tar.gz busybox-w32-6d6a40cc4b77b8d3930dddce228ab3b37e6bf29e.tar.bz2 busybox-w32-6d6a40cc4b77b8d3930dddce228ab3b37e6bf29e.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
Diffstat (limited to 'include/usage.h')
-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" \ |