diff options
author | Richard June <rjune@bravegnuworld.com> | 2001-01-22 22:35:38 +0000 |
---|---|---|
committer | Richard June <rjune@bravegnuworld.com> | 2001-01-22 22:35:38 +0000 |
commit | 6d0921cc0bb01b1d090285c487f8c1120dfa5d3a (patch) | |
tree | 97ed53aec9cbe3a3021804e9758abb3e04f05879 /include/busybox.h | |
parent | 3b3f5c364a486dc2c081f0684a4315740f349be1 (diff) | |
download | busybox-w32-6d0921cc0bb01b1d090285c487f8c1120dfa5d3a.tar.gz busybox-w32-6d0921cc0bb01b1d090285c487f8c1120dfa5d3a.tar.bz2 busybox-w32-6d0921cc0bb01b1d090285c487f8c1120dfa5d3a.zip |
Add HUMAN_READABLE define for -m and -h support in du, df, and ls
Add support for -k in du, df, and ls(no define, it's for compatibliity with the GNU utils as bb does -k by default)
Fix bug #1084
Diffstat (limited to 'include/busybox.h')
-rw-r--r-- | include/busybox.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/busybox.h b/include/busybox.h index a89ac3694..018c636cf 100644 --- a/include/busybox.h +++ b/include/busybox.h | |||
@@ -259,4 +259,11 @@ extern int sysinfo (struct sysinfo* info); | |||
259 | #define isclr(a,i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0) | 259 | #define isclr(a,i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0) |
260 | #endif | 260 | #endif |
261 | 261 | ||
262 | #ifdef BB_FEATURE_HUMAN_READABLE | ||
263 | char *format(unsigned long val, unsigned long hr); | ||
264 | #define KILOBYTE 1024 | ||
265 | #define MEGABYTE (KILOBYTE*1024) | ||
266 | #define GIGABYTE (MEGABYTE*1024) | ||
267 | #endif | ||
268 | |||
262 | #endif /* _BB_INTERNAL_H_ */ | 269 | #endif /* _BB_INTERNAL_H_ */ |