diff options
| author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-09-17 22:14:58 +0000 |
|---|---|---|
| committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-09-17 22:14:58 +0000 |
| commit | 67aef3115cb9eadde5d872ae5bb10b8bf319d7be (patch) | |
| tree | 64f3e9b328d178df9cb02889e1212ad3f31a62cb /include | |
| parent | 3cac7e6925cc742812127a12047ce65843e576ad (diff) | |
| download | busybox-w32-67aef3115cb9eadde5d872ae5bb10b8bf319d7be.tar.gz busybox-w32-67aef3115cb9eadde5d872ae5bb10b8bf319d7be.tar.bz2 busybox-w32-67aef3115cb9eadde5d872ae5bb10b8bf319d7be.zip | |
Add a new top applet
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@5553 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 \ |
