Denis Vlasenko
51056b382a
modutils: small optimization
...
function old new delta
bb_init_module_24 4570 4565 -5
2009-04-12 14:21:29 +00:00
Denis Vlasenko
f81e8dbc74
*: make "pragma GCC visibility push(hidden)" less ugly
2009-04-09 12:35:13 +00:00
Denis Vlasenko
f4393046ef
modprobe/insmod for 2.4: support compressed modules.
...
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
2009-04-05 23:25:09 +00:00
Denis Vlasenko
0d907eab6c
modutils: dont pass NULL options to init_module()
2009-03-29 17:25:14 +00:00
Denis Vlasenko
e1de3af989
module loading for 2.4: use fd-based io instead of FILE based;
...
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
2009-03-29 16:38:59 +00:00
Denis Vlasenko
3b5c9b8885
insmod/modprobe: do not pass NULL to kernel as module parameter
2009-03-13 23:43:26 +00:00
Denis Vlasenko
73c571a5ff
*: move get_sock_lsa and xwrite_str to libbb, use where appropriate
...
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
2009-03-09 00:12:37 +00:00
Denis Vlasenko
a6b6f05379
further work on modprobe
...
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
2009-03-06 22:48:11 +00:00
Denis Vlasenko
0e2f362a61
modprobe: rework/speedup by Timo Teras (timo.teras AT iki.fi)
...
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
2009-03-05 16:32:27 +00:00
Denis Vlasenko
c5741003e9
modutils: delete unused global variable
...
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
2009-03-05 09:26:17 +00:00
Denis Vlasenko
9604e1b8fc
modprobe: emit "can't open 'modules.dep': (errno)" instead of "module not found"
...
*: 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
2009-03-03 18:47:56 +00:00
Denis Vlasenko
48637e0924
modutils: oveflow fix
2009-02-26 12:00:52 +00:00
Ned Ludd
039ed437d3
make modutils compile again
2009-02-20 04:56:00 +00:00
Denis Vlasenko
a430b695a2
depmod: accept and ignore -r (Linux kernle build needs this)
2009-02-19 01:25:42 +00:00
Denis Vlasenko
49325969e7
modutils-24: code shrink
...
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
2009-01-31 23:33:54 +00:00
Denis Vlasenko
e35af56790
modutils-24: use xasprintf and xzalloc where appropriate,
...
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
2009-01-31 14:22:24 +00:00
Denis Vlasenko
35261159e6
depmod: fix -b option (by timo.teras AT iki.fi)
...
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
2009-01-12 22:12:22 +00:00
Denis Vlasenko
54d10059c9
*: tweak error messages
...
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
2008-12-24 03:11:43 +00:00
Denis Vlasenko
9e0a7c9c41
remove a few superfluous includes
2008-11-25 13:33:11 +00:00
Bernhard Reutner-Fischer
9a280fa7e6
- documentation fix
2008-11-22 20:30:53 +00:00
Denis Vlasenko
3bc3f08370
modutils-24: small fixes by Harald Kuthe (harald-tuxbox AT arcor.de)
...
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
2008-11-22 20:18:37 +00:00
Denis Vlasenko
36309cf3f4
insmod: clarify module_name / file_name distinction
2008-11-22 18:29:01 +00:00
Denis Vlasenko
1ad4db1d8e
modprobe-small: fix failure to load when no arguments are given
...
modutils-24: fix bad interaction of xzalloc with xrealloc_vector; style fixes
2008-11-12 00:09:58 +00:00
Denis Vlasenko
fc66892abd
*: remove superfluous casts. no code changes
2008-11-06 02:32:31 +00:00
Denis Vlasenko
1a9e9bdd93
gunzip: restore mtime. approx +80 bytes of code
...
rpm: make code more robust
lsmod: small code shrink
2008-11-01 12:54:56 +00:00
Denis Vlasenko
bb26db49b1
modprobe: fix a segfault when modprobe is called with no arguments at all
...
function old new delta
modprobe_main 559 535 -24
2008-10-31 02:04:28 +00:00
Bernhard Reutner-Fischer
6c4dadefb6
- update my name. No obj-code changes ;)
2008-09-25 12:13:34 +00:00
Denis Vlasenko
7c9c1bb616
modprobe-small: trivial SEGV fix
2008-09-14 20:33:03 +00:00
Denis Vlasenko
ba1315d0fb
modutils/*: rewrite by Timo Teras <timo.teras AT iki.fi>
...
- 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
2008-09-13 14:59:38 +00:00
Paul Mundt
70de57f60a
Kill off bogus #error's for big endian SH targets, these work fine.
2008-09-12 09:19:40 +00:00
Denis Vlasenko
1c781cc8ff
modprobe-small: make insmod command line compatible
...
function old new delta
modprobe_main 326 435 +109
moderror - 52 +52
process_module 577 530 -47
2008-09-06 14:14:01 +00:00
Denis Vlasenko
04e458d435
insmod: fix detection of open failure
2008-08-31 21:56:48 +00:00
Denis Vlasenko
3b80cac953
insmod: mix xmalloc with xrealloc_vector more carefully
2008-08-28 21:38:10 +00:00
Denis Vlasenko
18c93029fd
insmod: shrink
...
function old new delta
obj_allocate_commons 488 462 -26
insmod_main 3830 3714 -116
2008-08-27 22:29:43 +00:00
Denis Vlasenko
279ca69727
modprobe-small: support "blacklist" keyword in /etc/modules/<modulename>
2008-08-26 01:32:33 +00:00
Denis Vlasenko
8e80411151
modprobe-small: fix infinite looping, by Timo Teras
2008-08-06 09:41:09 +00:00
Denis Vlasenko
9ddc0045ec
modprobe: semi-trivial code shrink
...
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
2008-08-06 00:51:43 +00:00
Denis Vlasenko
e9ad84dfd4
*: refactor handling of archived files. "tar f file.tar.lzma" now works too.
...
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
2008-08-05 13:10:34 +00:00
Denis Vlasenko
35d8c47987
whitespace fixes, no code changed
2008-08-05 07:59:25 +00:00
Denis Vlasenko
855ff6f503
modprobe: use buffering line reads (fgets) instead of reads().
...
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
2008-08-04 21:16:46 +00:00
Denis Vlasenko
27842288b3
libbb: make xrealloc_vector zero out the realloc'ed tail
...
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
2008-08-04 13:20:36 +00:00
Denis Vlasenko
dadfb4975b
hush: add #defines to switch off break/continue if loops are not supported
...
*: remove a few inline keywords
no code changes
2008-07-29 10:16:05 +00:00
Denis Vlasenko
e1ee48e0fd
modprobe: support for /etc/modprobe.d, by Timo Teras.
...
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
2008-07-29 00:19:44 +00:00
Denis Vlasenko
084266ed52
fix several problems with config parser:
...
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
2008-07-26 23:08:31 +00:00
Denis Vlasenko
0f99d49ae6
*: conversion to config parser
...
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
2008-07-24 23:38:04 +00:00
Bernhard Reutner-Fischer
3e8669f359
- wrap overlong lines (Cristian Ionescu-Idbohrn)
...
- s/\. /. /g;# (me)
2008-07-22 18:27:53 +00:00
Denis Vlasenko
5415c856ea
libbb: [x]fopen_for_{read,write} introduced and used.
...
(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
2008-07-21 23:05:26 +00:00
Bernhard Reutner-Fischer
0328b40aee
- commentary typo fix
2008-07-21 11:18:02 +00:00
Bernhard Reutner-Fischer
1a715e487d
- fix compilation for mips (Brian Daniels)
2008-07-18 07:42:00 +00:00
Denis Vlasenko
09ce45fd10
insmod: users report that "|| defined(__powerpc__)" is missing
2008-07-14 21:29:35 +00:00
Denis Vlasenko
a46dd89e94
cpio: internalize archive_xread_all_eof. add a few paranoia checks
...
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
2008-07-12 09:20:44 +00:00
Denis Vlasenko
3e8fd18037
fix typo in config help text
2008-07-10 23:42:36 +00:00
Denis Vlasenko
b6052724ff
open_transformer: do not return fd, it does not change
...
libbb: adopt zipped read from modprobe-small
function old new delta
getoptscmd 708 713 +5
qgravechar 106 109 +3
huft_build 1165 1168 +3
tr_main 474 472 -2
open_transformer 91 89 -2
evalvar 1376 1374 -2
rpm_main 1691 1688 -3
qrealloc 36 33 -3
get_header_tar_lzma 55 52 -3
get_header_tar_gz 100 97 -3
get_header_tar_bz2 55 52 -3
get_header_tar_Z 89 86 -3
find_main 418 406 -12
prepare 302 283 -19
xmalloc_open_zipped_read_close 161 135 -26
xmalloc_read 248 199 -49
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/13 up/down: 11/-130) Total: -119 bytes
2008-07-10 17:43:01 +00:00
Denis Vlasenko
0e2c93fc0b
modprobe-small: make depmod compatible with kernel build.
...
three last commits' sizes combined:
function old new delta
find_alias 218 612 +394
load_dep_bb - 310 +310
modprobe_main 289 380 +91
copy_stringbuf - 40 +40
process_module 637 655 +18
reset_stringbuf - 15 +15
parse_module 333 334 +1
append 84 85 +1
fileAction 832 819 -13
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 5/1 up/down: 870/-13) Total: 857 bytes
2008-07-10 14:16:11 +00:00
Denis Vlasenko
7f950a93ff
modprobe-small: add depfile creation
2008-07-10 14:14:45 +00:00
Denis Vlasenko
784369987f
modprobe-small: add depfile loading
2008-07-10 14:14:20 +00:00
Bernhard Reutner-Fischer
5606b1c4f3
- fix typo (Cristian Ionescu-Idbohrn)
2008-07-09 17:56:53 +00:00
Denis Vlasenko
24a131ea4d
modprobe-small: preparatory patch for modprobe.dep.bb creation patches,
...
Code size impact ~0.
2008-07-09 15:30:57 +00:00
Denis Vlasenko
f62ab2d774
libbb: use improved xmalloc_read() from modprobe-small
...
who: fix compile breakage on some systems
modprobe-small: improve Config help text wording
2008-07-09 09:50:33 +00:00
Denis Vlasenko
deeed59de0
libbb: introduce and use xrealloc_vector
...
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
2008-07-08 05:14:36 +00:00
Denis Vlasenko
58f59a25ee
modprobe-small: match aliases with fnmatch(), making
...
shell pattern-specified alias names in module bodies work.
2008-07-06 11:52:23 +00:00
Denis Vlasenko
cee0dfcc6a
modprobe-small: fix debug leftover
2008-07-06 11:11:35 +00:00
Denis Vlasenko
a60f84ebf0
*: rename ATTRIBUTE_XXX to just XXX.
2008-07-05 09:18:54 +00:00
Denis Vlasenko
671691cf21
modutils: optional modutils-small by Vladimir Dronnikov.
...
15kb smaller than standard one.
libbb/recursive_action.c: commented-out code for aborting the scan.
2008-07-04 10:25:44 +00:00
Denis Vlasenko
defc1ea340
*: introduce and use FAST_FUNC: regparm on i386, otherwise no-on
...
text data bss dec hex filename
808035 611 6868 815514 c719a busybox_old
804472 611 6868 811951 c63af busybox_unstripped
2008-06-27 02:52:20 +00:00
Denis Vlasenko
f5d8c90d73
style fixes, no code changes
2008-06-26 14:32:57 +00:00
Denis Vlasenko
7049ff8696
whitespace fixes. no code changes
2008-06-25 09:53:17 +00:00
Denis Vlasenko
fe733a9744
changes in comments only
2008-06-24 16:08:22 +00:00
Denis Vlasenko
8124a96c34
mdoprobe: fix SEGV bug (by Vlad Dronnikov)
2008-06-22 16:59:46 +00:00
Denis Vlasenko
f45c4f41b7
whitespace and comment fixes, no code changes
2008-06-16 04:09:25 +00:00
Denis Vlasenko
7d60fc1c0a
replace single-char printf's with bb_putchar
2008-06-05 06:51:06 +00:00
Denis Vlasenko
e7860e358e
config help text: fix capitalization
2008-06-04 22:41:14 +00:00
Bernhard Reutner-Fischer
6075b2aee0
- add FIXME. Perhaps somebody is interrested in looking into this one.
...
We would try to be clever and compare the *data instead of the *elt.
Somethink like this might be of more general use:
/* Unlink arbitrary element from the list that contains data */
void llist_unlink_data(llist_t **head, void *data)
{
llist_t *elt;
for (elt = *head; elt; elt = elt->link) {
if (elt->data == data) {
llist_unlink(elt);
return;
}
}
}
2008-06-02 19:23:47 +00:00
Bernhard Reutner-Fischer
c2741e1f72
- add alias support
2008-06-02 18:59:16 +00:00
Bernhard Reutner-Fischer
ef729dd90c
- revert revision 22183 since it breaks -b /abs /abs/path/to/mod.ko
2008-06-02 13:40:13 +00:00
Bernhard Reutner-Fischer
d42816763f
- just chdir to the basedir (-30b).
2008-06-02 13:34:36 +00:00
Bernhard Reutner-Fischer
beac1bd58e
- optional fancy pruning-mode for depmod
2008-06-02 13:28:47 +00:00
Denis Vlasenko
b8e653bfbf
Reinstate CONFIG_CROSS_COMPILE_PREFIX
2008-06-02 04:51:29 +00:00
Bernhard Reutner-Fischer
e0fd13e901
- shrink modprobe a little bit (~-40 bytes). ACKed by Yann.
2008-05-31 18:50:17 +00:00
Bernhard Reutner-Fischer
db508e3b82
- fix overflow; improve documentation while at it
2008-05-28 15:57:31 +00:00
Bernhard Reutner-Fischer
634b022108
- misc. improvements and shrinkage
2008-05-28 14:20:20 +00:00
Bernhard Reutner-Fischer
c21d9c7290
- the moddir_base is supposed to be omitted frmo the .dep file
...
- other tweaks while at it
2008-05-28 10:35:51 +00:00
Bernhard Reutner-Fischer
1510216a55
- Spaghetti alert. Fix clash with ancient fwd-decl. This is an unfortunate
...
combination of linux not providing a useable linux/module.h to userspace and
mixing legacy-cruft with the current stuff in one insmod.c.
2008-05-27 13:27:18 +00:00
Bernhard Reutner-Fischer
b85fb693c1
- Add config option for DEFAULT_DEPMOD_FILE and DEFAULT_DEPMOD_FILE.
...
No obj-code changes.
2008-05-27 10:55:34 +00:00
Bernhard Reutner-Fischer
4fec346966
- use (uC)libc functions. Saves a dozen bytes.
2008-05-27 10:13:54 +00:00
Bernhard Reutner-Fischer
9cf0f62b15
vda, xmalloc'ing can use *alot* of RAM. Don't forget that there are
...
modules out there that are half a megabyte! mmap()ing is way nicer
for small mem boxes.
2008-05-27 09:06:05 +00:00
Bernhard Reutner-Fischer
9474830006
- improve help-text
2008-05-27 08:41:32 +00:00
Bernhard Reutner-Fischer
1ea2568469
- improve option-handling a bit
2008-05-26 21:33:05 +00:00
Bernhard Reutner-Fischer
6bb55cfb99
- add basic option-handling (+220b). Untested
2008-05-26 17:04:01 +00:00
Bernhard Reutner-Fischer
cf18010ca9
- use mmap instead of allocating hundreds of megabytes of RAM. +39b
2008-05-26 15:12:01 +00:00
Bernhard Reutner-Fischer
dc5d7fec35
- remove some bloat -28b: now approx. 501b
2008-05-26 13:30:41 +00:00
Bernhard Reutner-Fischer
423465cd5e
- switch to FILE base writer and remove now unneeded stuff. -50b
2008-05-26 12:19:35 +00:00
Bernhard Reutner-Fischer
55e547eb6f
- add simple first-draft unoptimized depmod just to proove Vladimir Dronnikov wrong
...
text data bss dec hex filename
569 0 0 569 239 modutils/depmod.o
2008-05-26 12:01:49 +00:00
Denis Vlasenko
ae84b11467
modprobe: fix for blacklisting
...
The patch makes the order of the alias/blacklist in modprobe.conf
irrelevant (like module-utils' modprobe). In first patch the alias had
to be defined before the blacklist which caused problems because the
modprobe.conf file is read before /lib/modules/*/modules.alias.
The attatched patch will mark the blacklisted module itself rather than
trying to find the alias that points to the blacklisted module and test
this flag later in the alias resolving stage.
2008-05-22 17:37:38 +00:00
Denis Vlasenko
9ddc8d54d1
modprobe: optional "blacklist" command support (by Natanael Copa)
...
is_conf_command - 56 +56
include_conf 898 917 +19
check_dep 348 356 +8
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 83/0) Total: 83 bytes
2008-05-18 14:39:43 +00:00
Denis Vlasenko
2794c9bb93
insmod: build fix for microblaze (by Greg Steuck <greg AT nest.cx>)
2008-05-17 02:47:55 +00:00
Bernhard Reutner-Fischer
825968f92c
- fix compilation on x86_64
2008-05-16 16:00:38 +00:00
Denis Vlasenko
6b06cb80be
more of -Wall fixes from Cristian Ionescu-Idbohrn.
...
Some are fixing real bugs.
function old new delta
syslogd_main 938 958 +20
get_signum 136 143 +7
obj_load 777 782 +5
recv_from_to 210 214 +4
get_next_block 1795 1799 +4
display_topmem_process_list 1117 1121 +4
logread_main 484 487 +3
buffer_fill_and_print 73 76 +3
kill_main 687 689 +2
ll_remember_index 240 241 +1
do_stats 452 453 +1
if_readconf 166 165 -1
display_process_list 1192 1191 -1
run_applet_and_exit 507 505 -2
print_signames 33 31 -2
parse_one_line 1092 1090 -2
find_out_spec 57 55 -2
add_ksymoops_symbols 421 419 -2
ash_main 1407 1402 -5
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 11/8 up/down: 54/-17) Total: 37 bytes
2008-05-15 21:30:45 +00:00
Denis Vlasenko
9305cdddbf
Kill CONFIG_NITPICK, it turned out to not be useful. no code changes.
2008-05-13 02:43:27 +00:00
Denis Vlasenko
f3aa4a8ec5
insmod: fix build warnings. By Cristian Ionescu-Idbohrn
2008-05-09 11:36:17 +00:00