aboutsummaryrefslogtreecommitdiff
path: root/libbb/dump.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* hexdump: fix "hexdump nonexistent_file" handlingDenys Vlasenko2010-02-061-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: robustify isXXXX(). +39 bytesDenys Vlasenko2009-11-181-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: code shrink via NOINLINEDenys Vlasenko2009-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta expand_vars_to_list - 2118 +2118 lzo1x_optimize - 1429 +1429 run_pipe 358 1775 +1417 arith_apply - 1335 +1335 mainQSort3 - 1198 +1198 logdir_open - 1163 +1163 rewrite - 1039 +1039 dump_identity - 987 +987 do_shm - 884 +884 cpio_o - 863 +863 cpio_main 1450 560 -890 ipcs_main 3442 2523 -919 bb_dump_dump 2611 1488 -1123 process_dev 4572 3405 -1167 logdirs_reopen 1308 86 -1222 arith 2084 707 -1377 mainSort 2622 1202 -1420 do_lzo_compress 2276 799 -1477 run_list 2491 943 -1548 expand_variables 2280 135 -2145 ------------------------------------------------------------------------------ (add/remove: 9/0 grow/shrink: 1/10 up/down: 12433/-13288) Total: -855 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: replace some memmove's with memcpy's (Ron (ron AT debian.org))Denis Vlasenko2008-11-161-6/+6
| | | | | bb_dump_dump 2674 2611 -63
* hexdump: fix SEGV in hexdump -e ""Denis Vlasenko2008-08-231-2/+3
|
* libbb: dump: do not use uninitialized memory. close bug 4364.Denis Vlasenko2008-07-291-4/+3
|
* libbb: get rid of statics in dump.c; code shrinks a lot tooDenis Vlasenko2008-07-161-138/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta alloc_dumper - 26 +26 hexdump_main 600 601 +1 static.done 1 - -1 static.ateof 1 - -1 bb_dump_vflag 1 - -1 static.savp 4 - -4 static.nextfs 4 - -4 static.curp 4 - -4 exitval 4 - -4 endfu 4 - -4 bb_dump_length 4 - -4 bb_dump_fshead 4 - -4 bb_dump_blocksize 4 - -4 _argv 4 - -4 bb_dump_add 365 358 -7 savaddress 8 - -8 eaddress 8 - -8 bb_dump_skip 8 - -8 address 8 - -8 bb_dump_dump 2748 2672 -76 next 538 445 -93 ------------------------------------------------------------------------------ (add/remove: 1/16 grow/shrink: 1/3 up/down: 27/-247) Total: -220 bytes text data bss dec hex filename 789458 607 6764 796829 c289d busybox_old 789309 601 6696 796606 c27be busybox_unstripped
* od,hexdump: fix bug where xrealloc may move pointer,Denis Vlasenko2008-07-161-62/+68
| | | | | | leaving other pointers dangling (bug 4104). + many style fixes in libbb/dump.c.
* libbb: introduce and use xrealloc_vectorDenis Vlasenko2008-07-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta xrealloc_vector_helper - 51 +51 create_list 84 99 +15 getopt_main 690 695 +5 passwd_main 1049 1053 +4 get_cached 85 89 +4 msh_main 1377 1380 +3 add_match 42 41 -1 read_lines 720 718 -2 grave 1068 1066 -2 fill_match_lines 143 141 -2 add_to_dirlist 67 65 -2 add_input_file 49 47 -2 act 252 250 -2 fsck_main 2252 2246 -6 man_main 765 757 -8 bb_internal_initgroups 228 220 -8 cut_main 1052 1041 -11 add_edge_to_node 55 43 -12 dpkg_main 3851 3835 -16 ifupdown_main 2202 2178 -24 sort_main 838 812 -26 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/15 up/down: 82/-124) Total: -42 bytes
* *: introduce and use FAST_FUNC: regparm on i386, otherwise no-onDenis Vlasenko2008-06-271-3/+3
| | | | | | | text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
* clean up TODO file. No real code changes.Denis Vlasenko2008-03-171-2/+2
|
* - spelling fixesBernhard Reutner-Fischer2008-02-111-1/+1
|
* fbset: fix buglet where we were using wrong pointerDenis Vlasenko2007-11-061-2/+4
| | | | | | readahead: stop using stdio.h *: style fixes
* 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.Denis Vlasenko2007-10-011-4/+4
| | | | | 263 bytes saved.
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-5/+5
| | | | | | | | | 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
* Replace index_in_[sub]str_array with index_in_[sub]strings,Denis Vlasenko2007-07-241-1/+1
| | | | | | | | | which scans thru "abc\0def\0123\0\0" type strings. Saves 250 bytes. text data bss dec hex filename 781266 1328 11844 794438 c1f46 busybox_old 781010 1328 11844 794182 c1e46 busybox_unstripped
* random shrinkage of statics, -60 bytes savedDenis Vlasenko2007-06-211-6/+10
|
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-1/+1
|
* style fixesDenis Vlasenko2006-12-261-1/+1
| | | | last xcalloc replaced by xzalloc
* leftover of e2fsck surgeryDenis Vlasenko2006-12-261-1/+3
|
* remove casts from xmalloc()Denis Vlasenko2006-12-191-2/+2
|
* style cleanup: return(a) -> return a, part 2Denis Vlasenko2006-11-271-8/+8
|
* style cleanup: return(a) -> return a, part 1Denis Vlasenko2006-11-271-3/+3
|
* last nail into error_msg() (de)capitalizationDenis Vlasenko2006-10-271-4/+4
|
* Implement optional syslog logging using ordinaryDenis Vlasenko2006-09-061-2/+2
| | | | | | bb_xx_msg calls, and convert networking/* to it. The rest of bbox will be converted gradually.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-4/+1
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-0/+1
|
* Remove all usage of the "register" storage class specifier."Robert P. J. Day"2006-07-011-10/+10
|
* Fix bug http://bugs.busybox.net/view.php?id=874 where hexdump -C got itsRob Landley2006-06-281-2/+3
| | | | spacing wrong.
* skip_whitespace() shouldn't claim its return value is const, it doesn't knowRob Landley2006-06-181-18/+15
| | | | that and callers wind up typecasting it back.
* - convert xcalloc(1,x) to xzallocBernhard Reutner-Fischer2006-05-311-3/+3
|
* use memmove() instead of bcopy()Mike Frysinger2006-04-161-6/+6
|
* use memcmp() not bcmp()Mike Frysinger2006-04-161-2/+2
|
* rfelker writes in Bug 740: s/u_char/unsigned char/Mike Frysinger2006-02-191-12/+12
|
* - bzero -> memsetBernhard Reutner-Fischer2006-01-311-14/+2
| | | | | | | | | | | | | | | text data bss dec hex filename 1652855 14444 1215616 2882915 2bfd63 busybox.oorig.gcc-3.3 1652823 14444 1215616 2882883 2bfd43 busybox.gcc-3.3 1603655 14412 1215552 2833619 2b3cd3 busybox.oorig.gcc-3.4 1603655 14412 1215552 2833619 2b3cd3 busybox.gcc-3.4 1609755 14508 1215744 2840007 2b55c7 busybox.oorig.gcc-4.0 1609755 14508 1215744 2840007 2b55c7 busybox.gcc-4.0 1590495 13516 1215392 2819403 2b054b busybox.oorig.gcc-4.1-HEAD 1590495 13516 1215392 2819403 2b054b busybox.gcc-4.1-HEAD 1589079 13036 1213248 2815363 2af583 busybox.oorig.gcc-4.2-HEAD 1589079 13036 1213248 2815363 2af583 busybox.gcc-4.2-HEAD
* just whitespaceTim Riker2006-01-251-1/+1
|
* Patch from Felipe Kellermann, "There is a call to printf using `*pr-cchar'Glenn L McGrath2004-07-231-1/+1
| | | | referencing a string and using a single char, when *p <= 0x1f."
* Add part of a patch from Vernon Sauder that i missed a while backGlenn L McGrath2004-05-021-1/+1
|
* Add missing include filesEric Andersen2004-03-271-0/+1
|
* s/fileno\(stdin\)/STDIN_FILENO/gEric Andersen2004-03-271-1/+1
| | | | s/fileno\(stdout\)/STDOUT_FILENO/g
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-2/+2
|
* Patch from Vernon Sauder.Glenn L McGrath2004-03-051-1/+1
| | | | | | The off_t type is not a consistent size; it depends on the kernel options (something about large file support). Therefore, the format string for printing an address is not always the same.
* s/u_int/unsigned int/gEric Andersen2004-01-301-4/+4
| | | | s/u_short/unsigned short/g
* sync with waldiGlenn L McGrath2003-04-211-1/+1
|
* Patch from David Updegraff to use calloc so that forward pointers start outEric Andersen2003-04-191-7/+29
| | | | | NULL, and so it can handle format strings that have stuff _after_ the last %? specification
* Major coreutils update.Manuel Novoa III2003-03-191-313/+204
|
* Run through indent, fix commentsGlenn L McGrath2002-08-221-176/+222
|
* Remove advertising clauses in accordance withAaron Lehmann2002-06-231-5/+1
| | | | ftp://ftp.cs.berkeley.edu/ucb/4bsd/README.Impt.License.Change
* Introduce od and hexdump appletsGlenn L McGrath2001-11-021-0/+863