aboutsummaryrefslogtreecommitdiff
path: root/modutils
Commit message (Collapse)AuthorAgeFilesLines
* modinfo: support relative paths in modules.depGravatar Lauri Kasanen2010-06-271-11/+24
| | | | | | | | | function old new delta modinfo 272 329 +57 modinfo_main 325 344 +19 Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modinfo: needs DEFAULT_MODULES_DIR and DEFAULT_DEPMOD_FILEGravatar Lauri Kasanen2010-06-271-2/+2
| | | | | Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: stop defining _GNU_SOURCE in source files, it's in CFLAGS anywayGravatar Denys Vlasenko2010-06-181-2/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modinfo: needs modutils.oGravatar Denys Vlasenko2010-06-091-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add INSERTs to *.src files where appropriateGravatar Denys Vlasenko2010-06-081-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: add support for -l and -s. Remove some unsupported optionsGravatar Pascal Bellard2010-06-074-54/+193
| | | | | | | | | | | | Fixed some goofs in help text function old new delta modprobe_main 494 653 +159 packed_usage 27129 27145 +16 insmod_main 98 95 -3 Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modinfo: new appletGravatar Pascal Bellard2010-06-063-0/+153
| | | | | | | | | | | | | | | | | function old new delta modinfo_main - 307 +307 modinfo - 280 +280 packed_usage 27037 27131 +94 display - 74 +74 static.shortcuts - 24 +24 applet_names 2254 2262 +8 applet_main 1324 1328 +4 applet_nameofs 662 664 +2 ------------------------------------------------------------------------------ (add/remove: 5/0 grow/shrink: 4/0 up/down: 793/0) Total: 793 bytes Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove defconfig. Now "make defconfig" simply uses defaults from Config.inGravatar Denys Vlasenko2010-06-061-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass renaming Kbuild -> Kbuild.src, Config.in -> Config.srcGravatar Denys Vlasenko2010-06-042-0/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: better string sharingGravatar Denys Vlasenko2010-06-021-4/+2
| | | | | | | | text data bss dec hex filename 849427 441 7556 857424 d1550 busybox_old 849355 441 7556 857352 d1508 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modutils-24: [mips] modutlis-24 segfault fix for 2.4 kernel modulesGravatar Ralf Rösch2010-04-141-0/+3
| | | | | | | | | | | handling DWARF sections solves the problem. This seems to be a long outstanding bug: http://permalink.gmane.org/gmane.linux.busybox/4533 http://www.linux-mips.org/archives/linux-mips/2004-08/msg00072.html Signed-off-by: Ralf Rösch <ralf.roesch@rw-gmbh.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unicode: s/FEATURE_ASSUME_UNICODE/UNICODE_SUPPORT, add UNICODE_USING_LOCALEGravatar Denys Vlasenko2010-03-261-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: merge some common stringsGravatar Denys Vlasenko2010-03-232-3/+3
| | | | | | | | text data bss dec hexfilename 838650 8009 0 846659 ceb43busybox_old 838519 8009 0 846528 ceac0busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: remove 2k limit on /proc/cmdlineGravatar Denys Vlasenko2010-03-031-7/+5
| | | | | | | | function old new delta do_modprobe 365 520 +155 parse_and_add_kcmdline_module_options 149 - -149 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: pick up module options from /proc/cmdline tooGravatar Denys Vlasenko2010-02-271-0/+34
| | | | | | | | | | Based on patch by Ozan Çağlayan (ozan AT pardus.org.tr) function old new delta parse_and_add_kcmdline_module_options - 149 +149 do_modprobe 357 365 +8 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: suppress ~60% of "aliased warnings" on gcc-4.4.1Gravatar Denys Vlasenko2010-02-042-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* further work on unicodizationGravatar Denys Vlasenko2010-01-301-9/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* style fixes, no code changesGravatar Denys Vlasenko2010-01-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: style fixes. no code changes (verified with objdump)Gravatar Denys Vlasenko2010-01-282-8/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: protect against possible SEGVGravatar Denys Vlasenko2010-01-261-6/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: better unicode width support. Hopefully fixes bug 839.Gravatar Denys Vlasenko2010-01-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also opens up a possibility to make other unicode stuff smaller and more correct later. but: function old new delta static.combining - 516 +516 bb_wcwidth - 328 +328 unicode_cut_nchars - 141 +141 mbstowc_internal - 93 +93 in_table - 78 +78 cal_main 899 961 +62 static.combining0x10000 - 40 +40 unicode_strlen - 31 +31 bb_mbstrlen 31 - -31 bb_mbstowcs 173 102 -71 ------------------------------------------------------------------------------ (add/remove: 7/1 grow/shrink: 1/1 up/down: 1289/-102) Total: 1187 bytes Uses code of Markus Kuhn, which is in public domain: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c "Permission to use, copy, modify, and distribute this software for any purpose and without fee is hereby granted. The author disclaims all warranties with regard to this software." Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: it's not an error if module is already loaded. Closes bug 833Gravatar Denys Vlasenko2010-01-101-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fold: unicode support. Based on a patch by Tomas Heinrich ↵Gravatar Denys Vlasenko2010-01-041-1/+1
| | | | | | | | | | | | | | | | | | | | <heinrich.tomas@gmail.com> General Unicode support is tweaked to expose unicode_status. function old new delta init_unicode - 77 +77 write2stdout - 19 +19 adjust_column 68 71 +3 unicode_status - 1 +1 unicode_is_enabled 1 - -1 grep_main 780 773 -7 fold_main 619 552 -67 check_unicode_in_env 77 - -77 ------------------------------------------------------------------------------ (add/remove: 3/2 grow/shrink: 1/2 up/down: 100/-152) Total: -52 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: added xfdopen_for_read/writeGravatar Denys Vlasenko2009-11-151-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta xfdopen_helper - 40 +40 logdir_open 1163 1184 +21 process_stdin 433 443 +10 xfdopen_for_write - 9 +9 doCommands 2465 2474 +9 patch_main 1214 1222 +8 bbunpack 457 465 +8 xfdopen_for_read - 7 +7 scan_tree 258 262 +4 xstrtoul_range_sfx 230 231 +1 sendmail_main 957 955 -2 passwd_main 1027 1023 -4 parse 969 964 -5 test_main 253 247 -6 sed_main 655 649 -6 dos2unix_main 437 429 -8 fbsplash_main 950 938 -12 handle_dir_common 371 354 -17 expand_vars_to_list 2197 2169 -28 update_passwd 1275 1246 -29 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 7/10 up/down: 117/-117) Total: 0 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tidy up O_NONBLOCK usage. use libbb functions in stty.Gravatar Denys Vlasenko2009-11-111-1/+1
| | | | | | | | | | Added O_RDONLY where improves readability. Note: O_RDONLY == 0, so it is there even if not specified. function old new delta stty_main 1289 1235 -54 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lsmod: beautify. no code changesGravatar Denys Vlasenko2009-11-041-9/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lsmod: unicode-aware column formattingGravatar Tomas Heinrich2009-10-261-0/+18
| | | | | Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modutils: add FEATURE_INSMOD_TRY_MMAP optionGravatar Denys Vlasenko2009-10-254-17/+93
| | | | | | | | | | | function old new delta try_to_mmap_module - 121 +121 bb_init_module_24 4514 4578 +64 bb_init_module 119 173 +54 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/0 up/down: 239/0) Total: 239 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe-small: added comment about multiple alias matchesGravatar Denys Vlasenko2009-10-081-0/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: optimize code size in strtoul callsGravatar Denys Vlasenko2009-09-231-6/+12
| | | | | | | | | | | | function old new delta bb_parse_mode 433 431 -2 rtnl_rtntype_a2n 202 198 -4 ParseField 511 498 -13 bb_init_module_24 4730 4675 -55 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-74) Total: -74 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe-small: make string buffer code robust; fix help textGravatar Denys Vlasenko2009-09-071-17/+21
| | | | | | | | | | | | | | | together with previous one-liner: function old new delta append 70 99 +29 parse_module 295 311 +16 copy_stringbuf 35 36 +1 packed_usage 26545 26540 -5 appendc 27 - -27 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 3/1 up/down: 46/-32) Total: 14 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe-small: hopefully fix bug 591 (incorrect detection of alias with '-')Gravatar Denys Vlasenko2009-09-071-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more C standard compat fixes from Dan FandrichGravatar Denys Vlasenko2009-09-062-3/+3
| | | | | | | function old new delta docolon 207 204 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove some GNUisms. by Dan Fandrich (dan AT coneharvesters.com)Gravatar Denys Vlasenko2009-09-061-1/+3
| | | | | | | | | | function old new delta logdirs_reopen 1310 1308 -2 read_line_input 4757 4753 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-6) Total: -6 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: treat tabs in modules.dep as delimiters too. closes bug 567Gravatar Denys Vlasenko2009-08-141-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak Config texts and some broken English elsewhereGravatar Denys Vlasenko2009-06-181-2/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: do not use ->probed_name blidlyGravatar Denys Vlasenko2009-06-171-3/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: correct exitcode handling and error messages with respect to -qGravatar Denys Vlasenko2009-06-173-93/+143
| | | | | | | | | | | | | | function old new delta do_modprobe 319 339 +20 bb_delete_module 10 26 +16 moderror 62 71 +9 bb_init_module 112 119 +7 modprobe_main 488 494 +6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/0 up/down: 58/0) Total: 58 bytes Signed-off-by: Gilles Espinasse <g.esp@free.fr> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add FAST_FUNC to function ptrs where it makes senseGravatar Denys Vlasenko2009-06-051-60/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta evalcommand 1195 1209 +14 testcmd - 10 +10 printfcmd - 10 +10 echocmd - 10 +10 func_exec 270 276 +6 echo_dg 104 109 +5 store_nlmsg 85 89 +4 pseudo_exec_argv 195 198 +3 dotcmd 287 290 +3 machtime_stream 29 31 +2 discard_stream 24 26 +2 argstr 1299 1301 +2 killcmd 108 109 +1 evalfor 226 227 +1 daytime_stream 43 44 +1 run_list 2544 2543 -1 lookupvar 62 61 -1 ipaddr_modify 1310 1309 -1 ... parse_stream 2254 2245 -9 evalpipe 356 347 -9 collect_if 210 197 -13 read_opt 869 851 -18 handle_dollar 681 658 -23 print_addrinfo 1342 1303 -39 iterate_on_dir 156 59 -97 print_route 1709 1609 -100 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 12/130 up/down: 74/-767) Total: -693 bytes text data bss dec hex filename 841748 467 7872 850087 cf8a7 busybox_old 841061 467 7872 849400 cf5f8 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: fix more bugs in modprobe -rGravatar Denys Vlasenko2009-05-281-7/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: fix modprobe -r. closes bug 315Gravatar Denys Vlasenko2009-05-261-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* flash_lock, flash_unlock: new appletsGravatar Denys Vlasenko2009-05-251-1/+1
| | | | | | | By Thierry Reding (thierry.reding AT avionic-design.de) Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* depmod: fix handling of .gz modulesGravatar Denys Vlasenko2009-05-183-14/+47
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: add comment about expected modules.dep formatGravatar Mike Frysinger2009-05-061-0/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* modprobe: add more useful debug pointsGravatar Mike Frysinger2009-05-051-2/+10
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* *: mass renaming of USE_XXXX to IF_XXXXGravatar Denis Vlasenko2009-04-214-9/+9
| | | | | | and SKIP_XXXX to IF_NOT_XXXX - the second one was especially badly named. It was not skipping anything!
* move llist_find_str from modutils to libbbGravatar Denis Vlasenko2009-04-132-14/+0
|
* modutils: remove redundant sanitizationGravatar Denis Vlasenko2009-04-131-4/+5
|
* rmmod: fix bug 263Gravatar Denis Vlasenko2009-04-134-7/+13
| | | | | | | | "modutils/rmmod can't remove modules with dash in name on 2.4 kernels" function old new delta rmmod_main 187 220 +33
* modutils: small optimizationGravatar Denis Vlasenko2009-04-121-18/+16
| | | | | | function old new delta bb_init_module_24 4570 4565 -5