summaryrefslogtreecommitdiff
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-w32-05df239ed90584156b820dbf3ede638208eb440f.tar.gz
busybox-w32-05df239ed90584156b820dbf3ede638208eb440f.tar.bz2
busybox-w32-05df239ed90584156b820dbf3ede638208eb440f.zip
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 @@
5 5
6static int been_there_done_that = 0; 6static int been_there_done_that = 0;
7 7
8#if 0
9void exit (int status) __attribute__ ((noreturn));
10void exit (int status) { _exit(status); };
11void abort (void) __attribute__ ((__noreturn__));
12void abort (void) { _exit(0); };
13int atexit (void (*__func) (void)) { _exit(0); };
14void *__libc_stack_end;
15#endif
16
17
8static const struct Applet applets[] = { 18static const struct Applet applets[] = {
9 19
10#ifdef BB_BUSYBOX //bin 20#ifdef BB_BUSYBOX //bin
@@ -219,6 +229,9 @@ static const struct Applet applets[] = {
219 {"true", true_main}, 229 {"true", true_main},
220 {"false", false_main}, 230 {"false", false_main},
221#endif 231#endif
232#ifdef BB_WC //usr/bin
233 {"wc", wc_main},
234#endif
222#ifdef BB_UNAME //bin 235#ifdef BB_UNAME //bin
223 {"uname", uname_main}, 236 {"uname", uname_main},
224#endif 237#endif
@@ -241,6 +254,8 @@ static const struct Applet applets[] = {
241 {0} 254 {0}
242}; 255};
243 256
257
258
244int main(int argc, char **argv) 259int main(int argc, char **argv)
245{ 260{
246 char *s = argv[0]; 261 char *s = argv[0];