summaryrefslogtreecommitdiff
path: root/du.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a silly logic error which caused symlinks to be printed twice, andEric Andersen2001-06-301-5/+4
| | | | | wrongly caused the return code to be an error. -Erik
* I reworked make_human_readable_str so it now has a sane interface,Eric Andersen2001-06-131-13/+2
| | | | | | 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
* Vladimir's last_patch13, containing several bugfixes.Eric Andersen2001-06-011-1/+73
|
* Patch from Vladimir to use last_char_is to simplify du.cEric Andersen2001-05-071-6/+5
|
* Remove summary header. Not present in GNU or SUSv2.Matt Kraai2001-05-031-2/+1
|
* Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen2001-04-251-4/+1
| | | | | | | This way, we can new get rid of all that tedious #define rubbish we used to need to enable specific messages. This way is enormously simpler, and as a bonus also ends up saving us 96 bytes. -Erik
* Apply Vladimir's latest cleanup patch.Eric Andersen2001-04-091-11/+6
| | | | -Erik
* Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupEric Andersen2001-03-091-1/+2
| | | | | warnings with glibc 2.2 and use always use xfopen -Erik
* Some minor cleanups to df.c. Also, with Erik's blessing, changed name ofMark Whitley2001-03-071-3/+3
| | | | 'format' function to 'make_human_readable_str'.
* Static-ify a variable. make du work with all the human-readable variantsEric Andersen2001-03-071-5/+16
| | | | since my last pass only fixed 'du -h' but left the others broken.
* Fix up du so it behaves itself also.Eric Andersen2001-03-071-2/+2
| | | | -Erik
* I made these little simplifications a while back, bug forgot toEric Andersen2001-03-061-4/+2
| | | | | check this stuff in. -Erik
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-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
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-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.
* Fix up copyright msgs. Bump version to 0.49 in preparation for0_49Eric Andersen2001-01-271-2/+2
| | | | | a release. Update the website with release details. -Erik
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-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
* Add HUMAN_READABLE define for -m and -h support in du, df, and lsRichard June2001-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
* Eliminate calls of the form "fprintf(stdout,". Thanks for the idea toMatt Kraai2001-01-181-2/+2
| | | | Vladimir N. Oleynik.
* du.c error msg cleanup from Kent RobottiEric Andersen2000-12-121-2/+2
|
* Patch from kent robotti to fix a buglet whereEric Andersen2000-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...
* Fix problem where 'du file_that_exists' doesn't work.Eric Andersen2000-12-091-2/+2
|
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-071-3/+3
| | | | compliant with the style guide. Everybody rebuild your tags file!
* Must compile before committing.Matt Kraai2000-12-061-2/+2
|
* Fix exit status on failure.Matt Kraai2000-12-061-4/+7
|
* Stop using TRUE and FALSE for exit status.Matt Kraai2000-12-011-2/+2
|
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-2/+2
| | | | -Erik
* The result of getopt() is "int" and should be treated as suchPavel Roskin2000-07-171-2/+2
|
* Extract usage information into a separate file.Matt Kraai2000-07-161-12/+1
|
* Getopt'rd by Marc Nijdam <marc_nijdam@hp.com>Eric Andersen2000-07-141-21/+11
| | | | -Erik
* Use errorMsg rather than fprintf.Matt Kraai2000-07-141-3/+3
|
* Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen2000-06-191-2/+2
| | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
* * cp -fa now works as expected for symlinks (it didn't before)Erik Andersen2000-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
* Latest and greatest. Some effort at libc5 (aiming towards newlib)Erik Andersen2000-04-281-4/+3
| | | | | compatability. -Erik
* Upates to include copyright 2000 to everythingErik Andersen2000-04-131-2/+2
| | | | -Erik
* A few updates (including the cp fix the Craig has been looking for)Erik Andersen2000-03-041-60/+11
| | | | -Erik
* Forgot to add basename. More fixes to du fromErik Andersen2000-02-211-8/+39
| | | | | Friedrich Vedder <fwv@myrtle.lahn.de>. -Erik
* Fixed du. Now behaves just like GNU du (only less so).Erik Andersen2000-02-191-4/+58
| | | | -Erik
* - I suspect the problem has something to do w/ symlinks.John 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.
* UpdatesErik Andersen2000-02-111-2/+6
| | | | -Erik
* Some formatting updates (ran the code through indent)Erik Andersen2000-02-081-91/+94
| | | | -Erik
* A few minor updates. ;-)Erik Andersen2000-02-071-14/+20
| | | | | | Seriously though, read the Changelog for busybox 0.42, which this is about to become... -Erik
* * added (and documented) "-n" option for head -Erik Andersen2000-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
* Reworked the source so it will compile and run under glibc 2.0.7Erik Andersen1999-12-171-4/+1
| | | | | | and linux kernel 2.0.36 (though the dubious reasons why someone would want to do that defy imagination ;) -Erik
* killed an elusive bug in du -s.John Beppu1999-12-161-2/+2
|
* Implemented du -sJohn Beppu1999-12-151-6/+31
|
* Removed a redundant call du(); Save cpu cycles.John Beppu1999-12-101-2/+2
|
* Fixed bug when dealing with files specifiedJohn Beppu1999-12-101-3/+9
| | | | on the command line that didn't exist.
* Fix beppu's email address.Eric Andersen1999-12-101-2/+2
| | | | | BTW, John, go to sleep. It is late. :) -Erik
* Fleshed out du_main().John Beppu1999-12-101-6/+38
| | | | I'm not sure which options to support.
* This is my preliminaryJohn Beppu1999-12-091-0/+83
du implementation. It was written from scratch (doesn't use recursiveAction). I still need to flesh out du_main().