Wrote uptime. Doesn't use /proc. :)

-Erik
This commit is contained in:
Erik Andersen 2000-03-05 07:52:05 +00:00
parent 6437170cb3
commit 66be5e7e29
5 changed files with 13 additions and 5 deletions

View File

@ -1,5 +1,5 @@
0.43 0.43
* Wrote basename. * Wrote basename, and uptime.
* Added freeramdisk, which will free up all memory associated * Added freeramdisk, which will free up all memory associated
with a ram disk. Contributed by Emanuele Caratti <wiz@iol.it> with a ram disk. Contributed by Emanuele Caratti <wiz@iol.it>
and then adjusted a bit by me. and then adjusted a bit by me.

View File

@ -268,11 +268,14 @@ static const struct Applet applets[] = {
#ifdef BB_TTY //usr/bin #ifdef BB_TTY //usr/bin
{"tty", tty_main}, {"tty", tty_main},
#endif #endif
#ifdef BB_UMOUNT //bin
{"umount", umount_main},
#endif
#ifdef BB_UNAME //bin #ifdef BB_UNAME //bin
{"uname", uname_main}, {"uname", uname_main},
#endif #endif
#ifdef BB_UMOUNT //bin #ifdef BB_UPTIME //usr/bin
{"umount", umount_main}, {"uptime", uptime_main},
#endif #endif
#ifdef BB_UNIQ //bin #ifdef BB_UNIQ //bin
{"uniq", uniq_main}, {"uniq", uniq_main},

View File

@ -268,11 +268,14 @@ static const struct Applet applets[] = {
#ifdef BB_TTY //usr/bin #ifdef BB_TTY //usr/bin
{"tty", tty_main}, {"tty", tty_main},
#endif #endif
#ifdef BB_UMOUNT //bin
{"umount", umount_main},
#endif
#ifdef BB_UNAME //bin #ifdef BB_UNAME //bin
{"uname", uname_main}, {"uname", uname_main},
#endif #endif
#ifdef BB_UMOUNT //bin #ifdef BB_UPTIME //usr/bin
{"umount", umount_main}, {"uptime", uptime_main},
#endif #endif
#ifdef BB_UNIQ //bin #ifdef BB_UNIQ //bin
{"uniq", uniq_main}, {"uniq", uniq_main},

View File

@ -86,6 +86,7 @@
#define BB_TOUCH #define BB_TOUCH
#define BB_TRUE_FALSE #define BB_TRUE_FALSE
#define BB_TTY #define BB_TTY
#define BB_UPTIME
#define BB_WC #define BB_WC
#define BB_WHOAMI #define BB_WHOAMI
#define BB_UMOUNT #define BB_UMOUNT

View File

@ -140,6 +140,7 @@ extern int tryopen_main(int argc, char** argv);
extern int tty_main(int argc, char** argv); extern int tty_main(int argc, char** argv);
extern int umount_main(int argc, char** argv); extern int umount_main(int argc, char** argv);
extern int uname_main(int argc, char** argv); extern int uname_main(int argc, char** argv);
extern int uptime_main(int argc, char** argv);
extern int uniq_main(int argc, char** argv); extern int uniq_main(int argc, char** argv);
extern int update_main(int argc, char** argv); extern int update_main(int argc, char** argv);
extern int wc_main(int argc, char** argv); extern int wc_main(int argc, char** argv);