aboutsummaryrefslogtreecommitdiff
path: root/coreutils/du.c
Commit message (Collapse)AuthorAgeFilesLines
* 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.Gravatar Denis Vlasenko2007-10-011-2/+2
| | | | | 263 bytes saved.
* du: remove statics (by Bernhard Fischer <rep.dot.nop@gmail.com>)Gravatar Denis Vlasenko2007-09-031-64/+64
| | | | | | | | | | | | | | | | | | | | | | | | | $ ./.cmk bloatcheck function old new delta du_main 340 348 +8 print 39 40 +1 status 129 125 -4 slink_depth 4 - -4 print_files 4 - -4 one_file_system 4 - -4 max_print_depth 4 - -4 du_depth 4 - -4 disp_hr 4 - -4 count_hardlinks 4 - -4 du 407 401 -6 dir_dev 8 - -8 ------------------------------------------------------------------------------ (add/remove: 0/8 grow/shrink: 2/2 up/down: 9/-46) Total: -37 bytes text data bss dec hex filename 864 12 28 904 388 busybox.t3/coreutils/du.o 867 0 0 867 363 busybox.t4/coreutils/du.o 770647 1063 10788 782498 bf0a2 busybox.t3/busybox_unstripped 770651 1051 10764 782466 bf082 busybox.t4/busybox_unstripped
* don't pass argc in getopt32, it's superfluousGravatar Denis Vlasenko2007-08-181-2/+2
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* trylink: produce even more info about final link stageGravatar Denis Vlasenko2007-08-121-2/+2
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* usage.c: remove reference to busybox.hGravatar Denis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* - fix segfault in reset_ino_dev_hashtable() when *hashtable was null.Gravatar Bernhard Reutner-Fischer2007-04-051-4/+2
| | | | Seen in the testsuite for du -l .../testsuite on exit with CLEAN_UP enabled.
* missed hunk of "stop using big static buffer for inode hash"Gravatar Denis Vlasenko2007-03-141-1/+1
|
* suppress warnings about easch <applet>_main() havingGravatar Denis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #1Gravatar Denis Vlasenko2007-01-291-1/+1
|
* du: dietlibc compat fix, style fixes. Thanks to sampo@symlabs.com.Gravatar Denis Vlasenko2006-12-181-35/+31
|
* reshuffle libbb.h contents so that order of decls makes senseGravatar Denis Vlasenko2006-10-271-3/+3
| | | | Found bad typo in largefile support :)
* remove bb_printf and the likeGravatar Denis Vlasenko2006-10-261-3/+3
|
* message string changes, mostly for consistency, also -32 bytes in .rodataGravatar Denis Vlasenko2006-10-201-1/+1
|
* attempt to regularize atoi mess.Gravatar Denis Vlasenko2006-10-081-1/+1
|
* getopt_ulflags -> getopt32.Gravatar Denis Vlasenko2006-10-031-5/+5
| | | | | | | | 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.
* - pull from busybox_scratch: r15829:15850Gravatar Bernhard Reutner-Fischer2006-08-281-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* These should have been part of 15767 too.Gravatar Rob Landley2006-08-031-1/+1
|
* Convert a chunk of usage.h to USE_ and SKIP_ (more to do there), and fix aGravatar Rob Landley2006-04-251-4/+4
| | | | DEFALT typo in du while I was there.
* - add and use bb_opendir(), bb_xopendir().Gravatar Bernhard Reutner-Fischer2006-04-121-16/+2
| | | | | | | | 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
* avoid signed<->unsigned warningGravatar "Vladimir N. Oleynik"2006-01-311-1/+1
|
* 1) bb_opt_complementaly -> bb_opt_complementallyGravatar "Vladimir N. Oleynik"2005-09-051-2/+2
| | | | | 2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
* Remove trailing whitespace. Update copyright to include 2004.Gravatar Eric Andersen2004-03-151-1/+1
|
* When displaying the size in 1kB blocks round up if an odd number ofGravatar Glenn L McGrath2004-03-101-1/+5
| | | | blocks
* Patch by Seth W. Klein, the -l switch was reversedGravatar Glenn L McGrath2004-03-101-2/+2
|
* last_patch89 from vodz:Gravatar Eric Andersen2003-06-201-45/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Vodz, last_patch_86Gravatar Glenn L McGrath2003-05-261-3/+2
|
* Major coreutils update.Gravatar Manuel Novoa III2003-03-191-80/+147
|
* move some globals to bssGravatar Aaron Lehmann2002-08-231-4/+4
|
* Run through indentGravatar Glenn L McGrath2002-08-231-30/+32
|
* Patch from Edward Betts <edward@debian.org> to add -x switch to du.cGravatar Eric Andersen2002-04-061-2/+12
|
* Make cp and mv optionally preserve hard links.Gravatar Matt Kraai2001-12-171-73/+1
|
* Major rework of the directory structure and the entire build system.Gravatar Eric Andersen2001-10-241-8/+7
| | | | -Erik
* Fix a silly logic error which caused symlinks to be printed twice, andGravatar Eric 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,Gravatar 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.Gravatar Eric Andersen2001-06-011-1/+73
|
* Patch from Vladimir to use last_char_is to simplify du.cGravatar Eric Andersen2001-05-071-6/+5
|
* Remove summary header. Not present in GNU or SUSv2.Gravatar Matt Kraai2001-05-031-2/+1
|
* Move messages.c to libbb. Make each string in messages.c be its own .o file.Gravatar 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.Gravatar Eric Andersen2001-04-091-11/+6
| | | | -Erik
* Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupGravatar Eric 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 ofGravatar Mark Whitley2001-03-071-3/+3
| | | | 'format' function to 'make_human_readable_str'.
* Static-ify a variable. make du work with all the human-readable variantsGravatar Eric 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.Gravatar Eric Andersen2001-03-071-2/+2
| | | | -Erik
* I made these little simplifications a while back, bug forgot toGravatar Eric Andersen2001-03-061-4/+2
| | | | | check this stuff in. -Erik
* It turns out that DODMALLOC was broken when I reorganized busybox.hGravatar Eric 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 workGravatar Eric 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_49Gravatar Eric 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 inGravatar Eric 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 lsGravatar Richard 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 toGravatar Matt Kraai2001-01-181-2/+2
| | | | Vladimir N. Oleynik.