aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump version to 1.33.01_33_01_33_stableGravatar Denys Vlasenko2020-12-291-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libiproute: band-aid for old uclibc missing IFA_FLAGSGravatar Denys Vlasenko2020-12-291-1/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe-small: convert to new recursive_action() APIGravatar Denys Vlasenko2020-12-291-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bc: placate gcc (it thinks 's' can be uninitialized here)Gravatar Denys Vlasenko2020-12-291-8/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesGravatar Denys Vlasenko2020-12-2913-18/+45
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: make comment more clearGravatar Denys Vlasenko2020-12-271-4/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* man: implement SECTION parametersGravatar Denys Vlasenko2020-12-271-6/+35
| | | | | | | | | | function old new delta man_main 807 942 +135 is_section_name - 52 +52 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/0 up/down: 187/0) Total: 187 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixGravatar Denys Vlasenko2020-12-252-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix this case: echo "SCRIPT" | hushGravatar Denys Vlasenko2020-12-255-1/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: if !EDITING, do not regenerate prompt for every input charGravatar Denys Vlasenko2020-12-251-5/+12
| | | | | | | | | | function old new delta fgetc_interactive 261 258 -3 pseudo_exec_argv 406 399 -7 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-10) Total: -10 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: Surround syslog.h with the config checkGravatar Lauri Kasanen2020-12-251-0/+2
| | | | | | | | This lets bb mount build for limited targets without syslog.h, as long as the parts using it like NFS are disabled. Signed-off-by: Lauri Kasanen <cand@gmx.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: change "clear ungetc counter on syntax errors" fix to match dashGravatar Denys Vlasenko2020-12-241-2/+1
| | | | | | | | | | function old new delta ash_main 1203 1210 +7 raise_exception 39 26 -13 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 7/-13) Total: -6 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix ^C in INTERACTIVE, !EDITING configGravatar Denys Vlasenko2020-12-231-6/+29
| | | | | | | | | | function old new delta refill_HFILE_and_getc 88 170 +82 fgetc_interactive 226 250 +24 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 106/0) Total: 106 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: revert "make interactive ^C break out of PS2 mode"Gravatar Denys Vlasenko2020-12-231-22/+3
| | | | | | | | | | | | | | | | | It made ^C break out of the entire shell, if we aren't in PS2 mode. Need a better idea. function old new delta expand_one_var 2344 2353 +9 syntax_error_unterm_ch 21 29 +8 parse_dollar 817 824 +7 parse_stream 2251 2238 -13 fgetc_interactive 249 227 -22 syntax_error_unterm_str 26 - -26 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 3/2 up/down: 24/-61) Total: -37 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix PS1 prompth in !EDITING configGravatar Denys Vlasenko2020-12-231-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix fallout from tweaking ${var:START:LEN} codeGravatar Denys Vlasenko2020-12-233-1/+4
| | | | | | | function old new delta expand_one_var 2344 2353 +9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shell: for signal exitcode, use 128 | sig, not 128 + sig - MIPS has signal 128Gravatar Denys Vlasenko2020-12-232-16/+18
| | | | | | | | | | | | | | | function old new delta wait_for_child_or_signal 213 214 +1 refill_HFILE_and_getc 89 88 -1 getstatus 97 96 -1 builtin_wait 339 337 -2 checkjobs 187 183 -4 process_wait_result 450 444 -6 waitcmd 290 281 -9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/6 up/down: 1/-23) Total: -22 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix commentGravatar Denys Vlasenko2020-12-231-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* factor: fix commentGravatar Denys Vlasenko2020-12-231-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* factor: detect squaresGravatar Denys Vlasenko2020-12-222-3/+62
| | | | | | | | | | | | | | | | | | | | | | | If we have a square, the speedup can be extremely large (in best case example below, it's ~40000 times faster): $ time ./busybox_old factor 18446743988964486098 18446743988964486098: 2 3037000493 3037000493 real 0m4.246s $ time ./busybox factor 18446743988964486098 18446743988964486098: 2 3037000493 3037000493 real 0m0.000s function old new delta isqrt_odd - 57 +57 print_w - 36 +36 factorize 218 236 +18 print_h - 7 +7 factorize_numstr 65 72 +7 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 2/0 up/down: 125/0) Total: 125 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: code shrinkGravatar Denys Vlasenko2020-12-211-5/+5
| | | | | | | function old new delta read_line_input 3171 3157 -14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: add a comment about possible use of tcflush()Gravatar Denys Vlasenko2020-12-211-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bc: do not allocate line editing state until neededGravatar Denys Vlasenko2020-12-215-30/+35
| | | | | | | | | | | function old new delta xc_read_line 324 353 +29 free_line_input_t 34 39 +5 xc_vm_init 656 640 -16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 34/-16) Total: 18 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: Add support for modprobe.blacklist=module1,module2,...Gravatar Andy Shevchenko2020-12-211-0/+19
| | | | | | | | | | | | function old new delta parse_and_add_kcmdline_module_options - 186 +186 modprobe_main 713 798 +85 do_modprobe 648 451 -197 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 271/-197) Total: 74 bytes Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: deal with FIXMEs for corner cases in parameter expansionGravatar Denys Vlasenko2020-12-211-18/+34
| | | | | | | function old new delta expand_one_var 2323 2344 +21 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* factor: fix typo in undefGravatar Denys Vlasenko2020-12-211-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* factor: code shrinkGravatar Denys Vlasenko2020-12-211-9/+8
| | | | | | | function old new delta factor_main 176 171 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* factor: 30% faster trial division (better sieve)Gravatar Denys Vlasenko2020-12-201-75/+95
| | | | | | | | | | | function old new delta packed_wheel - 192 +192 factor_main 108 176 +68 factorize 284 218 -66 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 260/-66) Total: 194 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: remove one redundant getpid() on every startupGravatar Denys Vlasenko2020-12-201-8/+6
| | | | | | | function old new delta hush_main 1151 1147 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ping6: add -w/-W NUM to --helpGravatar Denys Vlasenko2020-12-201-6/+10
| | | | | | | function old new delta packed_usage 33515 33533 +18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ping: fix -wN to not think that one packet is always lostGravatar Denys Vlasenko2020-12-201-5/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: clear ungetc counter on syntax errorsGravatar Denys Vlasenko2020-12-191-55/+57
| | | | | | | function old new delta raise_exception 26 39 +13 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tftp: fix --helpGravatar Denys Vlasenko2020-12-191-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* route: code shrinkGravatar Denys Vlasenko2020-12-191-33/+26
| | | | | | | | | | | | | function old new delta kw_lookup 84 86 +2 tbl_hash_net_host 15 14 -1 tbl_verb 21 19 -2 tbl_ipvx 104 92 -12 packed_usage 33527 33493 -34 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/4 up/down: 2/-49) Total: -47 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* help text tweaks, mainly expanding one for routeGravatar Denys Vlasenko2020-12-184-19/+22
| | | | | | | function old new delta packed_usage 33485 33527 +42 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* help text: use -P PORT formGravatar Denys Vlasenko2020-12-183-6/+6
| | | | | | | function old new delta packed_usage 33502 33491 -11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* help text tweaksGravatar Denys Vlasenko2020-12-1819-79/+77
| | | | | | | function old new delta packed_usage 33570 33502 -68 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: if we race with other loop mount, we forget to close loop devGravatar Denys Vlasenko2020-12-171-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move ADJTIME_PATH define to header filesGravatar Denys Vlasenko2020-12-175-16/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* traceroute: fix --help textGravatar Denys Vlasenko2020-12-171-23/+25
| | | | | | | | | | function old new delta traceroute_init 1151 1153 +2 packed_usage 33568 33570 +2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 4/0) Total: 4 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* traceroute: avoid collecting target local address if !VERBOSEGravatar Denys Vlasenko2020-12-171-2/+32
| | | | | | | | | | function old new delta common_traceroute_main 1542 1537 -5 traceroute_init 1151 1101 -50 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-55) Total: -55 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: fix a race when a free loop device is snatched under us by another mount.Gravatar Denys Vlasenko2020-12-171-65/+73
| | | | | | | function old new delta set_loop 850 809 -41 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mail: launch_helper(): flush stdio before vfork, set G.helper_pid only in parentGravatar Denys Vlasenko2020-12-171-1/+3
| | | | | | | function old new delta launch_helper 188 193 +5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mail: deobfuscate launch_helper()Gravatar Denys Vlasenko2020-12-171-29/+27
| | | | | | | | | | 13 bytes are not worth the risk of doing something iffy after vfork(). Let's have much clearer code there. function old new delta launch_helper 175 188 +13 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mail: commonalize send_r_n()Gravatar Denys Vlasenko2020-12-174-10/+12
| | | | | | | function old new delta send_mail_command 85 55 -30 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mail: move "opts" from globalsGravatar Denys Vlasenko2020-12-176-15/+15
| | | | | | | | | | | | | function old new delta popmaildir_main 812 823 +11 sendmail_main 1295 1301 +6 makemime_main 291 288 -3 parse 970 966 -4 reformime_main 107 100 -7 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/3 up/down: 17/-14) Total: 3 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shells: a fix for systems without RLIMIT_NICEGravatar Denys Vlasenko2020-12-171-3/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fixes for Hurd buildGravatar Denys Vlasenko2020-12-172-0/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: do not compile selinux_or_die() if !SELINUXGravatar Denys Vlasenko2020-12-161-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: make -static-libgcc selectable in configGravatar Denys Vlasenko2020-12-162-1/+10
| | | | | | OpenWrt wants this off. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>