aboutsummaryrefslogtreecommitdiff
path: root/archival/dpkg.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* whitespace fixesDenis Vlasenko2008-07-121-1/+1
|
* libbb: introduce and use xrealloc_vectorDenis Vlasenko2008-07-081-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-051-1/+1
|
* libunarchive: stop using static data in archivers - archive_handle_tDenis Vlasenko2008-06-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | can trivially provide space for that. rpm: code shrink tar: simplify autodetection of bz2/.gz function old new delta static.not_first 1 - -1 static.end 1 - -1 bb_makedev 51 49 -2 static.saved_hardlinks_created 4 - -4 static.saved_hardlinks 4 - -4 longname 4 - -4 linkname 4 - -4 hash_file 251 247 -4 get_header_tar 1528 1521 -7 rpm_main 1711 1697 -14 get_header_cpio 965 944 -21 ------------------------------------------------------------------------------ (add/remove: 0/6 grow/shrink: 0/5 up/down: 0/-66) Total: -66 bytes text data bss dec hex filename 804926 611 6868 812405 c6575 busybox_old 804878 611 6852 812341 c6535 busybox_unstripped
* *: introduce and use FAST_FUNC: regparm on i386, otherwise no-onDenis Vlasenko2008-06-271-1/+1
| | | | | | | text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
* dpkg: trivial code shrinkage, and redo G trick correctly.Denis Vlasenko2008-06-211-37/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta run_package_script_or_die - 72 +72 fill_package_struct 303 309 +6 search_package_hashtable 122 125 +3 get_status 112 111 -1 status_hashtable 4 - -4 set_status 162 158 -4 package_hashtable 4 - -4 name_hashtable 4 - -4 package_satisfies_dependency 112 106 -6 search_name_hashtable 118 110 -8 configure_package 121 106 -15 remove_package 333 317 -16 search_status_hashtable 133 111 -22 purge_package 247 217 -30 unpack_package 552 521 -31 run_package_script 62 - -62 dpkg_main 3991 3867 -124 ------------------------------------------------------------------------------ (add/remove: 1/4 grow/shrink: 2/10 up/down: 81/-331) Total: -250 bytes text data bss dec hex filename 807972 611 6924 815507 c7193 busybox_old 807603 611 6908 815122 c7012 busybox_unstripped
* dpkg: code shrinkDenis Vlasenko2008-06-211-33/+61
| | | | | | | | | | | | | | | | | | | | | dpkg: add documentation from bug 3644 function old new delta remove_package 318 333 +15 unpack_package 541 552 +11 purge_package 242 247 +5 all_control_list 55 53 -2 all_control_files 44 40 -4 add_split_dependencies 709 703 -6 search_status_hashtable 148 133 -15 search_package_hashtable 137 122 -15 search_name_hashtable 134 118 -16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/6 up/down: 31/-58) Total: -27 bytes text data bss dec hex filename 808093 611 6924 815628 c720c busybox_old 807972 611 6924 815507 c7193 busybox_unstripped
* dpkg: code shrink (by Peter Korsgaard <jacmet@uclibc.org>)Denis Vlasenko2008-06-211-9/+7
| | | | | | function old new delta create_list 104 86 -18
* - The conffiles control file isn't required in Debian packages, so don'tBernhard Reutner-Fischer2008-06-051-2/+4
| | | | error out if it's missing. (Peter Korsgaard)
* *: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/Denis Vlasenko2008-03-261-1/+1
|
* *: add -Wunused-parameter; fix resulting breakageDenis Vlasenko2008-03-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta procps_scan 1265 1298 +33 aliascmd 278 283 +5 parse_file_cmd 116 120 +4 dname_enc 373 377 +4 setcmd 90 93 +3 execcmd 57 60 +3 count_lines 72 74 +2 process_command_subs 340 339 -1 test_main 409 407 -2 mknod_main 179 177 -2 handle_incoming_and_exit 2653 2651 -2 argstr 1312 1310 -2 shiftcmd 131 128 -3 exitcmd 46 43 -3 dotcmd 297 294 -3 breakcmd 86 83 -3 evalpipe 353 349 -4 evalcommand 1180 1176 -4 evalcmd 109 105 -4 send_tree 374 369 -5 mkfifo_main 82 77 -5 evalsubshell 152 147 -5 typecmd 75 69 -6 letcmd 61 55 -6 add_cmd 1190 1183 -7 main 891 883 -8 ash_main 1415 1407 -8 parse_stream 1377 1367 -10 alloc_procps_scan 55 - -55 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes text data bss dec hex filename 797195 658 7428 805281 c49a1 busybox_old 797101 658 7428 805187 c4943 busybox_unstripped
* dpkg: fix bug where existence check was reversedDenis Vlasenko2008-02-171-8/+4
|
* Fix xmalloc_fgets_str so that it really does NOT strip terminator.Denis Vlasenko2007-12-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | Add xmalloc_fgetline_str which does strip terminator, and use it in dpkg instead of xmalloc_fgets_str. netstat: use xmalloc_fgets_str - allows to eat strings with NULs (this fixes bug with some weird /proc/net/unix input) function old new delta xmalloc_fgets_internal - 191 +191 xmalloc_fgetline_str - 18 +18 do_info 116 120 +4 unix_do_one 451 447 -4 tcp_do_one 423 419 -4 send_tree 369 365 -4 xmalloc_fgets_str 178 15 -163 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 1/4 up/down: 213/-175) Total: 38 bytes text data bss dec hex filename 778445 832 7344 786621 c00bd busybox_old 778483 832 7344 786659 c00e3 busybox_unstripped
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (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: automatically use custom link script if user provides oneDenis Vlasenko2007-08-141-4/+4
| | | | | | vinfo_msg: one user (info_msg), incorporate in it *: style fixes
* s/#ifdef CONFIG_/#if ENABLE_/gDenis Vlasenko2007-08-131-4/+4
|
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-2/+3
| | | | | | | | | 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-6/+5
| | | | | | | | | 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
* style fix (stray space before ';')Denis Vlasenko2007-07-211-1/+1
|
* A few more string duplicates found & eliminatedDenis Vlasenko2007-06-121-1/+1
| | | | | | | | # size busybox_old busybox_unstripped text data bss dec hex filename 679693 2700 15632 698025 aa6a9 busybox_old 679523 2700 15632 697855 aa5ff busybox_unstripped
* - kiltedknight writes: Busybox incorrectly parses a line from the status ↵Bernhard Reutner-Fischer2007-06-051-2/+2
| | | | | | file, claiming that a required package is not installed or tagged to be installed when it actually is. Closes #1221
* - fix typo in error message. Closes #1308Bernhard Reutner-Fischer2007-06-051-1/+1
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* style fixes, no code changesDenis Vlasenko2007-04-161-1/+2
|
* dpkg: use nitfields which are a bit closer to typical ushort.Denis Vlasenko2007-04-131-62/+65
| | | | Code size -800.
* dpkg: run_package_script() returns 0 if all ok and non-zero if failure.Denis Vlasenko2007-03-291-5/+3
| | | | | The result code was checked incorrectly in two places. (from "Kim B. Heino" <Kim.Heino@bluegiga.com>)
* dpkg: free_package(NULL) is ok, so don't test for NULL, just free.Denis Vlasenko2007-03-191-5/+2
|
* Kim B. Heino writes:Bernhard Reutner-Fischer2007-03-191-5/+3
| | | | | | | When installing a new package with dpkg dependencies are checked correctly. But when I try to update an existing package, the dependencies are checked against the old package, not against new package. Thus the new package can break dependencies.
* kill superfluous returns at the end of void functionsDenis Vlasenko2007-03-111-8/+0
|
* dpkg: fix segfault on "dpkg -i"Denis Vlasenko2007-02-151-15/+15
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-6/+6
|
* remove useless casts (type*) xzalloc(...)Denis Vlasenko2006-12-221-2/+2
|
* dpkg: getopt32-ification etc, -100 bytesDenis Vlasenko2006-12-221-223/+170
|
* remove casts from xmalloc()Denis Vlasenko2006-12-191-3/+3
|
* rename: compare_string_array -> index_in_str_arrayDenis Vlasenko2006-11-051-1/+1
| | | | | introduce index_in_substr_array and use it in iproute2
* rename functions to more understandable namesDenis Vlasenko2006-10-261-2/+2
|
* message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko2006-10-201-6/+6
|
* bb_get_[chomped]line_from_file wasn't descriptive enough.Denis Vlasenko2006-10-121-1/+1
| | | | Renaming...
* small style fixesDenis Vlasenko2006-10-121-3/+7
|
* dpkg: fix use-after-free (bug 939)Denis Vlasenko2006-09-301-7/+4
|
* dpkg: style fixes; short -> int (generated code is smaller)Denis Vlasenko2006-09-281-54/+54
|
* dpkg: reduce bss usage by ~130 kbytes (yes, kilobytes!)Denis Vlasenko2006-09-281-76/+87
| | | | | | at the cost of ~100 bytes of text. Improves friendliness to nommu systems. (Dunno whether nommu people ever use dpkg, though...)
* silly switch style fixDenis Vlasenko2006-09-271-2/+2
|
* whitespace cleanupDenis Vlasenko2006-09-171-3/+3
|
* removed a lot of trailing \n in bb_msg() calls. It is addedDenis Vlasenko2006-09-061-3/+3
| | | | | automatically by function itself.
* The bb_ prefixes were removed from xasprintf() and xopen() a month ago (inRob Landley2006-09-051-2/+2
| | | | svn 15767).
* dpkg: fix buffer overflow (bug 983)Denis Vlasenko2006-09-031-2/+4
|
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-51/+133
| | | | | | | | | | 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.)