summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen2002-09-17 22:14:58 +0000
committerEric Andersen2002-09-17 22:14:58 +0000
commit420b208a450d55e34df1301e939b7864b93d1026 (patch)
tree64f3e9b328d178df9cb02889e1212ad3f31a62cb /include
parent793c3b4a7dc986aee7b551eae5e8f3bd1200da5a (diff)
downloadbusybox-420b208a450d55e34df1301e939b7864b93d1026.zip
busybox-420b208a450d55e34df1301e939b7864b93d1026.tar.gz
Add a new top applet
-Erik
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h9
2 files changed, 12 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index de07cc9..9508c3a 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -473,6 +473,9 @@
#ifdef CONFIG_TIME
APPLET(time, time_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_TOP
+ APPLET(top, top_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_TOUCH
APPLET(touch, touch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
diff --git a/include/usage.h b/include/usage.h
index 1cdaa66..33a81c4 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1860,6 +1860,15 @@
"Options:\n" \
"\t-v\tDisplays verbose resource usage information."
+#define top_trivial_usage \
+ "[-d <seconds>]"
+#define top_full_usage \
+ "top provides an view of processor activity in real time.\n" \
+ "This utility reads the status for all processes in /proc each <seconds>\n" \
+ "and shows the status for however many processes will fit on the screen.\n" \
+ "This utility will not show processes that are started after program startup,\n" \
+ "but it will show the EXIT status for and PIDs that exit while it is running."
+
#define touch_trivial_usage \
"[-c] FILE [FILE ...]"
#define touch_full_usage \