aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Move locale, unicode, and "use sendfile?" options to library tuningDenys Vlasenko2016-11-242-138/+138
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Collapse three levers of menuconfig to two levels.Denys Vlasenko2016-11-241-81/+76
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash,hush: ^C from command line should set $? to 128+SIGINTDenys Vlasenko2016-11-242-5/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: fix handling of repeating Alt-b, Alt-f, Alt-d, Alt-BackspaceRostislav Skudnov2016-11-243-80/+68
| | | | | | | | | | | | | | | | | | | | | | | | These key combinations should repeat correctly when the keys are pressed and held. Before this change, they do this erratically - many repeats are "eaten" because they are treated as unrecognized ESC seqs: ESC 0x7f is treated by Alt+baskspace, but ESC 0x7f ESC 0x7f ESC 0x7f is unrecognized. Escape sequences corresponding to these key combinations are moved from read_line_input to lineedit_read_key. Also, these key sequences are now enabled regardless of whether FEATURE_EDITING_VI is set, since Vim does not actually support these key combinations, but they are present in readline library. function old new delta static.esccmds 93 103 +10 read_line_input 3737 3687 -50 Signed-off-by: Rostislav Skudnov <rostislav@tuxera.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: fix matching failureAaro Koskinen2016-11-242-0/+56
| | | | | | | | | | | | Fix matching failure when plist is advanced while checking for buffered lines - the lines in the hunk that are about to be added should be skipped when checking for matching context. Also add a valid test case that fails with current busybox and is fixed by the change. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: fix debug log failureAaro Koskinen2016-11-241-1/+1
| | | | | | | | If we reach the end of plist it means the input has still data while we are expecting EOF. Fix the log to avoid a crash. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Remove outdated commentsDenys Vlasenko2016-11-232-5/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Convert all udhcp applets to "new style" applet definitionsDenys Vlasenko2016-11-235-4/+19
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Convert all selinux/* applets to "new style" applet definitionsDenys Vlasenko2016-11-2314-137/+148
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* test: make [ and [[ forms individually selectableDenys Vlasenko2016-11-233-9/+29
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Remove remnants of disabled "length" appletDenys Vlasenko2016-11-234-40/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Make dos2unix/unix2dos independently selectableDenys Vlasenko2016-11-231-5/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Convert all coreutils/* applets to "new style" applet definitionsDenys Vlasenko2016-11-2376-929/+950
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Make "hd" independently selectableDenys Vlasenko2016-11-231-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Convert all util-linux/* applets to "new style" applet definitionsDenys Vlasenko2016-11-2342-594/+622
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Remove trailing empty linesDenys Vlasenko2016-11-231-2/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Convert all console-tools/* applets to "new style" applet definitionsDenys Vlasenko2016-11-2318-203/+213
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Convert all mailutils/* applets to "new style" applet definitionsDenys Vlasenko2016-11-236-47/+47
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tc: consolidate its disabled bitsDenys Vlasenko2016-11-233-12/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Make ping6 and traceroute6 selectable independently from ping/tracerouteDenys Vlasenko2016-11-232-8/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ipneigh: add this shortcur similar to other "ip <CMD>" shortcutsDenys Vlasenko2016-11-231-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Rename FEATURE_FTP_WRITE and FEATURE_FTP_AUTHENTICATION to *_FTPD_*Denys Vlasenko2016-11-231-13/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Convert all networking/* applets to "new style" applet definitionsDenys Vlasenko2016-11-2335-882/+909
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Convert all modutils/* applets to "new style" applet definitionsDenys Vlasenko2016-11-239-118/+119
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Make killall and killall5 selecatable independent from killDenys Vlasenko2016-11-231-8/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Convert all procps/* applets to "new style" applet definitionsDenys Vlasenko2016-11-2314-172/+184
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Convert all miscutils/* applets to "new style" applet definitionsDenys Vlasenko2016-11-2237-77/+147
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Split miscutils/Config.src items into miscutils/*.c filesDenys Vlasenko2016-11-2236-533/+498
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: explain why we use sprintf and why it should be fineDenys Vlasenko2016-11-221-20/+36
| | | | | | | While at it, fix a pathological case where it is not fine: -r REALM with some 8-kbyte long REALM would overflow the buffer. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix allnoconfig warningsDenys Vlasenko2016-11-181-8/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* applets.h.sh: a script to check applet names against config optionsDenys Vlasenko2016-11-171-0/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Make mkfs.vfat and mkdosfs individually selectableDenys Vlasenko2016-11-164-10/+19
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Make mke2fs and mkfs.ext2 individually selectableDenys Vlasenko2016-11-164-11/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Make bzcat, lzcat, xzcat, zcat, lzopcat, unlzop individually selectableDenys Vlasenko2016-11-163-35/+81
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Make ifup and ifdown individually selectable.Denys Vlasenko2016-11-144-116/+127
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Make swapon and swapoff individually selectable.Denys Vlasenko2016-11-144-32/+50
| | | | | | For example, without swapoff, code shrinks by 277 bytes. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Make grep/egrep/fgrep independently selectableDenys Vlasenko2016-11-142-31/+23
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Make halt/poweroff/reboot independently selectableDenys Vlasenko2016-11-141-9/+32
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Make setarch/linux32/linux64 independently selectableDenys Vlasenko2016-11-131-5/+24
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dnsdomainname: split it from "hostname", make it independently selectableDenys Vlasenko2016-11-134-11/+24
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: handle pax-encoded utf8 filenames and link names. Closes 9406Denys Vlasenko2016-11-113-7/+45
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: make getch/peek functions directly calledDenys Vlasenko2016-11-081-27/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Indirect calls are more difficult to predict. Unfortunately, on x64 direct call is 5 bytes while indirect "call (reg+ofs)" is 3 bytes: function old new delta i_getch - 82 +82 i_peek - 63 +63 parse_stream 2531 2579 +48 parse_dollar 771 797 +26 parse_redirect 296 321 +25 add_till_closing_bracket 408 420 +12 encode_string 256 265 +9 i_peek_and_eat_bkslash_nl 93 99 +6 add_till_backquote 110 114 +4 parse_and_run_stream 139 141 +2 expand_vars_to_list 1143 1144 +1 static_peek 6 - -6 setup_string_in_str 39 18 -21 setup_file_in_str 40 19 -21 static_get 27 - -27 file_peek 52 - -52 file_get 65 - -65 ------------------------------------------------------------------------------ (add/remove: 2/4 grow/shrink: 9/2 up/down: 278/-192) Total: 86 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: renumber PIPE_foo, make PIPE_SEQ = 0Denys Vlasenko2016-11-081-5/+4
| | | | | | | | | | PIPE_SEQ is used most often, having it zero makes code smaller: function old new delta done_word 719 707 -12 parse_stream 2546 2531 -15 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: small optimization in run_listDenys Vlasenko2016-11-081-7/+8
| | | | | | | | | I thought gcc can detect this itself. It doesn't. function old new delta run_list 1030 1021 -9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: deindent large block of code, no code changesDenys Vlasenko2016-11-081-58/+57
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: simplify insert_bg_jobsDenys Vlasenko2016-11-081-10/+8
| | | | | | | function old new delta insert_bg_job 366 281 -85 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: make "wait %1" less likely to play with signal maskDenys Vlasenko2016-11-081-8/+7
| | | | | | | | | | | Was playing with "sleep 3 | exit 3 & wait %1" and noticed that often SIGCHLD arrives even before I get to signal masking. Can avoid it in this case. function old new delta wait_for_child_or_signal 228 265 +37 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: rework "wait %jobspec" to work in non-interactive shells tooDenys Vlasenko2016-11-089-13/+28
| | | | | | | | | Also add tests. wait5.tests so far fails (but works for ash and dash). function old new delta builtin_wait 305 283 -22 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: "wait $!; echo $?" should return 127 if $! already exitedDenys Vlasenko2016-11-071-4/+5
| | | | | | | It would be nice to provide bash-like "remember las exitcode" thingy, but it's a bit complex. For now, match ash and dash. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: implement "wait %jobspec"Denys Vlasenko2016-11-071-29/+88
| | | | | | | | | | | | | | | | function old new delta parse_jobspec - 83 +83 job_exited_or_stopped - 79 +79 builtin_wait 236 302 +66 wait_for_child_or_signal 199 228 +29 checkjobs 142 158 +16 builtin_jobs 59 68 +9 process_wait_result 453 408 -45 builtin_fg_bg 272 203 -69 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 4/2 up/down: 282/-114) Total: 168 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>