aboutsummaryrefslogtreecommitdiff
path: root/df.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixed df.c so that nfs volumes will display properly (fixing bug #1113).andersen2001-03-091-6/+10
| | | | | | | | | | Problem was 512/1024 = 0 if you use longs, so I cast KILOBYTE to a double, then cast the result back to an int after the math is done, letting C's type promotion do its magic for the rest. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2032 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupandersen2001-03-091-0/+1
| | | | | | | | warnings with glibc 2.2 and use always use xfopen -Erik git-svn-id: svn://busybox.net/trunk/busybox@2021 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some minor cleanups to df.c. Also, with Erik's blessing, changed name ofmarkw2001-03-071-34/+35
| | | | | | | 'format' function to 'make_human_readable_str'. git-svn-id: svn://busybox.net/trunk/busybox@2001 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Static-ify a variable. make du work with all the human-readable variantsandersen2001-03-071-1/+1
| | | | | | | since my last pass only fixed 'du -h' but left the others broken. git-svn-id: svn://busybox.net/trunk/busybox@1997 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up df so it works properlyandersen2001-03-071-10/+5
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1993 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Oops! I left in my debug noise.andersen2001-02-211-3/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1874 69ca8d6d-28ef-0310-b511-8ec308f3f277
* df was totally broken. So I fixed it.andersen2001-02-211-11/+32
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1873 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Small patch from Kent Robotti to show megabytes in human-readable output.markw2001-02-201-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1872 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Minor cleanup.andersen2001-02-201-13/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1871 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-02-201-1/+1
| | | | | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Get rid of long stale usage message code.andersen2001-02-171-6/+3
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1849 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-02-141-1/+1
| | | | | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed trailing \n from error_msg{,_and_die} messages.kraai2001-01-311-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up copyright msgs. Bump version to 0.49 in preparation forandersen2001-01-271-1/+1
| | | | | | | | a release. Update the website with release details. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1697 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix header file usage -- there were many unnecessary header files included inandersen2001-01-271-0/+2
| | | | | | | | | | busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1695 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix silly typoandersen2001-01-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1637 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add HUMAN_READABLE define for -m and -h support in du, df, and lsrjune2001-01-221-13/+55
| | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@1635 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-4/+4
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix exit status on failure.kraai2000-12-061-11/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1383 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stop using TRUE and FALSE for exit status.kraai2000-12-011-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1360 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-251-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some #include updates.andersen2000-08-101-1/+0
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@946 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract usage information into a separate file.kraai2000-07-161-6/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use errorMsg rather than fprintf.kraai2000-07-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove misguided klude around for 2.4.x-test* brokenness. Al Viroandersen2000-07-051-3/+0
| | | | | | | | will be removing this stuff from /proc/mounts real soon now I am assured. -Erik git-svn-id: svn://busybox.net/trunk/busybox@740 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updates to handle Linux 2.4.0 kernels (kludged around the "none" entries inandersen2000-06-261-0/+3
| | | | | | | | /proc/mounts, added a hack to make sysinfo work with both old and new kernels). -Erik git-svn-id: svn://busybox.net/trunk/busybox@701 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updates to a number of apps to remove warnings/compile errors under libc5.andersen2000-06-191-1/+1
| | | | | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik git-svn-id: svn://busybox.net/trunk/busybox@660 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add new apps md5sum uudecode uuencode, fix some minor formatting things.andersen2000-06-131-1/+0
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@640 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * cp -fa now works as expected for symlinks (it didn't before)erik2000-05-101-2/+5
| | | | | | | | | * zcat works again (wasn't working since option parsing was broken) * more doc updates/more support for BB_FEATURE_SIMPLE_HELP -Erik git-svn-id: svn://busybox.net/trunk/busybox@530 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Upates to include copyright 2000 to everythingerik2000-04-131-4/+6
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@447 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use the nice new find_real_root_device function to find theerik2000-03-221-5/+3
| | | | | | | | | name of the root device, instead of having libc read whatever lies happen to be in /etc/mtab. -Erik git-svn-id: svn://busybox.net/trunk/busybox@418 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A few updates (including the cp fix the Craig has been looking for)erik2000-03-041-0/+8
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@386 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some formatting updates (ran the code through indent)erik2000-02-081-59/+60
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@357 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The latest and greatest. init basically works, though needserik2000-01-051-3/+0
| | | | | | | | | a minor inittab design change to accomodate specifying the device to run each process on. -Erik git-svn-id: svn://busybox.net/trunk/busybox@279 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stufandersen1999-11-271-3/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@122 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Latest and greatestandersen1999-11-121-7/+7
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@97 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed ln, df, and removed redundant stuff from mtab.andersen1999-11-061-44/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@81 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More stuff.andersen1999-11-041-3/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@74 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed up copyright notices and suchandersen1999-10-201-107/+118
| | | | git-svn-id: svn://busybox.net/trunk/busybox@49 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added sfdisk. Ststic-ified a bunch of stuff.andersen1999-10-191-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@38 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More stuffandersen1999-10-131-44/+44
| | | | git-svn-id: svn://busybox.net/trunk/busybox@21 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more stuffandersen1999-10-071-2/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Made df workandersen1999-10-061-31/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More stuff.andersen1999-10-061-10/+51
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Initial revisionandersen1999-10-051-0/+103
git-svn-id: svn://busybox.net/trunk/busybox@5 69ca8d6d-28ef-0310-b511-8ec308f3f277