aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-01-13 04:43:48 +0000
committerErik Andersen <andersen@codepoet.org>2000-01-13 04:43:48 +0000
commit05df239ed90584156b820dbf3ede638208eb440f (patch)
tree990a3d6a9beb21420fae1f7d14886c84a5ce3c12 /applets
parent9a9a261569df0c88038de48eb233890ca189e9c0 (diff)
downloadbusybox-05df239ed90584156b820dbf3ede638208eb440f.tar.gz
Bug fixes.
-Erik
Diffstat (limited to 'applets')
-rw-r--r--applets/busybox.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index 4a7feefd2..a00f90be0 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -5,6 +5,16 @@
static int been_there_done_that = 0;
+#if 0
+void exit (int status) __attribute__ ((noreturn));
+void exit (int status) { _exit(status); };
+void abort (void) __attribute__ ((__noreturn__));
+void abort (void) { _exit(0); };
+int atexit (void (*__func) (void)) { _exit(0); };
+void *__libc_stack_end;
+#endif
+
+
static const struct Applet applets[] = {
#ifdef BB_BUSYBOX //bin
@@ -219,6 +229,9 @@ static const struct Applet applets[] = {
{"true", true_main},
{"false", false_main},
#endif
+#ifdef BB_WC //usr/bin
+ {"wc", wc_main},
+#endif
#ifdef BB_UNAME //bin
{"uname", uname_main},
#endif
@@ -241,6 +254,8 @@ static const struct Applet applets[] = {
{0}
};
+
+
int main(int argc, char **argv)
{
char *s = argv[0];