aboutsummaryrefslogtreecommitdiff
path: root/coreutils/du.c
AgeCommit message (Collapse)Author
2003-06-20last_patch89 from vodz:Eric Andersen
Manuel, I rewrite bb_getopt_ulflags() function for more universal usage. My version support now: - options with arguments (optional arg as GNU extension also) - complementaly and/or incomplementaly and/or incongruously and/or list options - long_opt (all applets may have long option, add supporting is trivial) This realisation full compatibile from your version. Code size grow 480 bytes, but only coreutils/* over compensate this size after using new function. Last patch reduced over 800 bytes and not full applied to all. "mkdir" and "mv" applets have long_opt now for demonstrate trivial addition support long_opt with usage new bb_getopt_ulflags(). Complementaly and/or incomplementaly and/or incongruously and/or list options logic is not trivial, but new "cut" and "grep" applets using this logic for examples with full demostrating. New "grep" applet reduced over 300 bytes. Mark, Also. I removed bug from "grep" applet. $ echo a b | busybox grep -e a b a b a b But right is printing one only. --w vodz
2003-05-26Vodz, last_patch_86Glenn L McGrath
2003-03-19Major coreutils update.Manuel Novoa III
2002-08-23move some globals to bssAaron Lehmann
2002-08-23Run through indentGlenn L McGrath
2002-04-06Patch from Edward Betts <edward@debian.org> to add -x switch to du.cEric Andersen
2001-12-17Make cp and mv optionally preserve hard links.Matt Kraai
2001-10-24Major rework of the directory structure and the entire build system.Eric Andersen
-Erik
2001-06-30Fix a silly logic error which caused symlinks to be printed twice, andEric Andersen
wrongly caused the return code to be an error. -Erik
2001-06-13I reworked make_human_readable_str so it now has a sane interface,Eric Andersen
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
2001-06-01Vladimir's last_patch13, containing several bugfixes.Eric Andersen
2001-05-07Patch from Vladimir to use last_char_is to simplify du.cEric Andersen
2001-05-03Remove summary header. Not present in GNU or SUSv2.Matt Kraai
2001-04-25Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen
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
2001-04-09Apply Vladimir's latest cleanup patch.Eric Andersen
-Erik
2001-03-09Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupEric Andersen
warnings with glibc 2.2 and use always use xfopen -Erik
2001-03-07Some minor cleanups to df.c. Also, with Erik's blessing, changed name ofMark Whitley
'format' function to 'make_human_readable_str'.
2001-03-07Static-ify a variable. make du work with all the human-readable variantsEric Andersen
since my last pass only fixed 'du -h' but left the others broken.
2001-03-07Fix up du so it behaves itself also.Eric Andersen
-Erik
2001-03-06I made these little simplifications a while back, bug forgot toEric Andersen
check this stuff in. -Erik
2001-02-20It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen
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
2001-02-14This patch, put together by Manuel Novoa III, is a merge of workEric Andersen
done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
2001-01-27Fix up copyright msgs. Bump version to 0.49 in preparation forEric Andersen
a release. Update the website with release details. -Erik
2001-01-27Fix header file usage -- there were many unnecessary header files included inEric Andersen
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
2001-01-22Add HUMAN_READABLE define for -m and -h support in du, df, and lsRichard June
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
2001-01-18Eliminate calls of the form "fprintf(stdout,". Thanks for the idea toMatt Kraai
Vladimir N. Oleynik.
2000-12-12du.c error msg cleanup from Kent RobottiEric Andersen
2000-12-11Patch from kent robotti to fix a buglet whereEric Andersen
# 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...
2000-12-09Fix problem where 'du file_that_exists' doesn't work.Eric Andersen
2000-12-07Changed names of functions in utility.c and all affected files, to makeMark Whitley
compliant with the style guide. Everybody rebuild your tags file!
2000-12-06Must compile before committing.Matt Kraai
2000-12-06Fix exit status on failure.Matt Kraai
2000-12-01Stop using TRUE and FALSE for exit status.Matt Kraai
2000-09-25Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen
-Erik
2000-07-17The result of getopt() is "int" and should be treated as suchPavel Roskin
2000-07-16Extract usage information into a separate file.Matt Kraai
2000-07-14Getopt'rd by Marc Nijdam <marc_nijdam@hp.com>Eric Andersen
-Erik
2000-07-14Use errorMsg rather than fprintf.Matt Kraai
2000-06-19Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen
Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
2000-05-10* cp -fa now works as expected for symlinks (it didn't before)Erik Andersen
* zcat works again (wasn't working since option parsing was broken) * more doc updates/more support for BB_FEATURE_SIMPLE_HELP -Erik
2000-04-28Latest and greatest. Some effort at libc5 (aiming towards newlib)Erik Andersen
compatability. -Erik
2000-04-13Upates to include copyright 2000 to everythingErik Andersen
-Erik
2000-03-04A few updates (including the cp fix the Craig has been looking for)Erik Andersen
-Erik
2000-02-21Forgot to add basename. More fixes to du fromErik Andersen
Friedrich Vedder <fwv@myrtle.lahn.de>. -Erik
2000-02-19Fixed du. Now behaves just like GNU du (only less so).Erik Andersen
-Erik
2000-02-13- I suspect the problem has something to do w/ symlinks.John Beppu
- 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.
2000-02-11UpdatesErik Andersen
-Erik
2000-02-08Some formatting updates (ran the code through indent)Erik Andersen
-Erik
2000-02-07A few minor updates. ;-)Erik Andersen
Seriously though, read the Changelog for busybox 0.42, which this is about to become... -Erik
2000-01-23* added (and documented) "-n" option for head -Erik Andersen
contributed Friedrich Vedder <fwv@myrtle.lahn.de> * Cleanup for a number of usage messages -- also contributed Friedrich Vedder <fwv@myrtle.lahn.de> -Erik