aboutsummaryrefslogtreecommitdiff
path: root/coreutils/du.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-10-24 05:00:29 +0000
committerEric Andersen <andersen@codepoet.org>2001-10-24 05:00:29 +0000
commitbdfd0d78bc44e73d693510e70087857785b3b521 (patch)
tree153a573095afac8d8d0ea857759ecabd77fb28b7 /coreutils/du.c
parent9260fc5552a3ee52eb95823aa6689d52a1ffd33c (diff)
downloadbusybox-w32-bdfd0d78bc44e73d693510e70087857785b3b521.tar.gz
busybox-w32-bdfd0d78bc44e73d693510e70087857785b3b521.tar.bz2
busybox-w32-bdfd0d78bc44e73d693510e70087857785b3b521.zip
Major rework of the directory structure and the entire build system.
-Erik
Diffstat (limited to 'coreutils/du.c')
-rw-r--r--coreutils/du.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/coreutils/du.c b/coreutils/du.c
index fb649aee5..c378837d0 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -2,9 +2,8 @@
2/* 2/*
3 * Mini du implementation for busybox 3 * Mini du implementation for busybox
4 * 4 *
5 * 5 * Copyright (C) 1999,2000,2001 by Lineo, inc. and John Beppu
6 * Copyright (C) 1999,2000,2001 by Lineo, inc. 6 * Copyright (C) 1999,2000,2001 by John Beppu <beppu@codepoet.org>
7 * Written by John Beppu <beppu@lineo.com>
8 * 7 *
9 * This program is free software; you can redistribute it and/or modify 8 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
@@ -33,7 +32,7 @@
33#include "busybox.h" 32#include "busybox.h"
34 33
35 34
36#ifdef BB_FEATURE_HUMAN_READABLE 35#ifdef CONFIG_FEATURE_HUMAN_READABLE
37static unsigned long disp_hr = KILOBYTE; 36static unsigned long disp_hr = KILOBYTE;
38#endif 37#endif
39 38
@@ -46,7 +45,7 @@ static Display *print;
46 45
47static void print_normal(long size, char *filename) 46static void print_normal(long size, char *filename)
48{ 47{
49#ifdef BB_FEATURE_HUMAN_READABLE 48#ifdef CONFIG_FEATURE_HUMAN_READABLE
50 printf("%s\t%s\n", make_human_readable_str(size<<10, 1, disp_hr), filename); 49 printf("%s\t%s\n", make_human_readable_str(size<<10, 1, disp_hr), filename);
51#else 50#else
52 printf("%ld\t%s\n", size, filename); 51 printf("%ld\t%s\n", size, filename);
@@ -207,7 +206,7 @@ int du_main(int argc, char **argv)
207 206
208 /* parse argv[] */ 207 /* parse argv[] */
209 while ((c = getopt(argc, argv, "sl" 208 while ((c = getopt(argc, argv, "sl"
210#ifdef BB_FEATURE_HUMAN_READABLE 209#ifdef CONFIG_FEATURE_HUMAN_READABLE
211"hm" 210"hm"
212#endif 211#endif
213"k")) != EOF) { 212"k")) != EOF) {
@@ -218,7 +217,7 @@ int du_main(int argc, char **argv)
218 case 'l': 217 case 'l':
219 count_hardlinks = 1; 218 count_hardlinks = 1;
220 break; 219 break;
221#ifdef BB_FEATURE_HUMAN_READABLE 220#ifdef CONFIG_FEATURE_HUMAN_READABLE
222 case 'h': disp_hr = 0; break; 221 case 'h': disp_hr = 0; break;
223 case 'm': disp_hr = MEGABYTE; break; 222 case 'm': disp_hr = MEGABYTE; break;
224#endif 223#endif
@@ -247,7 +246,7 @@ int du_main(int argc, char **argv)
247 return status; 246 return status;
248} 247}
249 248
250/* $Id: du.c,v 1.50 2001/06/30 17:54:20 andersen Exp $ */ 249/* $Id: du.c,v 1.51 2001/10/24 04:59:27 andersen Exp $ */
251/* 250/*
252Local Variables: 251Local Variables:
253c-file-style: "linux" 252c-file-style: "linux"