aboutsummaryrefslogtreecommitdiff
path: root/du.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupandersen2001-03-091-1/+2
| | | | | | | | 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-3/+3
| | | | | | | '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-5/+16
| | | | | | | 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 du so it behaves itself also.andersen2001-03-071-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1996 69ca8d6d-28ef-0310-b511-8ec308f3f277
* I made these little simplifications a while back, bug forgot toandersen2001-03-061-4/+2
| | | | | | | | check this stuff in. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1990 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-02-201-6/+6
| | | | | | | | | 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
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-02-141-2/+2
| | | | | | | | | 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
* Fix up copyright msgs. Bump version to 0.49 in preparation forandersen2001-01-271-2/+2
| | | | | | | | 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-1/+3
| | | | | | | | | | 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
* Add HUMAN_READABLE define for -m and -h support in du, df, and lsrjune2001-01-221-3/+23
| | | | | | | | 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
* Eliminate calls of the form "fprintf(stdout,". Thanks for the idea tokraai2001-01-181-2/+2
| | | | | | | Vladimir N. Oleynik. git-svn-id: svn://busybox.net/trunk/busybox@1616 69ca8d6d-28ef-0310-b511-8ec308f3f277
* du.c error msg cleanup from Kent Robottiandersen2000-12-121-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1436 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from kent robotti to fix a buglet whereandersen2000-12-111-3/+2
| | | | | | | | | | # du doesn't_exist du: doesn't_exist: No such file or directory 0 doesn't_exist which was on course wrong. I simplified it a bit... git-svn-id: svn://busybox.net/trunk/busybox@1421 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix problem where 'du file_that_exists' doesn't work.andersen2000-12-091-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1412 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-3/+3
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Must compile before committing.kraai2000-12-061-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1384 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix exit status on failure.kraai2000-12-061-4/+7
| | | | 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-2/+2
| | | | 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-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The result of getopt() is "int" and should be treated as suchproski2000-07-171-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@865 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract usage information into a separate file.kraai2000-07-161-12/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Getopt'rd by Marc Nijdam <marc_nijdam@hp.com>andersen2000-07-141-21/+11
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@859 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use errorMsg rather than fprintf.kraai2000-07-141-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updates to a number of apps to remove warnings/compile errors under libc5.andersen2000-06-191-2/+2
| | | | | | | | 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
* * cp -fa now works as expected for symlinks (it didn't before)erik2000-05-101-4/+7
| | | | | | | | | * 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
* Latest and greatest. Some effort at libc5 (aiming towards newlib)erik2000-04-281-4/+3
| | | | | | | | compatability. -Erik git-svn-id: svn://busybox.net/trunk/busybox@499 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Upates to include copyright 2000 to everythingerik2000-04-131-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@447 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A few updates (including the cp fix the Craig has been looking for)erik2000-03-041-60/+11
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@386 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Forgot to add basename. More fixes to du fromerik2000-02-211-8/+39
| | | | | | | | Friedrich Vedder <fwv@myrtle.lahn.de>. -Erik git-svn-id: svn://busybox.net/trunk/busybox@375 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed du. Now behaves just like GNU du (only less so).erik2000-02-191-4/+58
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@374 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - I suspect the problem has something to do w/ symlinks.beppu2000-02-131-2/+2
| | | | | | | | | | - It's not completely in agreement w/ GNU/du, but + the answer is much closer than before. - Some of the right-shifts seem to have mysteriously disappeared. I put them back in. git-svn-id: svn://busybox.net/trunk/busybox@371 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updateserik2000-02-111-2/+6
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@368 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some formatting updates (ran the code through indent)erik2000-02-081-91/+94
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@357 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A few minor updates. ;-)erik2000-02-071-14/+20
| | | | | | | | | Seriously though, read the Changelog for busybox 0.42, which this is about to become... -Erik git-svn-id: svn://busybox.net/trunk/busybox@351 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * added (and documented) "-n" option for head -erik2000-01-231-2/+2
| | | | | | | | | | contributed Friedrich Vedder <fwv@myrtle.lahn.de> * Cleanup for a number of usage messages -- also contributed Friedrich Vedder <fwv@myrtle.lahn.de> -Erik git-svn-id: svn://busybox.net/trunk/busybox@336 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reworked the source so it will compile and run under glibc 2.0.7erik1999-12-171-4/+1
| | | | | | | | | and linux kernel 2.0.36 (though the dubious reasons why someone would want to do that defy imagination ;) -Erik git-svn-id: svn://busybox.net/trunk/busybox@243 69ca8d6d-28ef-0310-b511-8ec308f3f277
* killed an elusive bug in du -s.beppu1999-12-161-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@238 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Implemented du -sbeppu1999-12-151-6/+31
| | | | git-svn-id: svn://busybox.net/trunk/busybox@231 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed a redundant call du(); Save cpu cycles.beppu1999-12-101-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@202 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed bug when dealing with files specifiedbeppu1999-12-101-3/+9
| | | | | | | on the command line that didn't exist. git-svn-id: svn://busybox.net/trunk/busybox@195 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix beppu's email address.andersen1999-12-101-2/+2
| | | | | | | | BTW, John, go to sleep. It is late. :) -Erik git-svn-id: svn://busybox.net/trunk/busybox@193 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fleshed out du_main().beppu1999-12-101-6/+38
| | | | | | | I'm not sure which options to support. git-svn-id: svn://busybox.net/trunk/busybox@192 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This is my preliminarybeppu1999-12-091-0/+83
du implementation. It was written from scratch (doesn't use recursiveAction). I still need to flesh out du_main(). git-svn-id: svn://busybox.net/trunk/busybox@181 69ca8d6d-28ef-0310-b511-8ec308f3f277