Changeset 118
- Timestamp:
- 02/20/06 11:11:14 (3 years ago)
- Files:
-
- trunk/client/src_initrd/busybox-0.60.5/busybox (modified) (previous)
- trunk/client/src_initrd/busybox-0.60.5/du.c (modified) (4 diffs)
- trunk/client/src_initrd/busybox-0.60.5/libbb.a (modified) (previous)
- trunk/client/src_initrd/busybox-0.60.5/libbb/human_readable.c (modified) (1 diff)
- trunk/client/src_initrd/busybox-0.60.5/libbb/libbb.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/client/src_initrd/busybox-0.60.5/du.c
r11 r118 38 38 #endif 39 39 40 typedef void (Display) (long , char *);40 typedef void (Display) (long long, char *); 41 41 42 42 static int du_depth = 0; … … 47 47 static Display *print; 48 48 49 static void print_normal(long size, char *filename)49 static void print_normal(long long size, char *filename) 50 50 { 51 51 #ifdef BB_FEATURE_HUMAN_READABLE 52 52 printf("%s\t%s\n", make_human_readable_str(size<<10, 1, disp_hr), filename); 53 53 #else 54 printf("%l d\t%s\n", size, filename);54 printf("%lld\t%s\n", size, filename); 55 55 #endif 56 56 } 57 57 58 static void print_summary(long size, char *filename)58 static void print_summary(long long size, char *filename) 59 59 { 60 60 if (du_depth == 1) { … … 64 64 65 65 /* tiny recursive du */ 66 static long du(char *filename)66 static long long du(char *filename) 67 67 { 68 68 struct stat statbuf; 69 long sum;69 long long sum; 70 70 71 71 if ((lstat(filename, &statbuf)) != 0) { … … 171 171 status = EXIT_FAILURE; 172 172 } else { 173 long sum;173 long long sum; 174 174 175 175 for (i=optind; i < argc; i++) { trunk/client/src_initrd/busybox-0.60.5/libbb/human_readable.c
r11 r118 29 29 #include "libbb.h" 30 30 31 const char *make_human_readable_str(unsigned long size,31 const char *make_human_readable_str(unsigned long long size, 32 32 unsigned long block_size, 33 33 unsigned long display_unit) trunk/client/src_initrd/busybox-0.60.5/libbb/libbb.h
r11 r118 201 201 GIGABYTE = (MEGABYTE*1024) 202 202 }; 203 const char *make_human_readable_str(unsigned long size, unsigned long block_size, unsigned long display_unit);203 const char *make_human_readable_str(unsigned long long size, unsigned long block_size, unsigned long display_unit); 204 204 205 205 int ask_confirmation(void);
