5606b1c4f3
- fix typo (Cristian Ionescu-Idbohrn)
2008-07-09 17:56:53 +00:00
24a131ea4d
modprobe-small: preparatory patch for modprobe.dep.bb creation patches,
...
Code size impact ~0.
2008-07-09 15:30:57 +00:00
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
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
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
cee0dfcc6a
modprobe-small: fix debug leftover
2008-07-06 11:11:35 +00:00
a60f84ebf0
*: rename ATTRIBUTE_XXX to just XXX.
2008-07-05 09:18:54 +00:00
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
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
f5d8c90d73
style fixes, no code changes
2008-06-26 14:32:57 +00:00
7049ff8696
whitespace fixes. no code changes
2008-06-25 09:53:17 +00:00
fe733a9744
changes in comments only
2008-06-24 16:08:22 +00:00
8124a96c34
mdoprobe: fix SEGV bug (by Vlad Dronnikov)
2008-06-22 16:59:46 +00:00
f45c4f41b7
whitespace and comment fixes, no code changes
2008-06-16 04:09:25 +00:00
7d60fc1c0a
replace single-char printf's with bb_putchar
2008-06-05 06:51:06 +00:00
e7860e358e
config help text: fix capitalization
2008-06-04 22:41:14 +00:00
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
c2741e1f72
- add alias support
2008-06-02 18:59:16 +00:00
ef729dd90c
- revert revision 22183 since it breaks -b /abs /abs/path/to/mod.ko
2008-06-02 13:40:13 +00:00
d42816763f
- just chdir to the basedir (-30b).
2008-06-02 13:34:36 +00:00
beac1bd58e
- optional fancy pruning-mode for depmod
2008-06-02 13:28:47 +00:00
b8e653bfbf
Reinstate CONFIG_CROSS_COMPILE_PREFIX
2008-06-02 04:51:29 +00:00
e0fd13e901
- shrink modprobe a little bit (~-40 bytes). ACKed by Yann.
2008-05-31 18:50:17 +00:00
db508e3b82
- fix overflow; improve documentation while at it
2008-05-28 15:57:31 +00:00
634b022108
- misc. improvements and shrinkage
2008-05-28 14:20:20 +00:00
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
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
b85fb693c1
- Add config option for DEFAULT_DEPMOD_FILE and DEFAULT_DEPMOD_FILE.
...
No obj-code changes.
2008-05-27 10:55:34 +00:00
4fec346966
- use (uC)libc functions. Saves a dozen bytes.
2008-05-27 10:13:54 +00:00
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
9474830006
- improve help-text
2008-05-27 08:41:32 +00:00
1ea2568469
- improve option-handling a bit
2008-05-26 21:33:05 +00:00
6bb55cfb99
- add basic option-handling (+220b). Untested
2008-05-26 17:04:01 +00:00
cf18010ca9
- use mmap instead of allocating hundreds of megabytes of RAM. +39b
2008-05-26 15:12:01 +00:00
dc5d7fec35
- remove some bloat -28b: now approx. 501b
2008-05-26 13:30:41 +00:00
423465cd5e
- switch to FILE base writer and remove now unneeded stuff. -50b
2008-05-26 12:19:35 +00:00
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
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
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
2794c9bb93
insmod: build fix for microblaze (by Greg Steuck <greg AT nest.cx>)
2008-05-17 02:47:55 +00:00
825968f92c
- fix compilation on x86_64
2008-05-16 16:00:38 +00:00
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
9305cdddbf
Kill CONFIG_NITPICK, it turned out to not be useful. no code changes.
2008-05-13 02:43:27 +00:00
f3aa4a8ec5
insmod: fix build warnings. By Cristian Ionescu-Idbohrn
2008-05-09 11:36:17 +00:00
4ee7cd4f6f
*: mode tcp/udpsvd to networking, delete ipsvd/*
...
*/Config.in: fixes to text
svlogd: make it NOMMU capable
function old new delta
processorstart 378 420 +42
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 42/0) Total: 42 bytes
text data bss dec hex filename
797153 662 7420 805235 c4973 busybox_old
797196 662 7420 805278 c499e busybox_unstripped
2008-03-17 09:13:22 +00:00
85c247161b
*: fix fallout from -Wunused-parameter
...
function old new delta
bbunpack 358 366 +8
passwd_main 1070 1072 +2
handle_incoming_and_exit 2651 2653 +2
getpty 88 86 -2
script_main 975 972 -3
inetd_main 2036 2033 -3
dname_enc 377 373 -4
make_new_session 474 462 -12
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/5 up/down: 12/-24) Total: -12 bytes
text data bss dec hex filename
797429 658 7428 805515 c4a8b busybox_old
797417 658 7428 805503 c4a7f busybox_unstripped
2008-03-17 09:04:04 +00:00
68404f13d4
*: add -Wunused-parameter; fix resulting breakage
...
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
2008-03-17 09:00:54 +00:00
c03e872112
save a bit of code with *strchrnul = '\0' trick
...
function old new delta
nextline 59 55 -4
include_conf 902 898 -4
read_config 414 406 -8
fsck_main 1880 1869 -11
2007-12-26 20:56:55 +00:00
e7fca5125a
*: remove superfluous "?" in option parsing
2007-11-10 01:32:18 +00:00
cb12cb2407
modprobe: fix a bug where we were entering endless loop
...
syslogd: strip trailing '\n' too, not only NULs
2007-11-06 11:34:03 +00:00