aboutsummaryrefslogtreecommitdiff
path: root/modutils
Commit message (Collapse)AuthorAgeFilesLines
* *: make "pragma GCC visibility push(hidden)" less uglyGravatar Denis Vlasenko2009-04-091-8/+4
|
* modprobe/insmod for 2.4: support compressed modules.Gravatar Denis Vlasenko2009-04-051-24/+33
| | | | | | | | | | | by Guenter (lists AT gknw.net) function old new delta bb_init_module_24 4551 4570 +19 obj_load 786 794 +8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 27/0) Total: 27 bytes
* modutils: dont pass NULL options to init_module()Gravatar Denis Vlasenko2009-03-291-1/+1
|
* module loading for 2.4: use fd-based io instead of FILE based;Gravatar Denis Vlasenko2009-03-291-35/+27
| | | | | | | | | use xlseek and xread; simpler check for ELF signature. text data bss dec hex filename 824460 476 7616 832552 cb428 busybox_old 824333 476 7616 832425 cb3a9 busybox_unstripped
* insmod/modprobe: do not pass NULL to kernel as module parameterGravatar Denis Vlasenko2009-03-131-2/+4
|
* *: move get_sock_lsa and xwrite_str to libbb, use where appropriateGravatar Denis Vlasenko2009-03-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta get_sock_lsa - 72 +72 buffer_fill_and_print 179 196 +17 parse_expr 824 832 +8 read_base64 343 348 +5 nameval 202 206 +4 fbset_main 1694 1698 +4 expand 1849 1853 +4 udhcp_send_kernel_packet 249 252 +3 udhcp_get_option 223 222 -1 chat_main 1246 1245 -1 pack_gzip 1661 1659 -2 doset 299 297 -2 bb__parsespent 119 117 -2 test_main 260 257 -3 qgravechar 109 106 -3 tcpudpsvd_main 1834 1830 -4 sysctl_display_all 589 580 -9 xopen_xwrite_close 44 33 -11 prs 30 18 -12 find_main 418 406 -12 full_write2_str 25 12 -13 adduser_main 667 654 -13 evaltreenr 817 802 -15 evaltree 817 802 -15 tftpd_main 526 493 -33 ftpd_main 2050 1990 -60 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 7/18 up/down: 117/-211) Total: -94 bytes
* further work on modprobeGravatar Denis Vlasenko2009-03-061-74/+110
| | | | | | | | | | | | | function old new delta gather_options_str - 75 +75 config_file_action 388 413 +25 load_modules_dep 175 192 +17 add_probe 67 72 +5 modprobe_main 494 488 -6 gather_options 89 - -89 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 3/1 up/down: 122/-95) Total: 27 bytes
* modprobe: rework/speedup by Timo Teras (timo.teras AT iki.fi)Gravatar Denis Vlasenko2009-03-051-145/+217
| | | | | | | | | | | | | | | | | | | | | | function old new delta load_modules_dep - 175 +175 helper_get_module - 106 +106 gather_options - 89 +89 add_probe - 67 +67 config_file_action 345 388 +43 get_or_add_modentry - 10 +10 loaded 4 - -4 read_config 239 234 -5 llist_find 34 - -34 add_option 60 - -60 modprobe_main 567 494 -73 do_modprobe 601 273 -328 ------------------------------------------------------------------------------ (add/remove: 5/3 grow/shrink: 1/3 up/down: 490/-504) Total: -14 bytes text data bss dec hex filename 816778 476 7888 825142 c9736 busybox_old 816768 476 7880 825124 c9724 busybox_unstripped
* modutils: delete unused global variableGravatar Denis Vlasenko2009-03-053-18/+12
| | | | | | | | | | | | | function old new delta modprobe_main 570 567 -3 insmod_main 101 98 -3 insmod_outputname 4 - -4 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-10) Total: -10 bytes text data bss dec hex filename 816784 476 7892 825152 c9740 busybox_old 816778 476 7888 825142 c9736 busybox_unstripped
* modprobe: emit "can't open 'modules.dep': (errno)" instead of "module not found"Gravatar Denis Vlasenko2009-03-031-13/+14
| | | | | | | | | | | | | | | | *: s/can't open %s/can't open '%s'/, it's better to use same string. function old new delta do_modprobe 588 601 +13 config_file_action 339 345 +6 modprobe_main 565 570 +5 unable_to_open 14 16 +2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/0 up/down: 26/0) Total: 26 bytes text data bss dec hex filename 816800 476 7892 825168 c9750 busybox_old 816812 476 7892 825180 c975c busybox_unstripped
* modutils: oveflow fixGravatar Denis Vlasenko2009-02-262-3/+4
|
* make modutils compile againGravatar Ned Ludd2009-02-201-1/+1
|
* depmod: accept and ignore -r (Linux kernle build needs this)Gravatar Denis Vlasenko2009-02-191-1/+2
|
* modutils-24: code shrinkGravatar Denis Vlasenko2009-01-311-37/+30
| | | | | | | | | | | function old new delta helper_create_alloced_section - 117 +117 print_load_map 474 450 -24 bb_init_module_24 4615 4545 -70 obj_create_alloced_section 131 30 -101 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/3 up/down: 117/-195) Total: -78 bytes
* modutils-24: use xasprintf and xzalloc where appropriate,Gravatar Denis Vlasenko2009-01-312-80/+53
| | | | | | | | | | | | | remove unreachanble code build system: correct some dependencies in config system init: convert one #if into if() - for Rob. function old new delta obj_string_patch 136 129 -7 bb_init_module_24 4759 4615 -144 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-151) Total: -151 bytes
* depmod: fix -b option (by timo.teras AT iki.fi)Gravatar Denis Vlasenko2009-01-121-20/+37
| | | | | | | | | | function old new delta xfreopen_write - 35 +35 parse_module 346 353 +7 depmod_main 553 546 -7 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 42/-7) Total: 35 bytes
* *: tweak error messagesGravatar Denis Vlasenko2008-12-241-2/+2
| | | | | | | | | | sysctl: shrink; support recursing if name is a directory: "sysctl net.ipv4.conf". Patch by xmaks AT email.cz text data bss dec hex filename 793659 504 7492 801655 c3b77 busybox_old 793576 504 7492 801572 c3b24 busybox_unstripped
* remove a few superfluous includesGravatar Denis Vlasenko2008-11-251-1/+0
|
* - documentation fixGravatar Bernhard Reutner-Fischer2008-11-221-1/+1
|
* modutils-24: small fixes by Harald Kuthe (harald-tuxbox AT arcor.de)Gravatar Denis Vlasenko2008-11-221-21/+13
| | | | | | | | | | function old new delta obj_load 819 832 +13 obj_allocate_commons 488 462 -26 bb_init_module_24 4800 4759 -41 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 13/-67) Total: -54 bytes
* insmod: clarify module_name / file_name distinctionGravatar Denis Vlasenko2008-11-223-10/+18
|
* modprobe-small: fix failure to load when no arguments are givenGravatar Denis Vlasenko2008-11-122-45/+63
| | | | | modutils-24: fix bad interaction of xzalloc with xrealloc_vector; style fixes
* *: remove superfluous casts. no code changesGravatar Denis Vlasenko2008-11-062-2/+2
|
* gunzip: restore mtime. approx +80 bytes of codeGravatar Denis Vlasenko2008-11-011-1/+1
| | | | | | rpm: make code more robust lsmod: small code shrink
* modprobe: fix a segfault when modprobe is called with no arguments at allGravatar Denis Vlasenko2008-10-312-25/+29
| | | | | | function old new delta modprobe_main 559 535 -24
* - update my name. No obj-code changes ;)Gravatar Bernhard Reutner-Fischer2008-09-252-2/+2
|
* modprobe-small: trivial SEGV fixGravatar Denis Vlasenko2008-09-141-1/+1
|
* modutils/*: rewrite by Timo Teras <timo.teras AT iki.fi>Gravatar Denis Vlasenko2008-09-1310-5743/+4693
| | | | | | | | | | | | | | | - a lot faster (linear algorithmic complexity, smaller memory foot print) - a lot smaller (the old code was overly complicated) - loading of aliases is now module-init-tools compliant - blacklisting is done correctly (-b option added) - module argument quoting done right - depmod now correctly generates modules.symbols and modules.alias add/remove: 16/21 grow/shrink: 4/6 up/down: 6930/-9316 Total: -2386 bytes text data bss dec hex filename 806039 592 6680 813311 c68ff busybox_old 803498 592 6676 810766 c5f0e busybox_unstripped
* Kill off bogus #error's for big endian SH targets, these work fine.Gravatar Paul Mundt2008-09-121-9/+0
|
* modprobe-small: make insmod command line compatibleGravatar Denis Vlasenko2008-09-061-6/+25
| | | | | | | | function old new delta modprobe_main 326 435 +109 moderror - 52 +52 process_module 577 530 -47
* insmod: fix detection of open failureGravatar Denis Vlasenko2008-08-311-1/+1
|
* insmod: mix xmalloc with xrealloc_vector more carefullyGravatar Denis Vlasenko2008-08-281-37/+52
|
* insmod: shrinkGravatar Denis Vlasenko2008-08-271-18/+13
| | | | | | | function old new delta obj_allocate_commons 488 462 -26 insmod_main 3830 3714 -116
* modprobe-small: support "blacklist" keyword in /etc/modules/<modulename>Gravatar Denis Vlasenko2008-08-261-1/+1
|
* modprobe-small: fix infinite looping, by Timo TerasGravatar Denis Vlasenko2008-08-061-1/+3
|
* modprobe: semi-trivial code shrinkGravatar Denis Vlasenko2008-08-061-52/+47
| | | | | | | | | | function old new delta build_dep 870 859 -11 already_loaded 134 112 -22 modprobe_main 449 368 -81 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-114) Total: -114 bytes
* *: refactor handling of archived files. "tar f file.tar.lzma" now works too.Gravatar Denis Vlasenko2008-08-052-16/+3
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta unpack_Z_stream - 1229 +1229 open_zipped - 176 +176 unpack_bz2_stream_prime - 60 +60 tar_main 642 677 +35 find_main 406 418 +12 sv_main 1222 1233 +11 decode_format_string 829 837 +8 cmp_main 641 649 +8 popstring 134 140 +6 filter_accept_list_reassign 120 125 +5 parse_and_put_prompt 800 804 +4 passwd_main 1053 1049 -4 make_new_name_gunzip 119 114 -5 rpm_main 1688 1670 -18 prepare 302 283 -19 xmalloc_open_zipped_read_close 135 61 -74 uncompress 1229 - -1229 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 8/5 up/down: 1554/-1349) Total: 205 bytes
* whitespace fixes, no code changedGravatar Denis Vlasenko2008-08-051-11/+12
|
* modprobe: use buffering line reads (fgets) instead of reads().Gravatar Denis Vlasenko2008-08-041-19/+20
| | | | | | | | | | | | | | | libbb: remove reads() function old new delta include_conf_file_act 961 980 +19 localcmd 282 284 +2 already_loaded 155 151 -4 in_cksum 58 53 -5 modprobe_main 1630 1624 -6 reads 129 - -129 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 2/3 up/down: 21/-144) Total: -123 bytes
* libbb: make xrealloc_vector zero out the realloc'ed tailGravatar Denis Vlasenko2008-08-041-5/+3
| | | | | | | | | | | | | | function old new delta xrealloc_vector_helper 51 76 +25 man_main 712 705 -7 act 250 234 -16 create_list 91 70 -21 getopt_main 695 664 -31 load_dep_bb 281 248 -33 fileAction 744 709 -35 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/6 up/down: 25/-143) Total: -118 bytes
* hush: add #defines to switch off break/continue if loops are not supportedGravatar Denis Vlasenko2008-07-292-2/+2
| | | | | | *: remove a few inline keywords no code changes
* modprobe: support for /etc/modprobe.d, by Timo Teras.Gravatar Denis Vlasenko2008-07-291-63/+106
| | | | | | | | | | | | | | function old new delta include_conf_file_act - 929 +929 include_conf_recursive - 30 +30 include_conf_file2 - 30 +30 include_conf_file - 14 +14 include_conf_dir_act - 14 +14 build_dep 1011 875 -136 include_conf 922 - -922 ------------------------------------------------------------------------------ (add/remove: 5/1 grow/shrink: 0/1 up/down: 1017/-1058) Total: -41 bytes
* fix several problems with config parser:Gravatar Denis Vlasenko2008-07-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a bug where it underflows the string a bug where it never frees parser_t struct make read_config() return 0 if parser is NULL, make config_close() accept and ignore NULL parser - eliminates many if() blocks reverse the sense of parser bit flags - negative flags are harder to grok. hexdump: revert the change to use config parser, it is BIGGER and also requires additional quirks in parser *: explicitly use PARSER_NORMAL instead of 0 function old new delta login_main 1575 1596 +21 config_close 18 29 +11 bbunpack 383 391 +8 qgravechar 106 109 +3 rtnl_tab_initialize 121 117 -4 expand 1697 1693 -4 man_main 717 712 -5 nameif_main 674 668 -6 hexdump_main 597 591 -6 read_config 217 209 -8 dnsd_main 1478 1470 -8 sysctl_main 203 189 -14 config_open2 44 25 -19 make_device 1177 1141 -36 config_read 597 549 -48 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/11 up/down: 43/-158) Total: -115 bytes
* *: conversion to config parserGravatar Denis Vlasenko2008-07-241-10/+6
| | | | | | | | | | | | | | | | | function old new delta config_read 540 597 +57 config_open2 41 44 +3 rtnl_rtprot_initialize 70 66 -4 rtnl_rttable_initialize 78 73 -5 rtnl_rtscope_initialize 88 83 -5 rtnl_rtrealm_initialize 48 43 -5 rtnl_rtdsfield_initialize 48 43 -5 process_module 566 560 -6 bbunpack 391 383 -8 rtnl_tab_initialize 279 121 -158 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/8 up/down: 60/-196) Total: -136 bytes
* - wrap overlong lines (Cristian Ionescu-Idbohrn)Gravatar Bernhard Reutner-Fischer2008-07-221-5/+5
| | | | - s/\. /. /g;# (me)
* libbb: [x]fopen_for_{read,write} introduced and used.Gravatar Denis Vlasenko2008-07-214-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (by Valdimir) function old new delta config_open2 - 41 +41 config_read 507 542 +35 find_pair 169 187 +18 fopen_for_write - 14 +14 fopen_for_read - 14 +14 find_main 406 418 +12 xfopen_for_write - 10 +10 xfopen_for_read - 10 +10 popstring 134 140 +6 parse_inittab 396 401 +5 next_token 923 928 +5 pack_gzip 1659 1661 +2 bb__parsespent 117 119 +2 fallbackSort 1719 1717 -2 evalvar 1376 1374 -2 qrealloc 36 33 -3 ... ... ... ... singlemount 4579 4569 -10 process_stdin 443 433 -10 patch_main 1111 1101 -10 ifupdown_main 2175 2165 -10 file_action_grep 90 80 -10 uuidcache_init 649 637 -12 hush_main 797 785 -12 read_config 230 217 -13 dpkg_main 3835 3820 -15 read_line_input 3134 3110 -24 sysctl_main 232 203 -29 config_open 40 10 -30 WARN_BAD_LINE 44 - -44 login_main 1714 1575 -139 ------------------------------------------------------------------------------ (add/remove: 5/1 grow/shrink: 8/74 up/down: 174/-737) Total: -563 bytes
* - commentary typo fixGravatar Bernhard Reutner-Fischer2008-07-211-1/+1
|
* - fix compilation for mips (Brian Daniels)Gravatar Bernhard Reutner-Fischer2008-07-181-1/+1
|
* insmod: users report that "|| defined(__powerpc__)" is missingGravatar Denis Vlasenko2008-07-141-1/+2
|
* cpio: internalize archive_xread_all_eof. add a few paranoia checksGravatar Denis Vlasenko2008-07-121-1/+0
| | | | | | | | | | | | | for corrupted cpio files. modprobe-small: remove stray include route: small code shrink function old new delta get_header_cpio 958 980 +22 archive_xread_all_eof 33 - -33 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/0 up/down: 22/-33) Total: -11 bytes