aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Beppu <beppu@lbox.org>1999-12-09 18:29:29 +0000
committerJohn Beppu <beppu@lbox.org>1999-12-09 18:29:29 +0000
commit7a98606d859ce45bb462f6dba53213ce6fc9c49a (patch)
tree0986b5702bdc0f7d3dba4a6c7f65119b3967addd
parent0f5e1ab949193ee7b6228bc66730da9d573464eb (diff)
downloadbusybox-7a98606d859ce45bb462f6dba53213ce6fc9c49a.tar.gz
Modified to include du
-rw-r--r--applets/busybox.c3
-rw-r--r--busybox.c3
-rw-r--r--busybox.def.h1
-rw-r--r--internal.h1
4 files changed, 8 insertions, 0 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index 67a606cc4..c050acc9c 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -45,6 +45,9 @@ static const struct Applet applets[] = {
#ifdef BB_DMESG //bin
{"dmesg", dmesg_main},
#endif
+#ifdef BB_DU //bin
+ {"du", du_main},
+#endif
#ifdef BB_DUTMP //usr/sbin
{"dutmp", dutmp_main},
#endif
diff --git a/busybox.c b/busybox.c
index 67a606cc4..c050acc9c 100644
--- a/busybox.c
+++ b/busybox.c
@@ -45,6 +45,9 @@ static const struct Applet applets[] = {
#ifdef BB_DMESG //bin
{"dmesg", dmesg_main},
#endif
+#ifdef BB_DU //bin
+ {"du", du_main},
+#endif
#ifdef BB_DUTMP //usr/sbin
{"dutmp", dutmp_main},
#endif
diff --git a/busybox.def.h b/busybox.def.h
index 786f98119..efab4941c 100644
--- a/busybox.def.h
+++ b/busybox.def.h
@@ -14,6 +14,7 @@
#define BB_DF
#define BB_DMESG
//#define BB_DUTMP
+#define BB_DU
//#define BB_FDFLUSH
#define BB_FIND
#define BB_FREE
diff --git a/internal.h b/internal.h
index 42c6b93ab..830d30eb4 100644
--- a/internal.h
+++ b/internal.h
@@ -63,6 +63,7 @@ extern int date_main(int argc, char** argv);
extern int dd_main(int argc, char** argv);
extern int df_main(int argc, char** argv);
extern int dmesg_main(int argc, char** argv);
+extern int du_main(int argc, char** argv);
extern int dutmp_main(int argc, char** argv);
extern int false_main(int argc, char** argv);
extern int fdisk_main(int argc, char** argv);