aboutsummaryrefslogtreecommitdiff
path: root/coreutils/du.c
AgeCommit message (Collapse)Author
2007-03-14missed hunk of "stop using big static buffer for inode hash"Denis Vlasenko
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
2007-01-29preparatory patch for -Wwrite-strings #1Denis Vlasenko
2006-12-18du: dietlibc compat fix, style fixes. Thanks to sampo@symlabs.com.Denis Vlasenko
2006-10-27reshuffle libbb.h contents so that order of decls makes senseDenis Vlasenko
Found bad typo in largefile support :)
2006-10-26remove bb_printf and the likeDenis Vlasenko
2006-10-20message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko
2006-10-08attempt to regularize atoi mess.Denis Vlasenko
2006-10-03getopt_ulflags -> getopt32.Denis Vlasenko
It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
2006-08-28- pull from busybox_scratch: r15829:15850Bernhard Reutner-Fischer
Various fixes, cleanups and shrinkage: saves 952 Bytes: text data bss dec hex filename 1087742 15853 790632 1894227 1ce753 ../busybox/busybox.old 1086790 15853 790632 1893275 1ce39b busybox via: # scripts/bloat-o-meter ../busybox/busybox_unstripped.old busybox_unstripped function old new delta ipcrm_main 756 822 +66 getval - 61 +61 maybe_set_utc - 40 +40 udhcpc_main 2896 2912 +16 md5_hash_block 428 437 +9 opt 8 16 +8 qgravechar 106 110 +4 make_bitmap 292 295 +3 inflate_unzip 2056 2059 +3 add_partition 1412 1414 +2 __parsespent 156 158 +2 qrealloc 41 42 +1 format - 1 +1 catv_main 313 314 +1 watch_main 293 292 -1 varunset 81 80 -1 part 1 - -1 check_if_skip 837 836 -1 start_stop_daemon_main 840 837 -3 create_lost_and_found 175 172 -3 supress_non_delimited_lines 4 - -4 static.l 4 - -4 static.c 5 1 -4 bsd_sum_file 237 233 -4 eval2 338 332 -6 arithmetic_common 166 158 -8 cmpfunc 22 5 -17 cksum_main 294 275 -19 cmp_main 465 439 -26 dd_main 1535 1508 -27 rmmod_main 376 333 -43 cut_file 727 644 -83 ipcs_main 3809 3721 -88 cut_main 722 614 -108 date_main 1443 1263 -180 remove_ids 222 - -222 ------------------------------------------------------------------------------ (add/remove: 3/4 grow/shrink: 11/18 up/down: 217/-853) Total: -636 bytes
2006-08-03These should have been part of 15767 too.Rob Landley
2006-04-25Convert a chunk of usage.h to USE_ and SKIP_ (more to do there), and fix aRob Landley
DEFALT typo in du while I was there.
2006-04-12- add and use bb_opendir(), bb_xopendir().Bernhard Reutner-Fischer
text data bss dec hex filename 889445 9392 1035784 1934621 1d851d busybox.gcc-4.2.orig 889297 9392 1035784 1934473 1d8489 busybox.gcc-4.2 889009 9820 1037860 1936689 1d8d31 busybox.gcc-4.1.orig 888817 9820 1037860 1936497 1d8c71 busybox.gcc-4.1
2006-01-31avoid signed<->unsigned warning"Vladimir N. Oleynik"
2005-09-051) bb_opt_complementaly -> bb_opt_complementally"Vladimir N. Oleynik"
2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2004-03-10When displaying the size in 1kB blocks round up if an odd number ofGlenn L McGrath
blocks
2004-03-10Patch by Seth W. Klein, the -l switch was reversedGlenn L McGrath
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