diff options
| author | Eric Andersen <andersen@codepoet.org> | 2001-06-13 08:02:45 +0000 |
|---|---|---|
| committer | Eric Andersen <andersen@codepoet.org> | 2001-06-13 08:02:45 +0000 |
| commit | f429baca868b7f62ffdeefbfce41abd677f97876 (patch) | |
| tree | 64925420925deb361a2024b9b362e5c987334124 /include | |
| parent | 17822cd60aaf9333a9895494edcf03a0037de54c (diff) | |
| download | busybox-w32-f429baca868b7f62ffdeefbfce41abd677f97876.tar.gz busybox-w32-f429baca868b7f62ffdeefbfce41abd677f97876.tar.bz2 busybox-w32-f429baca868b7f62ffdeefbfce41abd677f97876.zip | |
I reworked make_human_readable_str so it now has a sane interface,
and then fixed up df, du, and ls to use the new interface. I also
fixed up some formatting issues in ls while I was in there.
-Erik
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index f24a38109..893a9f07f 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -198,12 +198,12 @@ struct sysinfo { | |||
| 198 | }; | 198 | }; |
| 199 | extern int sysinfo (struct sysinfo* info); | 199 | extern int sysinfo (struct sysinfo* info); |
| 200 | 200 | ||
| 201 | const char *make_human_readable_str(unsigned long val, unsigned long not_hr); | ||
| 202 | enum { | 201 | enum { |
| 203 | KILOBYTE = 1024, | 202 | KILOBYTE = 1024, |
| 204 | MEGABYTE = (KILOBYTE*1024), | 203 | MEGABYTE = (KILOBYTE*1024), |
| 205 | GIGABYTE = (MEGABYTE*1024) | 204 | GIGABYTE = (MEGABYTE*1024) |
| 206 | }; | 205 | }; |
| 206 | const char *make_human_readable_str(unsigned long size, unsigned long block_size, unsigned long display_unit); | ||
| 207 | 207 | ||
| 208 | int ask_confirmation(void); | 208 | int ask_confirmation(void); |
| 209 | int klogctl(int type, char * b, int len); | 209 | int klogctl(int type, char * b, int len); |
