summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* ssd: fix -K/-S mixup in help textDenis Vlasenko2008-08-031-6/+6
|
* xargs: update help textDenis Vlasenko2008-08-031-6/+9
|
* xargs: fix xargs -e; added test for thatDenis Vlasenko2008-08-032-1/+26
|
* halt: signal init regardless of ENABLE_INITDenis Vlasenko2008-08-031-2/+5
|
* nameif: shrink (by Vladimir)Denis Vlasenko2008-08-011-28/+16
| | | | | | function old new delta nameif_main 668 636 -32
* makedevs: fix help text discrepanciesDenis Vlasenko2008-08-011-15/+16
|
* makedevs: shrink (by Vladimir); testsuiteDenis Vlasenko2008-08-013-86/+375
| | | | | | function old new delta makedevs_main 1153 1071 -82
* hush: support $_NUMBERS variable namesDenis Vlasenko2008-07-315-4/+19
|
* hush: fix "case ... in <newline> word)..."Denis Vlasenko2008-07-313-1/+20
|
* hush: support "pattern1|pattern2...)" in case statementsDenis Vlasenko2008-07-311-8/+18
| | | | | | parse_stream 1847 1861 +14 run_list 1995 2006 +11
* tr: fix yet another access past the end of a string (bug 4374)Denis Vlasenko2008-07-301-3/+5
|
* chpst: large code shrink by VladimirDenis Vlasenko2008-07-302-231/+209
| | | | | | | | | | | | | function old new delta chpst_main 1058 1357 +299 euidgid 56 - -56 suidgid 59 - -59 slimit 208 - -208 packed_usage 24638 24420 -218 edir 375 - -375 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 1/1 up/down: 299/-916) Total: -617 bytes
* ash: bash compat: "shift $BIGNUM" is equivalent to "shift 1"Denis Vlasenko2008-07-303-1/+20
|
* hush: trivial code shrinkDenis Vlasenko2008-07-291-8/+4
| | | | | | function old new delta builtin_continue 48 22 -26
* hush: use G.xxx instead of #define xxx G.xxx. We have too many globalsDenis Vlasenko2008-07-291-234/+198
| | | | | there and #defines get messy. Remove one write-only G.variable.
* randomconfig fixDenis Vlasenko2008-07-291-2/+2
|
* hush: small fix for repeated continue and fix for wrong loop depth countDenis Vlasenko2008-07-293-1/+17
| | | | | after Ctrl-C; with testcase for first one
* hush: fix inverted check (was making all break's to act as "break 99999")Denis Vlasenko2008-07-291-1/+1
|
* hush: fix break'ing out of {} and () groups; with testcaseDenis Vlasenko2008-07-293-13/+43
| | | | | | | | function old new delta builtin_break 93 129 +36 builtin_continue 21 47 +26 run_list 1973 1976 +3
* randomconfig fixesDenis Vlasenko2008-07-292-3/+7
|
* hush: add #defines to switch off break/continue if loops are not supportedDenis Vlasenko2008-07-298-7/+30
| | | | | | *: remove a few inline keywords no code changes
* modprobe: support for /etc/modprobe.d, by Timo Teras.Denis Vlasenko2008-07-291-63/+106
| | | | | | | | | | | | | | function old new delta include_conf_file_act - 929 +929 include_conf_recursive - 30 +30 include_conf_file2 - 30 +30 include_conf_file - 14 +14 include_conf_dir_act - 14 +14 build_dep 1011 875 -136 include_conf 922 - -922 ------------------------------------------------------------------------------ (add/remove: 5/1 grow/shrink: 0/1 up/down: 1017/-1058) Total: -41 bytes
* libbb: dump: do not use uninitialized memory. close bug 4364.Denis Vlasenko2008-07-291-4/+3
|
* tr: fix "tr [=" case. Closes bug 4374.Denis Vlasenko2008-07-281-0/+2
| | | | | | | function old new delta expand 1701 1738 +37 tr_main 472 474 +2
* hush: fix "while false; ..." exitcode; add testsuitesDenis Vlasenko2008-07-285-1/+24
|
* hush: support "break N" and "continue N"Denis Vlasenko2008-07-287-35/+82
| | | | | | | | | | | | | | | fix non-detection of builtins and applets in "v=break; ...; $v; ..." case add testsuite entries for the above function old new delta builtin_break 12 93 +81 run_list 1948 1971 +23 builtin_continue 12 21 +9 pseudo_exec_argv 132 138 +6 builtin_exec 23 25 +2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/0 up/down: 121/0) Total: 121 bytes
* hush: implement break and continueDenis Vlasenko2008-07-282-77/+107
| | | | | | | | | | | | function old new delta bltins 252 276 +24 builtin_continue - 12 +12 builtin_break - 12 +12 static.version_str 18 17 -1 run_list 1984 1948 -36 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 1/2 up/down: 48/-27) Total: 11 bytes
* hush: in run_list(), some loop_top ops seems to be superfluous.Denis Vlasenko2008-07-281-15/+15
| | | | | | | | | comment them out. Also, use separate temp variable for verification loop, helps gcc to optimize better. function old new delta run_list 2039 1984 -55
* hush: in run_list(), last_cond_code seems to be superfluous. comment it outDenis Vlasenko2008-07-281-16/+18
| | | | | | | | function old new delta run_list 2055 2039 -16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-16) Total: -16 bytes
* hush: explain run_list() in detail; small optimizationsDenis Vlasenko2008-07-281-92/+109
| | | | | | | | | | | | function old new delta hush_main 785 786 +1 expand_variables 1447 1448 +1 builtin_exit 48 49 +1 builtin_eval 54 55 +1 run_list 2075 2055 -20 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/1 up/down: 4/-20) Total: -16 bytes
* documentation fixDenis Vlasenko2008-07-281-3/+3
|
* hush: finish and enable optional case...esac support. Code size cost:Denis Vlasenko2008-07-284-13/+69
| | | | | | | | | | | | | | | | function old new delta run_list 1891 2075 +184 parse_stream 1764 1847 +83 expand_strvec_to_string - 83 +83 done_word 647 715 +68 static.reserved_list 144 168 +24 static.reserved_match - 12 +12 done_pipe 95 105 +10 builtin_exit 48 46 -2 builtin_eval 127 54 -73 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 5/2 up/down: 464/-75) Total: 389 bytes
* fbset: shrink code a bit moreDenis Vlasenko2008-07-271-20/+15
|
* fbset: code shrinkDenis Vlasenko2008-07-271-30/+14
| | | | | | | | | function old new delta ss - 33 +33 fbset_main 1968 1844 -124 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 33/-124) Total: -91 bytes
* netstat: code shrinkDenis Vlasenko2008-07-271-197/+96
| | | | | | | | | | | | | | | function old new delta print_inet_line - 193 +193 scan_inet_proc_line - 130 +130 unix_do_one 519 503 -16 do_info 145 97 -48 netstat_main 601 548 -53 tcp_do_one 462 61 -401 raw_do_one 513 107 -406 udp_do_one 533 119 -414 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 0/6 up/down: 323/-1338) Total: -1015 bytes
* style fix, no code changesDenis Vlasenko2008-07-271-2/+2
|
* netstat: optional -p support by L. Gabriel Somlo <somlo AT cmu.edu>Denis Vlasenko2008-07-275-23/+276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without FEATURE_NETSTAT_PRG: function old new delta recursive_action 416 425 +9 tcp_do_one 420 428 +8 udp_do_one 492 499 +7 raw_do_one 472 479 +7 expand 1697 1701 +4 netstat_main 489 492 +3 unix_do_one 486 488 +2 flags 1 - -1 qgravechar 109 106 -3 net_conn_line 4 - -4 bbunpack 391 383 -8 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 7/2 up/down: 40/-16) Total: 24 bytes With FEATURE_NETSTAT_PRG: file_act - 213 +213 dir_act - 192 +192 netstat_main 489 601 +112 prg_cache_get - 50 +50 tcp_do_one 420 462 +42 udp_do_one 492 533 +41 raw_do_one 472 513 +41 unix_do_one 486 519 +33 recursive_action 416 425 +9 expand 1697 1701 +4 flags 1 - -1 qgravechar 109 106 -3 net_conn_line 4 - -4 bbunpack 391 383 -8 packed_usage 24586 24572 -14 ------------------------------------------------------------------------------ (add/remove: 3/2 grow/shrink: 7/3 up/down: 737/-30) Total: 707 bytes
* whitespace fixDenis Vlasenko2008-07-261-16/+16
|
* man: a forgotten chunk of lask commit (config file parser fixes)Denis Vlasenko2008-07-261-20/+16
|
* fix several problems with config parser:Denis Vlasenko2008-07-2618-145/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a bug where it underflows the string a bug where it never frees parser_t struct make read_config() return 0 if parser is NULL, make config_close() accept and ignore NULL parser - eliminates many if() blocks reverse the sense of parser bit flags - negative flags are harder to grok. hexdump: revert the change to use config parser, it is BIGGER and also requires additional quirks in parser *: explicitly use PARSER_NORMAL instead of 0 function old new delta login_main 1575 1596 +21 config_close 18 29 +11 bbunpack 383 391 +8 qgravechar 106 109 +3 rtnl_tab_initialize 121 117 -4 expand 1697 1693 -4 man_main 717 712 -5 nameif_main 674 668 -6 hexdump_main 597 591 -6 read_config 217 209 -8 dnsd_main 1478 1470 -8 sysctl_main 203 189 -14 config_open2 44 25 -19 make_device 1177 1141 -36 config_read 597 549 -48 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/11 up/down: 43/-158) Total: -115 bytes
* man: ignore (not complain) lines with less than 2 tokensDenis Vlasenko2008-07-261-1/+3
| | | | | in config file
* tr: fix "access past the end of a string" bug 4354Denis Vlasenko2008-07-261-1/+1
|
* mdev: do not complain if mdev.conf does not exist;Denis Vlasenko2008-07-263-145/+166
| | | | | | use #if to prevent gcc from generating dead code (sadly, it's more ugly this way)
* unzip: move check for unsupported zip features to better placeDenis Vlasenko2008-07-261-15/+17
|
* unzip: give better error message when presented with unsupportedDenis Vlasenko2008-07-263-0/+6
| | | | | | zip file. Add zip documentation and an example of file we cant (yet) unpack.
* ash: add slightly different testcaseDenis Vlasenko2008-07-264-2/+23
|
* fix example of vcsa creationDenis Vlasenko2008-07-261-1/+1
|
* ash: fix testcase to not sleep for whole 10 seconds,Denis Vlasenko2008-07-262-12/+11
| | | | | gets annoying pretty fast. Also fix wrong message there.
* ash: fix typoDenis Vlasenko2008-07-261-1/+1
|
* ash: hopefully close bug 4324. With testcase.Denis Vlasenko2008-07-263-17/+57
| | | | | | | function old new delta evaltree 621 869 +248 popstring 134 140 +6