diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-03-05 07:52:05 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-03-05 07:52:05 +0000 |
commit | 66be5e7e29ad6fa457376996b4c08d307b92a6f1 (patch) | |
tree | 6728a78fe0cbe9ee36ca504dd10b3584983b9a06 | |
parent | 6437170cb31302d8525cd6fcbe0a2efad386ab9d (diff) | |
download | busybox-w32-66be5e7e29ad6fa457376996b4c08d307b92a6f1.tar.gz busybox-w32-66be5e7e29ad6fa457376996b4c08d307b92a6f1.tar.bz2 busybox-w32-66be5e7e29ad6fa457376996b4c08d307b92a6f1.zip |
Wrote uptime. Doesn't use /proc. :)
-Erik
-rw-r--r-- | Changelog | 2 | ||||
-rw-r--r-- | applets/busybox.c | 7 | ||||
-rw-r--r-- | busybox.c | 7 | ||||
-rw-r--r-- | busybox.def.h | 1 | ||||
-rw-r--r-- | internal.h | 1 |
5 files changed, 13 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | 0.43 | 1 | 0.43 |
2 | * Wrote basename. | 2 | * Wrote basename, and uptime. |
3 | * Added freeramdisk, which will free up all memory associated | 3 | * Added freeramdisk, which will free up all memory associated |
4 | with a ram disk. Contributed by Emanuele Caratti <wiz@iol.it> | 4 | with a ram disk. Contributed by Emanuele Caratti <wiz@iol.it> |
5 | and then adjusted a bit by me. | 5 | and then adjusted a bit by me. |
diff --git a/applets/busybox.c b/applets/busybox.c index ccf80a75e..991801310 100644 --- a/applets/busybox.c +++ b/applets/busybox.c | |||
@@ -268,11 +268,14 @@ static const struct Applet applets[] = { | |||
268 | #ifdef BB_TTY //usr/bin | 268 | #ifdef BB_TTY //usr/bin |
269 | {"tty", tty_main}, | 269 | {"tty", tty_main}, |
270 | #endif | 270 | #endif |
271 | #ifdef BB_UMOUNT //bin | ||
272 | {"umount", umount_main}, | ||
273 | #endif | ||
271 | #ifdef BB_UNAME //bin | 274 | #ifdef BB_UNAME //bin |
272 | {"uname", uname_main}, | 275 | {"uname", uname_main}, |
273 | #endif | 276 | #endif |
274 | #ifdef BB_UMOUNT //bin | 277 | #ifdef BB_UPTIME //usr/bin |
275 | {"umount", umount_main}, | 278 | {"uptime", uptime_main}, |
276 | #endif | 279 | #endif |
277 | #ifdef BB_UNIQ //bin | 280 | #ifdef BB_UNIQ //bin |
278 | {"uniq", uniq_main}, | 281 | {"uniq", uniq_main}, |
@@ -268,11 +268,14 @@ static const struct Applet applets[] = { | |||
268 | #ifdef BB_TTY //usr/bin | 268 | #ifdef BB_TTY //usr/bin |
269 | {"tty", tty_main}, | 269 | {"tty", tty_main}, |
270 | #endif | 270 | #endif |
271 | #ifdef BB_UMOUNT //bin | ||
272 | {"umount", umount_main}, | ||
273 | #endif | ||
271 | #ifdef BB_UNAME //bin | 274 | #ifdef BB_UNAME //bin |
272 | {"uname", uname_main}, | 275 | {"uname", uname_main}, |
273 | #endif | 276 | #endif |
274 | #ifdef BB_UMOUNT //bin | 277 | #ifdef BB_UPTIME //usr/bin |
275 | {"umount", umount_main}, | 278 | {"uptime", uptime_main}, |
276 | #endif | 279 | #endif |
277 | #ifdef BB_UNIQ //bin | 280 | #ifdef BB_UNIQ //bin |
278 | {"uniq", uniq_main}, | 281 | {"uniq", uniq_main}, |
diff --git a/busybox.def.h b/busybox.def.h index 3407b2cc0..b82bcc5f1 100644 --- a/busybox.def.h +++ b/busybox.def.h | |||
@@ -86,6 +86,7 @@ | |||
86 | #define BB_TOUCH | 86 | #define BB_TOUCH |
87 | #define BB_TRUE_FALSE | 87 | #define BB_TRUE_FALSE |
88 | #define BB_TTY | 88 | #define BB_TTY |
89 | #define BB_UPTIME | ||
89 | #define BB_WC | 90 | #define BB_WC |
90 | #define BB_WHOAMI | 91 | #define BB_WHOAMI |
91 | #define BB_UMOUNT | 92 | #define BB_UMOUNT |
diff --git a/internal.h b/internal.h index b2714131f..7ae129729 100644 --- a/internal.h +++ b/internal.h | |||
@@ -140,6 +140,7 @@ extern int tryopen_main(int argc, char** argv); | |||
140 | extern int tty_main(int argc, char** argv); | 140 | extern int tty_main(int argc, char** argv); |
141 | extern int umount_main(int argc, char** argv); | 141 | extern int umount_main(int argc, char** argv); |
142 | extern int uname_main(int argc, char** argv); | 142 | extern int uname_main(int argc, char** argv); |
143 | extern int uptime_main(int argc, char** argv); | ||
143 | extern int uniq_main(int argc, char** argv); | 144 | extern int uniq_main(int argc, char** argv); |
144 | extern int update_main(int argc, char** argv); | 145 | extern int update_main(int argc, char** argv); |
145 | extern int wc_main(int argc, char** argv); | 146 | extern int wc_main(int argc, char** argv); |