summaryrefslogtreecommitdiff
path: root/include/usage.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2005-10-04 14:31:18 +0000
committerBernhard Reutner-Fischer2005-10-04 14:31:18 +0000
commit6d6a40cc4b77b8d3930dddce228ab3b37e6bf29e (patch)
tree64536b70ee179abd59e0c2813309b3dd4ee85e7a /include/usage.h
parent5209e18ba72fa6718fdda7d91788f9b11e352c60 (diff)
downloadbusybox-6d6a40cc4b77b8d3930dddce228ab3b37e6bf29e.zip
busybox-6d6a40cc4b77b8d3930dddce228ab3b37e6bf29e.tar.gz
- 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.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/include/usage.h b/include/usage.h
index 8428bfd..fad50ef 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2245,17 +2245,12 @@
"$ printf \"Val=%d\\n\" 5\n" \
"Val=5\n"
-#if !defined(CONFIG_SELINUX) && !defined(CONFIG_PS_FEATURE_WIDE)
+#if !defined CONFIG_SELINUX && !ENABLE_FEATURE_PS_WIDE
#define USAGE_PS "\n\tThis version of ps accepts no options."
#else
#define USAGE_PS "\nOptions:"
#endif
-#ifdef CONFIG_SELINUX
-#define USAGE_NONSELINUX(a)
-#else
-#define USAGE_NONSELINUX(a) a
-#endif
-#ifdef CONFIG_PS_FEATURE_WIDE
+#if ENABLE_FEATURE_PS_WIDE
#define USAGE_PS_WIDE(a) a
#else
#define USAGE_PS_WIDE(a)
@@ -2269,7 +2264,6 @@
USAGE_SELINUX("\n\t-c\tshow SE Linux context") \
USAGE_PS_WIDE("\n\tw\twide output")
-
#define ps_example_usage \
"$ ps\n" \
" PID Uid Gid State Command\n" \