summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-04-25 22:40:53 +0000
committerRob Landley <rob@landley.net>2006-04-25 22:40:53 +0000
commit5fe8d5b9c5930497ecf47817ec3af66bebec52c0 (patch)
treeb9cccd00d8ba8b9e7df50e6aaa76a7ed5145b0c1 /coreutils
parent7818a422bc9a9dee61b1c3d87786d1724fb9b20a (diff)
downloadbusybox-w32-5fe8d5b9c5930497ecf47817ec3af66bebec52c0.tar.gz
busybox-w32-5fe8d5b9c5930497ecf47817ec3af66bebec52c0.tar.bz2
busybox-w32-5fe8d5b9c5930497ecf47817ec3af66bebec52c0.zip
Convert a chunk of usage.h to USE_ and SKIP_ (more to do there), and fix a
DEFALT typo in du while I was there.
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/Config.in9
-rw-r--r--coreutils/du.c8
2 files changed, 12 insertions, 5 deletions
diff --git a/coreutils/Config.in b/coreutils/Config.in
index 5d2965b47..4eb3db052 100644
--- a/coreutils/Config.in
+++ b/coreutils/Config.in
@@ -26,6 +26,13 @@ config CONFIG_CAT
26 cat is used to concatenate files and print them to the standard 26 cat is used to concatenate files and print them to the standard
27 output. Enable this option if you wish to enable the 'cat' utility. 27 output. Enable this option if you wish to enable the 'cat' utility.
28 28
29config CONFIG_FEATURE_CAT_ESCAPE
30 bool "support -vetET"
31 depends on CONFIG_CAT
32 default n
33 help
34 Sheer bloat.
35
29config CONFIG_CHGRP 36config CONFIG_CHGRP
30 bool "chgrp" 37 bool "chgrp"
31 default n 38 default n
@@ -173,7 +180,7 @@ config CONFIG_DU
173 du is used to report the amount of disk space used 180 du is used to report the amount of disk space used
174 for specified files. 181 for specified files.
175 182
176config CONFIG_FEATURE_DU_DEFALT_BLOCKSIZE_1K 183config CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K
177 bool "Use a default blocksize of 1024 bytes (1K)" 184 bool "Use a default blocksize of 1024 bytes (1K)"
178 default y 185 default y
179 depends on CONFIG_DU 186 depends on CONFIG_DU
diff --git a/coreutils/du.c b/coreutils/du.c
index 38790f83b..b204a025a 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -31,12 +31,12 @@
31#include "busybox.h" 31#include "busybox.h"
32 32
33#ifdef CONFIG_FEATURE_HUMAN_READABLE 33#ifdef CONFIG_FEATURE_HUMAN_READABLE
34# ifdef CONFIG_FEATURE_DU_DEFALT_BLOCKSIZE_1K 34# ifdef CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K
35static unsigned long disp_hr = KILOBYTE; 35static unsigned long disp_hr = KILOBYTE;
36# else 36# else
37static unsigned long disp_hr = 512; 37static unsigned long disp_hr = 512;
38# endif 38# endif
39#elif defined CONFIG_FEATURE_DU_DEFALT_BLOCKSIZE_1K 39#elif defined CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K
40static unsigned int disp_k = 1; 40static unsigned int disp_k = 1;
41#else 41#else
42static unsigned int disp_k; /* bss inits to 0 */ 42static unsigned int disp_k; /* bss inits to 0 */
@@ -160,7 +160,7 @@ int du_main(int argc, char **argv)
160 char *smax_print_depth; 160 char *smax_print_depth;
161 unsigned long opt; 161 unsigned long opt;
162 162
163#ifdef CONFIG_FEATURE_DU_DEFALT_BLOCKSIZE_1K 163#ifdef CONFIG_FEATURE_DU_DEFUALT_BLOCKSIZE_1K
164 if (getenv("POSIXLY_CORRECT")) { /* TODO - a new libbb function? */ 164 if (getenv("POSIXLY_CORRECT")) { /* TODO - a new libbb function? */
165#ifdef CONFIG_FEATURE_HUMAN_READABLE 165#ifdef CONFIG_FEATURE_HUMAN_READABLE
166 disp_hr = 512; 166 disp_hr = 512;
@@ -194,7 +194,7 @@ int du_main(int argc, char **argv)
194#else 194#else
195 bb_opt_complementally = "H-L:L-H:s-d:d-s"; 195 bb_opt_complementally = "H-L:L-H:s-d:d-s";
196 opt = bb_getopt_ulflags(argc, argv, "aHkLsx" "d:" "lc", &smax_print_depth); 196 opt = bb_getopt_ulflags(argc, argv, "aHkLsx" "d:" "lc", &smax_print_depth);
197#if !defined CONFIG_FEATURE_DU_DEFALT_BLOCKSIZE_1K 197#if !defined CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K
198 if((opt & (1 << 2))) { 198 if((opt & (1 << 2))) {
199 /* -k opt */ 199 /* -k opt */
200 disp_k = 1; 200 disp_k = 1;