diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-09-17 22:14:58 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-09-17 22:14:58 +0000 |
commit | 420b208a450d55e34df1301e939b7864b93d1026 (patch) | |
tree | 64f3e9b328d178df9cb02889e1212ad3f31a62cb /include | |
parent | 793c3b4a7dc986aee7b551eae5e8f3bd1200da5a (diff) | |
download | busybox-w32-420b208a450d55e34df1301e939b7864b93d1026.tar.gz busybox-w32-420b208a450d55e34df1301e939b7864b93d1026.tar.bz2 busybox-w32-420b208a450d55e34df1301e939b7864b93d1026.zip |
Add a new top applet
-Erik
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 3 | ||||
-rw-r--r-- | include/usage.h | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index de07cc960..9508c3a4b 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -473,6 +473,9 @@ | |||
473 | #ifdef CONFIG_TIME | 473 | #ifdef CONFIG_TIME |
474 | APPLET(time, time_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) | 474 | APPLET(time, time_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) |
475 | #endif | 475 | #endif |
476 | #ifdef CONFIG_TOP | ||
477 | APPLET(top, top_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) | ||
478 | #endif | ||
476 | #ifdef CONFIG_TOUCH | 479 | #ifdef CONFIG_TOUCH |
477 | APPLET(touch, touch_main, _BB_DIR_BIN, _BB_SUID_NEVER) | 480 | APPLET(touch, touch_main, _BB_DIR_BIN, _BB_SUID_NEVER) |
478 | #endif | 481 | #endif |
diff --git a/include/usage.h b/include/usage.h index 1cdaa6681..33a81c467 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -1860,6 +1860,15 @@ | |||
1860 | "Options:\n" \ | 1860 | "Options:\n" \ |
1861 | "\t-v\tDisplays verbose resource usage information." | 1861 | "\t-v\tDisplays verbose resource usage information." |
1862 | 1862 | ||
1863 | #define top_trivial_usage \ | ||
1864 | "[-d <seconds>]" | ||
1865 | #define top_full_usage \ | ||
1866 | "top provides an view of processor activity in real time.\n" \ | ||
1867 | "This utility reads the status for all processes in /proc each <seconds>\n" \ | ||
1868 | "and shows the status for however many processes will fit on the screen.\n" \ | ||
1869 | "This utility will not show processes that are started after program startup,\n" \ | ||
1870 | "but it will show the EXIT status for and PIDs that exit while it is running." | ||
1871 | |||
1863 | #define touch_trivial_usage \ | 1872 | #define touch_trivial_usage \ |
1864 | "[-c] FILE [FILE ...]" | 1873 | "[-c] FILE [FILE ...]" |
1865 | #define touch_full_usage \ | 1874 | #define touch_full_usage \ |