aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* test: fix parser to prefer binop over unop, as coreutils does.Denis Vlasenko2008-07-191-4/+13
| | | | | | | | | | | | | | | remove bogus workaround in main(). rename atrocious variables/functions. much expand testsuite. libbb: fix --help to not affect "test --help" function old new delta run_applet_no_and_exit 421 440 +19 nexpr 817 825 +8 static.no_op - 6 +6 test_main 397 257 -140 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 2/1 up/down: 104/-211) Total: -107 bytes
* libbb: fix bb_strtol[l]'s check for "-". Hopefully closes bug 4174Denis Vlasenko2008-07-181-8/+22
| | | | | | | | | function old new delta bb_strtol 82 85 +3 handle_errors 75 66 -9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 3/-9) Total: -6 bytes
* pidof/killall: allow find_pid_by_name to find runningDenis Vlasenko2008-07-172-18/+42
| | | | | | processes started as scripts_with_name_longer_than_15_bytes.sh closes bug 4054 (and is generally neat)
* init: fix compile-time error; fix exiting on broken config fileDenis Vlasenko2008-07-171-3/+3
| | | | | parse_config: cosmetics
* - fix "noreduce" flag of config_read (didn't work at all, at least for me).Bernhard Reutner-Fischer2008-07-171-11/+7
| | | | | | | | | | | | - convert init's inittab parsing to the new config parser: function old new delta config_read 393 386 -7 static.actions 72 64 -8 .rodata 121772 121764 -8 parse_inittab 554 393 -161 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-184) Total: -184 bytes
* - fix segfault in nameif with mactab fileBernhard Reutner-Fischer2008-07-171-43/+42
| | | | | | | | | | | | | | | | | (by fixing and shrink config parser) function old new delta config_free_data - 37 +37 config_open 43 48 +5 pack_gzip 1658 1660 +2 nameif_main 527 525 -2 SynchronizeFile 629 623 -6 make_device 1184 1176 -8 config_close 31 18 -13 config_read 431 393 -38 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/5 up/down: 44/-67) Total: -23 bytes
* bb_strtoXXX: close bug 4174 (potential use of buf[-1])Denis Vlasenko2008-07-171-6/+5
|
* fix up callsites of config_read to check for >= 0Denis Vlasenko2008-07-161-2/+2
|
* update of config file parser from VladimirDenis Vlasenko2008-07-161-99/+7
|
* libbb: get rid of statics in dump.c; code shrinks a lot tooDenis Vlasenko2008-07-161-138/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta alloc_dumper - 26 +26 hexdump_main 600 601 +1 static.done 1 - -1 static.ateof 1 - -1 bb_dump_vflag 1 - -1 static.savp 4 - -4 static.nextfs 4 - -4 static.curp 4 - -4 exitval 4 - -4 endfu 4 - -4 bb_dump_length 4 - -4 bb_dump_fshead 4 - -4 bb_dump_blocksize 4 - -4 _argv 4 - -4 bb_dump_add 365 358 -7 savaddress 8 - -8 eaddress 8 - -8 bb_dump_skip 8 - -8 address 8 - -8 bb_dump_dump 2748 2672 -76 next 538 445 -93 ------------------------------------------------------------------------------ (add/remove: 1/16 grow/shrink: 1/3 up/down: 27/-247) Total: -220 bytes text data bss dec hex filename 789458 607 6764 796829 c289d busybox_old 789309 601 6696 796606 c27be busybox_unstripped
* od,hexdump: fix bug where xrealloc may move pointer,Denis Vlasenko2008-07-161-62/+68
| | | | | | leaving other pointers dangling (bug 4104). + many style fixes in libbb/dump.c.
* libbb: document plans to speed up line-based inputDenis Vlasenko2008-07-151-2/+13
|
* libbb: unified config parser (By Vladimir Dronnikov)Denis Vlasenko2008-07-152-0/+248
| | | | | | | | | | | | | | | | | | | | | | mdev: use it function old new delta config_read - 400 +400 config_open - 43 +43 config_close - 9 +9 qrealloc 33 36 +3 compare_keys 735 737 +2 xstrtoull_range_sfx 296 295 -1 qgravechar 109 106 -3 get_address 181 178 -3 next_token 928 923 -5 sv_main 1228 1222 -6 find_main 418 406 -12 next_field 32 - -32 make_device 1269 1184 -85 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 2/7 up/down: 457/-147) Total: 310 bytes
* libbb: experimental faster string reading routines.Denis Vlasenko2008-07-151-0/+70
|
* libbb: shrink print_login_issue (by Vladimir Dronnikov)Denis Vlasenko2008-07-121-8/+7
| | | | | | function old new delta print_login_issue 469 435 -34
* sleep: if FANCY && DESKTOP, support fractional seconds, minutes,Denis Vlasenko2008-07-123-30/+86
| | | | | | | | | | | | | | | | | hours and so on. It's coreutils compat. bloatcheck is atrocious :( function old new delta sleep_main 71 362 +291 bb_strtod - 127 +127 make_device 1269 1294 +25 getoptscmd 708 713 +5 switch_root_main 402 401 -1 display_speed 90 85 -5 show_entry 295 289 -6 parse_expr 841 833 -8 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/4 up/down: 448/-20) Total: 428 bytes
* taskset: fix some careless code in both fancy and non-fancy cases.Denis Vlasenko2008-07-111-2/+2
| | | | | -5 bytes for fancy, +5 for non-fancy
* open_transformer: do not return fd, it does not changeDenis Vlasenko2008-07-101-16/+46
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* libbb/mtab: fix xrealloc_vector falloutDenis Vlasenko2008-07-091-4/+7
|
* libbb: use improved xmalloc_read() from modprobe-smallDenis Vlasenko2008-07-091-76/+56
| | | | | | who: fix compile breakage on some systems modprobe-small: improve Config help text wording
* add xrealloc_vector.cDenis Vlasenko2008-07-081-0/+36
|
* libbb: introduce and use xrealloc_vectorDenis Vlasenko2008-07-087-18/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* mdev: do not follow symlinks in /sys (as was intended prior to rev 18811).Denis Vlasenko2008-07-061-1/+8
| | | | | | | | | | | | | If this breaks things, please document why! mdev,init: use shared code for fd sanitization function old new delta bb_daemonize_or_rexec 155 172 +17 mdev_main 500 505 +5 init_main 907 856 -51 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 22/-51) Total: -29 bytes
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-054-7/+7
|
* libbb/recursive_action.c: fix slight error in prev commitDenis Vlasenko2008-07-041-3/+5
|
* modutils: optional modutils-small by Vladimir Dronnikov.Denis Vlasenko2008-07-041-3/+10
| | | | | | 15kb smaller than standard one. libbb/recursive_action.c: commented-out code for aborting the scan.
* revert last two commits. vfork cannot be used in subroutine,Denis Vlasenko2008-07-013-31/+6
| | | | | it trashes stack on return
* *: introduce and use xfork()Denis Vlasenko2008-07-012-3/+11
| | | | | | | | | | | | | function old new delta xfork - 20 +20 msh_main 1377 1380 +3 mod_process 455 446 -9 forkexit_or_rexec 30 17 -13 expand_variables 1434 1421 -13 open_transformer 91 76 -15 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/4 up/down: 23/-50) Total: -27 bytes
* add missing fileDenis Vlasenko2008-07-011-0/+18
|
* *: introduce and use xvfork()Denis Vlasenko2008-07-012-3/+2
| | | | | | | | | | | | | | | | | | | | function old new delta time_main 1052 1285 +233 crontab_main 623 856 +233 ifupdown_main 2202 2403 +201 xvfork - 20 +20 passwd_main 1049 1053 +4 grave 1068 1066 -2 script_main 935 921 -14 vfork_or_die 20 - -20 vfork_compressor 206 175 -31 open_as_user 109 - -109 popen2 218 - -218 edit_file 910 690 -220 run_command 268 - -268 ------------------------------------------------------------------------------ (add/remove: 1/4 grow/shrink: 4/4 up/down: 691/-882) Total: -191 bytes
* sendmail: from Vladimir:Denis Vlasenko2008-06-301-1/+14
| | | | | | | | | | | | | | | | | | | | | | Here comes the third part of compatibility patch for sendmail. * Introduced new safe_getdomainname() -- will it be useful? * Fixed SEGV if sender address is missed. Should snoop for sender address in mail headers? * More compat: use HOSTNAME instead of HOST when no server is explicitly specified. * crond: fixed mail recipient address. function old new delta safe_getdomainname - 56 +56 sendgetmail_main 1937 1946 +9 grep_file 846 850 +4 crond_main 1423 1425 +2 xstrtoull_range_sfx 295 296 +1 utoa_to_buf 110 108 -2 passwd_main 1053 1049 -4 sv_main 1234 1228 -6 parse_expr 841 833 -8 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/4 up/down: 72/-20) Total: 52 bytes
* libbb: shrink monotonic_XXX functions, introduce monotonic_nsDenis Vlasenko2008-06-291-6/+23
| | | | | | | | | | | | | | | | | | | | | | (unused for now) function old new delta get_mono - 31 +31 sv_main 1228 1234 +6 expand 1693 1697 +4 get_address 178 181 +3 utoa_to_buf 108 110 +2 builtin_exit 46 48 +2 qrealloc 36 33 -3 qgravechar 109 106 -3 ash_main 1383 1380 -3 grep_file 850 846 -4 popstring 140 134 -6 monotonic_us 85 60 -25 monotonic_sec 41 16 -25 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/7 up/down: 48/-69) Total: -21 bytes
* lineedit: document prompt handlingDenis Vlasenko2008-06-281-11/+17
|
* fix FAST_FUNC falloutDenis Vlasenko2008-06-281-2/+3
|
* *: introduce and use FAST_FUNC: regparm on i386, otherwise no-onDenis Vlasenko2008-06-27110-338/+339
| | | | | | | text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
* print_flags: fix trivial thinkoDenis Vlasenko2008-06-261-1/+1
| | | | | vi: fix reversed checks for underflow
* open_transformer: fix bug of calling exit instead of _exitDenis Vlasenko2008-06-261-9/+19
| | | | | | open_transformer: don't leak compressed descriptor anymore recursive_action: tiny shrink
* busybox: do not print help to fd 2, print it to fd 1Denis Vlasenko2008-06-251-0/+1
| | | | | otherwise this can break scripts
* changes in comments onlyDenis Vlasenko2008-06-241-2/+2
|
* fix breakage found by randomconfigDenis Vlasenko2008-06-231-3/+3
|
* strrchr: actually, last one was finding "" in "any" at pos 0,Denis Vlasenko2008-06-181-1/+1
| | | | | should find at pos LAST...
* strrchr: bikeshed painting time!Denis Vlasenko2008-06-181-51/+43
| | | | | | | | | replace cubic running time implementation with quadratic make embedded test actually readable function old new delta strrstr 42 44 +2
* - fixes from TitoBernhard Reutner-Fischer2008-06-181-10/+7
|
* - fix includesBernhard Reutner-Fischer2008-06-171-2/+1
|
* - improved strrstr impl from vda with testcases from Tito and vdaBernhard Reutner-Fischer2008-06-171-6/+69
|
* whitespace and comment fixes, no code changesDenis Vlasenko2008-06-162-7/+3
|
* Specially for Bernhard Fischer introduce USE_BB_CRYPTDenis Vlasenko2008-06-151-0/+17
| | | | | which selects between libc/custom crypt routines.
* further encrypt_des optimizationsDenis Vlasenko2008-06-151-51/+141
| | | | | | | | | | function old new delta pw_encrypt 943 964 +21 des_crypt 1512 1509 -3 u_sbox 512 256 -256 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 21/-259) Total: -238 bytes
* cryptpw: fix "cryptpw -a des -- TEXT" caseDenis Vlasenko2008-06-151-67/+75
| | | | | | | | | | | | | | libbb/pw_encrypt_des.c: optimize function old new delta cryptpw_main 177 157 -20 des_crypt 1682 1512 -170 pw_encrypt 1036 842 -194 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-384) Total: -384 bytes Run tested.
* *: use llist_pop for traverse-and-free list operationDenis Vlasenko2008-06-151-1/+1
| | | | | | | | | | | | | | | | | | function old new delta append_file_list_to_list 109 111 +2 udhcpc_main 2414 2413 -1 run_parts_main 325 324 -1 od_main 2324 2323 -1 getopt_main 709 707 -2 env_main 253 251 -2 sed_main 659 656 -3 ps_main 522 519 -3 traceroute_main 3960 3954 -6 sort_main 844 838 -6 diff_main 866 858 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/10 up/down: 2/-33) Total: -31 bytes