aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * ash testsuite: add two hush tests from last commitDenys Vlasenko2018-01-254-0/+10
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix two corner cases in ${v/pattern/repl}. Closes 10686Denys Vlasenko2018-01-255-2/+21
| | | | | | | | | | | | | | function old new delta expand_one_var 1592 1618 +26 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix handling of $_ (so far it's an ordinary variable, no special meaning)Denys Vlasenko2018-01-251-10/+17
| | | | | | | | | | | | | | function old new delta parse_dollar 820 779 -41 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * chrt: code shrinkDenys Vlasenko2018-01-251-8/+8
| | | | | | | | | | | | | | | | function old new delta show_min_max 60 59 -1 policies 96 72 -24 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: add support for command_not_found_handle hook function (bashism)William Pitcock2018-01-241-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements support for the command_not_found_handle hook function, which is useful for allowing package managers to suggest packages which could provide the command. Unlike bash, however, we ignore exit codes from the hook function and always return the correct POSIX error code (EX_NOTFOUND). function old new delta find_command 911 990 +79 Signed-off-by: William Pitcock <nenolod@dereferenced.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * less: fix help text conditional for -RDenys Vlasenko2018-01-241-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc6: additional fix for ppp interface typeDenys Vlasenko2018-01-231-2/+6
| | | | | | | | | | | | Invent a fictitious MAC only once Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * chrt: use correct min/max prioritiesDenys Vlasenko2018-01-231-12/+14
| | | | | | | | | | | | | | | | | | | | | | function old new delta chrt_main 369 432 +63 policies 48 96 +48 packed_usage 32239 32249 +10 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 121/0) Total: 121 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * chrt: add support for SCHED_IDLEPovilas Kanapickas2018-01-231-8/+13
| | | | | | | | | | Signed-off-by: Povilas Kanapickas <povilas@radix.lt> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * chrt: add support for SCHED_BATCHPovilas Kanapickas2018-01-231-5/+11
| | | | | | | | | | Signed-off-by: Povilas Kanapickas <povilas@radix.lt> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * od_bloaty: fix debug codeDenys Vlasenko2018-01-231-3/+7
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * less: optional support of -RDenys Vlasenko2018-01-221-1/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | Based on patches by Lubomir Rintel <lkundrak@v3.sk> function old new delta read_lines 653 722 +69 less_main 2464 2531 +67 packed_usage 32202 32239 +37 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 173/0) Total: 173 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * volume_id: add LittleFS detectionSven-Göran Bergh2018-01-193-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for LittleFS to blkid. Not included if FEATURE_BLKID_TYPE is not selected (neither UUID nor label). LittleFS is a small fail-safe filesystem designed for embedded systems. It has strong copy-on-write guarantees and storage on disk is always kept in a valid state. It also provides a form of dynamic wear levelling for systems that can not fit a full flash translation layer. (https://github.com/geky/littlefs) ARM has introduced it in its Mbed OS 5.7, so it starts to gain focus. (https://os.mbed.com/blog/entry/littlefs-high-integrity-embedded-fs/) function old new delta volume_id_probe_lfs - 62 +62 fs1 20 24 +4 Signed-off-by: Sven-Göran Bergh <sgb@systemaxion.se> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc6: fix for ppp interface typeDenys Vlasenko2018-01-192-7/+24
| | | | | | | | | | | | | | function old new delta d6_read_interface 454 600 +146 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix a case where EXIT trap may modify its code mid-flightDenys Vlasenko2018-01-191-1/+1
| | | | | | | | | | | | | | function old new delta hush_exit 93 99 +6 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix build if !BASH_LINENO_VARDenys Vlasenko2018-01-191-8/+13
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: implement $LINENO bashismDenys Vlasenko2018-01-193-2/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta run_pipe 1697 1774 +77 unset_local_var_len 258 301 +43 hush_main 1009 1051 +42 set_local_var 516 554 +38 parse_and_run_file 42 75 +33 i_getch 96 116 +20 .rodata 18858 18876 +18 done_command 106 122 +16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 8/0 up/down: 287/0) Total: 287 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc[6]: remove overzealous timeout clamping codeDenys Vlasenko2018-01-172-13/+10
| | | | | | | | | | | | | | | | function old new delta udhcpc_main 2840 2826 -14 udhcpc6_main 2699 2670 -29 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc6: --help fixesDenys Vlasenko2018-01-162-3/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc6: show only short opts in --help textDenys Vlasenko2018-01-161-37/+0
| | | | | | | | | | | | | | function old new delta packed_usage 26028 25966 -62 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc6: fix lease time staying very small because -d was not specifiedDenys Vlasenko2018-01-161-0/+4
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc6: code shrinkDenys Vlasenko2018-01-161-19/+25
| | | | | | | | | | | | | | | | function old new delta udhcpc6_main 2723 2727 +4 .rodata 128695 128561 -134 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc6: add support of prefix delegationDenys Vlasenko2018-01-162-22/+101
| | | | | | | | | | | | Based on patch by DannyAAM <danny@saru.moe> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc6: preparatory patch, no code changesDenys Vlasenko2018-01-161-37/+37
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc6: fix ipv6prefix[_lease] envvar value in script invocationDenys Vlasenko2018-01-161-4/+4
| | | | | | | | | | | | Based on a patch by DannyAAM <danny@saru.moe>. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: a bit of NOFORK code should only be active if FEATURE_SH_STANDALONE=yDenys Vlasenko2018-01-151-1/+3
| | | | | | | | | | | | | | function old new delta evalcommand 1546 1420 -126 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * popmaildir: tweak help textDenys Vlasenko2018-01-141-2/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * renice: add comment about getpwnam/NOFORK interactionDenys Vlasenko2018-01-141-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * renice: use BUILD_BUG_ON()Denys Vlasenko2018-01-141-10/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * NOFORK_NOEXEC.sh: a script to find "interesting" appletsDenys Vlasenko2018-01-141-0/+34
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * mv: make it NOEXECDenys Vlasenko2018-01-143-3/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * cal: make it NOEXECDenys Vlasenko2018-01-142-2/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * nandwrite: cope with old headers which have no MTD_FILE_MODE_RAWDenys Vlasenko2018-01-141-0/+9
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * size_single_applets.sh: fix a bug which mishandles e.g. "udhcpc6" nameDenys Vlasenko2018-01-141-3/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * config: add size estimations for a few appletsDenys Vlasenko2018-01-145-5/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * tc: fix single-applet buildDenys Vlasenko2018-01-131-0/+6
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * shell: echo ${?:0} was fixed sometime ago, enable it in testsDenys Vlasenko2018-01-134-2/+4
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix raw ^C handlisg in single-quoted stringsDenys Vlasenko2018-01-139-12/+15
| | | | | | | | | | | | | | function old new delta parse_stream 2719 2754 +35 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: add command2.tests from ash testsDenys Vlasenko2018-01-122-0/+8
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: tweak command -vV printing code, no logic changesDenys Vlasenko2018-01-121-3/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: implement "command -v -V"Denys Vlasenko2018-01-121-31/+84
| | | | | | | | | | | | | | | | | | | | | | function old new delta pseudo_exec_argv 231 374 +143 if_command_vV_print_and_exit - 127 +127 builtin_set 267 273 +6 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/0 up/down: 276/0) Total: 276 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * which: fix TODO with NOFORK+malloc_failure misbehavingDenys Vlasenko2018-01-124-26/+28
| | | | | | | | | | | | | | | | | | | | | | function old new delta find_executable 86 104 +18 which_main 202 194 -8 executable_exists 66 51 -15 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 18/-23) Total: -5 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: implement "command" builtin (no options are supported yet)Denys Vlasenko2018-01-111-1/+16
| | | | | | | | | | | | | | function old new delta pseudo_exec_argv 194 231 +37 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix handling of ^C in evalDenys Vlasenko2018-01-115-4/+36
| | | | | | | | | | | | | | | | | | | | | | function old new delta run_list 1044 1259 +215 builtin_eval 45 126 +81 expand_strvec_to_string 91 - -91 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 2/0 up/down: 296/-91) Total: 205 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: fix handling of raw ^C in scripts: "echo ^C"Denys Vlasenko2018-01-115-4/+27
| | | | | | | | | | | | | | | | function old new delta expand_vars_to_list 1133 1187 +54 parse_stream 2690 2719 +29 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hush: remove dead codeDenys Vlasenko2018-01-111-15/+0
| | | | | | | | | | | | | | function old new delta done_word 761 711 -50 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: ALWAYS_INLINE grabstackblock()Denys Vlasenko2018-01-101-1/+1
| | | | | | | | | | | | | | function old new delta grabstackblock 5 - -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * init: stop using static dataDenys Vlasenko2018-01-101-16/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta init_action_list 4 - -4 new_init_action 148 142 -6 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-10) Total: -10 bytes text data bss dec hex filename 927839 481 6832 935152 e44f0 busybox_old 927833 481 6824 935138 e44e2 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: make ${v:N:M} more robust for very large M by clamping to MIN/MAX_INTDenys Vlasenko2018-01-101-13/+25
| | | | | | | | | | | | | | | | | | | | | | Before this patch, "${v:2:0x100000001}" = "${v:2:1}", and similarly, constructs like "${v:2:9999999999}" may give wrong result due to int overflows. function old new delta substr_atoi - 43 +43 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * dd: fixed partial count logicDenys Vlasenko2018-01-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | $ busybox dd if=/dev/zero of=/dev/loop0 bs=100M count=8; echo $? 8+0 records in 7+0 records out <=========== FIXED, was 7+1 805220352 bytes (767.9MB) copied, 0.464010 seconds, 1.6GB/s 1 function old new delta write_and_stats 97 99 +2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>