oweals/busybox.git
15 years agoash,hush: fix trap reporting: s/SIGEXIT/EXIT/
Denys Vlasenko [Wed, 23 Sep 2009 23:43:21 +0000 (01:43 +0200)]
ash,hush: fix trap reporting: s/SIGEXIT/EXIT/

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoifenslave: fix for 2.4 kernels compile
Denys Vlasenko [Wed, 23 Sep 2009 21:47:52 +0000 (23:47 +0200)]
ifenslave: fix for 2.4 kernels compile

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years ago*: more portability fixes by Dan Fandrich
Denys Vlasenko [Wed, 23 Sep 2009 21:15:43 +0000 (23:15 +0200)]
*: more portability fixes by Dan Fandrich

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years ago*: optimize code size in strtoul calls
Denys Vlasenko [Wed, 23 Sep 2009 15:17:53 +0000 (17:17 +0200)]
*: optimize code size in strtoul calls

function                                             old     new   delta
bb_parse_mode                                        433     431      -2
rtnl_rtntype_a2n                                     202     198      -4
ParseField                                           511     498     -13
bb_init_module_24                                   4730    4675     -55
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-74)             Total: -74 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotar: accept spaces at the end of header fields (compat)
Denys Vlasenko [Wed, 23 Sep 2009 15:16:37 +0000 (17:16 +0200)]
tar: accept spaces at the end of header fields (compat)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: fix `trap`
Denys Vlasenko [Wed, 23 Sep 2009 01:25:52 +0000 (03:25 +0200)]
ash: fix `trap`

function                                             old     new   delta
forkshell                                            738     810     +72
popstring                                            134     140      +6
parse_command                                       1460    1463      +3
evalvar                                             1373    1371      -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 81/-2)              Total: 79 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohush: fix `trap`
Denys Vlasenko [Tue, 22 Sep 2009 23:46:19 +0000 (01:46 +0200)]
hush: fix `trap`

function                                             old     new   delta
expand_variables                                    2217    2280     +63
static.argv                                            -       8      +8

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohdparm,fdisk: reinstate BLKGETSIZE64 #defines. No code changes
Denys Vlasenko [Tue, 22 Sep 2009 21:16:39 +0000 (23:16 +0200)]
hdparm,fdisk: reinstate BLKGETSIZE64 #defines. No code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agopidof/killall: fix bug 625 (kernel threads get stale "binary name")
Denys Vlasenko [Tue, 22 Sep 2009 21:06:07 +0000 (23:06 +0200)]
pidof/killall: fix bug 625 (kernel threads get stale "binary name")

function                                             old     new   delta
procps_scan                                         1622    1642     +20

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodf: unicode-aware column formatting. By Tomas Heinrich (theinric AT redhat.com)
Denys Vlasenko [Tue, 22 Sep 2009 13:34:28 +0000 (15:34 +0200)]
df: unicode-aware column formatting. By Tomas Heinrich (theinric AT redhat.com)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agops: fix compile breakage
Denys Vlasenko [Tue, 22 Sep 2009 09:21:48 +0000 (11:21 +0200)]
ps: fix compile breakage

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agosed: fix bug 623 (SEGV on some sed commands)
Denys Vlasenko [Tue, 22 Sep 2009 01:02:21 +0000 (03:02 +0200)]
sed: fix bug 623 (SEGV on some sed commands)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agops: conditionally enable -T on non-DESKTOP build too
Denys Vlasenko [Mon, 21 Sep 2009 21:58:43 +0000 (23:58 +0200)]
ps: conditionally enable -T on non-DESKTOP build too

function                                             old     new   delta
ps_main                                              253     274     +21

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohush: better wording in comments. no code changes
Denys Vlasenko [Mon, 21 Sep 2009 08:21:44 +0000 (10:21 +0200)]
hush: better wording in comments. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoawk: fix typo in prev commit
Denys Vlasenko [Mon, 21 Sep 2009 02:16:00 +0000 (04:16 +0200)]
awk: fix typo in prev commit

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoawk: implement mktime
Leonid Lisovskiy [Mon, 21 Sep 2009 02:08:08 +0000 (04:08 +0200)]
awk: implement mktime

function                                             old     new   delta
exec_builtin                                           -    1466   +1466
do_mktime                                              -     116    +116
tokenlist                                            441     448      +7
tokeninfo                                            396     400      +4
evaluate                                            5395    3755   -1640
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/1 up/down: 1593/-1640)        Total: -47 bytes

Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodiff: debug macros; one trivial size optimization
Denys Vlasenko [Sun, 20 Sep 2009 23:23:19 +0000 (01:23 +0200)]
diff: debug macros; one trivial size optimization

function                                             old     new   delta
diffreg                                             1781    1815     +34
isqrt                                                 64       -     -64
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/0 up/down: 34/-64)            Total: -30 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodiff: fix bug 613 (diff -ub segfaults)
Denys Vlasenko [Sun, 20 Sep 2009 23:22:18 +0000 (01:22 +0200)]
diff: fix bug 613 (diff -ub segfaults)

function                                             old     new   delta
dump_unified_vec                                     435     457     +22
diff_main                                            855     860      +5
diffreg                                             1786    1781      -5
do_diff                                              428     416     -12
change                                               325     283     -42
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/3 up/down: 27/-59)            Total: -32 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agops: document -T option
Denys Vlasenko [Sun, 20 Sep 2009 18:29:25 +0000 (20:29 +0200)]
ps: document -T option

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoswaponoff: add uuid/label support. By Natanael Copa
Natanael Copa [Sun, 20 Sep 2009 02:28:22 +0000 (04:28 +0200)]
swaponoff: add uuid/label support. By Natanael Copa

function                                             old     new   delta
swap_enable_disable                                  130     150     +20
resolve_mount_spec                                    76      96     +20
mount_main                                          1152    1154      +2
findfs_main                                          125      80     -45
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 42/-45)             Total: -3 bytes

Signed-off-by: Natanael Copa <natanael.copa@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoar: fix long filenames handling (bug 611)
Denys Vlasenko [Sat, 19 Sep 2009 23:28:27 +0000 (01:28 +0200)]
ar: fix long filenames handling (bug 611)

function                                             old     new   delta
get_header_ar                                        493     528     +35
read_num                                               -      25     +25

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agops,top: add an option to show threads. +260 bytes of code
Denys Vlasenko [Sat, 19 Sep 2009 20:29:42 +0000 (22:29 +0200)]
ps,top: add an option to show threads. +260 bytes of code

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodd: fix conv=noerror w/o sync to not write out zeroed blocks
Denys Vlasenko [Fri, 18 Sep 2009 18:49:36 +0000 (20:49 +0200)]
dd: fix conv=noerror w/o sync to not write out zeroed blocks

function                                             old     new   delta
dd_main                                             1480    1463     -17

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agowe could need ssd -d (fancy)
Bernhard Reutner-Fischer [Thu, 17 Sep 2009 16:57:21 +0000 (18:57 +0200)]
we could need ssd -d (fancy)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
15 years agotar: do chown, not lchown to restore mode (compat)
Denys Vlasenko [Thu, 17 Sep 2009 01:02:57 +0000 (03:02 +0200)]
tar: do chown, not lchown to restore mode (compat)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotar: fix --numeric-owner, --no-same-owner, --no-same-permissions bits
Denys Vlasenko [Thu, 17 Sep 2009 00:43:14 +0000 (02:43 +0200)]
tar: fix --numeric-owner, --no-same-owner, --no-same-permissions bits

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: fix bug 585 (>"$VAR_WITH_UNICODE_CHARS" problem)
Denys Vlasenko [Wed, 16 Sep 2009 14:20:31 +0000 (16:20 +0200)]
ash: fix bug 585 (>"$VAR_WITH_UNICODE_CHARS" problem)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: preparatory cleanup. The only real changes are (unsigned char) casts
Denys Vlasenko [Wed, 16 Sep 2009 14:18:32 +0000 (16:18 +0200)]
ash: preparatory cleanup. The only real changes are (unsigned char) casts

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoadd a testcase for reopened bug 585 (not fixed yet)
Denys Vlasenko [Wed, 16 Sep 2009 12:04:07 +0000 (14:04 +0200)]
add a testcase for reopened bug 585 (not fixed yet)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofdisk: add a warning and truncate disks with >= 2^32 sectors
Denys Vlasenko [Wed, 16 Sep 2009 01:03:13 +0000 (03:03 +0200)]
fdisk: add a warning and truncate disks with >= 2^32 sectors

As a result, for sectors we can use uint32_t instead of long long,
and on 32 bits it has drastic effects:

function                                             old     new   delta
get_geometry                                         619     646     +27
set_sun_partition                                    148     150      +2
get_partition                                        134     135      +1
xbsd_write_bootstrap                                 382     381      -1
xbsd_readlabel                                       247     246      -1
bsd_select                                          1674    1672      -2
sun_other_endian                                       4       1      -3
scsi_disk                                              4       1      -3
floppy                                                 4       1      -3
fdisk_main                                          3735    3732      -3
read_maybe_empty                                      43      37      -6
create_doslabel                                      111     104      -7
read_line                                             97      88      -9
add_logical                                          117     107     -10
write_table                                          599     588     -11
new_partition                                       1684    1670     -14
list_disk_geometry                                   229     215     -14
wrong_p_order                                        130     110     -20
xselect                                             3142    3114     -28
seek_sector                                           71      40     -31
get_boot                                            1576    1533     -43
fill_bounds                                          174     128     -46
delete_partition                                     603     551     -52
list_table                                          1401    1232    -169
set_partition                                        459     286    -173
verify                                              1840    1495    -345
add_partition                                       2486    1270   -1216
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/24 up/down: 30/-2210)       Total: -2180 bytes
   text    data     bss     dec     hex filename
 848812     460    7116  856388   d1144 busybox_old
 846620     460    7108  854188   d08ac busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agouse PACKED macro insted of open-coding GCC-ism
Denys Vlasenko [Tue, 15 Sep 2009 22:58:11 +0000 (00:58 +0200)]
use PACKED macro insted of open-coding GCC-ism

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agounlzma: fixed speedup/shrink by Pascal Bellard (pascal.bellard AT ads-lu.com)
Denys Vlasenko [Tue, 15 Sep 2009 21:40:08 +0000 (23:40 +0200)]
unlzma: fixed speedup/shrink by Pascal Bellard (pascal.bellard AT ads-lu.com)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomount: do not execute "mount.(null)" :)
Denys Vlasenko [Tue, 15 Sep 2009 21:00:09 +0000 (23:00 +0200)]
mount: do not execute "mount.(null)" :)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohttpd_ssi.c: make it a bit less broken
Denys Vlasenko [Sun, 13 Sep 2009 15:38:15 +0000 (17:38 +0200)]
httpd_ssi.c: make it a bit less broken

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoadd USE_PORTABLE_CODE option and use it in find applet
Denys Vlasenko [Sun, 13 Sep 2009 12:57:24 +0000 (14:57 +0200)]
add USE_PORTABLE_CODE option and use it in find applet

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofsck: more clever (->smaller) handling of parameters
Denys Vlasenko [Sun, 13 Sep 2009 03:52:46 +0000 (05:52 +0200)]
fsck: more clever (->smaller) handling of parameters

function                                             old     new   delta
fsck_device                                          213     449    +236
new_args                                               -      46     +46
fsck_main                                           1870    1815     -55
execute                                              289       -    -289
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/1 up/down: 282/-344)          Total: -62 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofsck: remove a few statics
Denys Vlasenko [Sun, 13 Sep 2009 03:52:03 +0000 (05:52 +0200)]
fsck: remove a few statics

function                                             old     new   delta
kill_all_if_got_signal                                 -      60     +60
notitle                                                1       -      -1
doall                                                  1       -      -1
cancel_requested                                       1       -      -1
num_devices                                            4       -      -4
devices                                                4       -      -4
signal_cancel                                          8       -      -8
fsck_main                                           1893    1870     -23
kill_all_if_cancel_requested                          60       -     -60
------------------------------------------------------------------------------
(add/remove: 1/7 grow/shrink: 0/1 up/down: 60/-102)           Total: -42 bytes
   text    data     bss     dec     hex filename
 824205     458    6956  831619   cb083 busybox_old
 824174     458    6948  831580   cb05c busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotest: use index_in_strings
Denys Vlasenko [Sat, 12 Sep 2009 20:41:57 +0000 (22:41 +0200)]
test: use index_in_strings

function                                             old     new   delta
ops_texts                                              -     124    +124
ops_table                                              -      80     +80
display_process_list                                1447    1448      +1
binop                                                525     523      -2
static.no_op                                           6       2      -4
check_operator                                        71      63      -8
ops                                                  240       -    -240
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 1/3 up/down: 205/-254)          Total: -49 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotop: remove GCCisms
Denys Vlasenko [Sat, 12 Sep 2009 13:11:50 +0000 (15:11 +0200)]
top: remove GCCisms

function                                             old     new   delta
display_process_list                                1447    1448      +1

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohush: make memleak debugging more robust
Denys Vlasenko [Sat, 12 Sep 2009 12:48:33 +0000 (14:48 +0200)]
hush: make memleak debugging more robust

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohush: code shrink by Dan Fandrich (dan AT coneharvesters.com)
Denys Vlasenko [Sat, 12 Sep 2009 12:47:41 +0000 (14:47 +0200)]
hush: code shrink by Dan Fandrich (dan AT coneharvesters.com)

function                                             old     new   delta
find_function_slot                                     -      47     +47
run_list                                            2508    2491     -17
find_function                                         40       8     -32
builtin_unset                                        227     165     -62

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofix read_cmdline API and a small buglet where "[comm]" may be too narrow
Denys Vlasenko [Fri, 11 Sep 2009 22:15:34 +0000 (00:15 +0200)]
fix read_cmdline API and a small buglet where "[comm]" may be too narrow

function                                             old     new   delta
func_args                                             25      26      +1
read_cmdline                                         119     114      -5
display_process_list                                1462    1447     -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 1/-20)             Total: -19 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotop, ps: do not output trailing spaces
Denys Vlasenko [Fri, 11 Sep 2009 21:29:45 +0000 (23:29 +0200)]
top, ps: do not output trailing spaces

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotop: add -m ("memory") option
Denys Vlasenko [Fri, 11 Sep 2009 21:26:42 +0000 (23:26 +0200)]
top: add -m ("memory") option

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agonetworking/httpd_ssi.c: expand comments
Denys Vlasenko [Thu, 10 Sep 2009 19:27:39 +0000 (21:27 +0200)]
networking/httpd_ssi.c: expand comments

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agonetworking/httpd_ssi.c: new example CGI handler
Denys Vlasenko [Thu, 10 Sep 2009 19:24:45 +0000 (21:24 +0200)]
networking/httpd_ssi.c: new example CGI handler

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohttpd: shrink mime type matching code (suggested by Bernhard)
Denys Vlasenko [Wed, 9 Sep 2009 23:46:02 +0000 (01:46 +0200)]
httpd: shrink mime type matching code (suggested by Bernhard)

function                                             old     new   delta
static.suffixTable                                   100     231    +131
send_file_and_exit                                   625     658     +33
handle_incoming_and_exit                            2749    2745      -4
send_cgi_and_exit                                    936     901     -35
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 164/-39)           Total: 125 bytes
   text    data     bss     dec     hex filename
 824631     458    6956  832045   cb22d busybox_old
 824550     458    6956  831964   cb1dc busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoa few more GCC-isms removed
Denys Vlasenko [Wed, 9 Sep 2009 21:12:10 +0000 (23:12 +0200)]
a few more GCC-isms removed

   text    data     bss     dec     hex filename
 824641     458    6956  832055   cb237 busybox_old
 824631     458    6956  832045   cb22d busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoremove some garbage from http POST upload example
Denys Vlasenko [Wed, 9 Sep 2009 20:33:30 +0000 (22:33 +0200)]
remove some garbage from http POST upload example

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohttpd: fix bug 601 "I:index.php does not run interpreter on DIR/ url"
Denys Vlasenko [Tue, 8 Sep 2009 19:17:49 +0000 (21:17 +0200)]
httpd: fix bug 601 "I:index.php does not run interpreter on DIR/ url"

function                                             old     new   delta
parse_conf                                          1462    1485     +23
index_html                                             -      11     +11
handle_incoming_and_exit                            2762    2749     -13
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 34/-13)             Total: 21 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoAdd ENABLE_FEATURE_MDEV_RENAME_REGEXP examples to mdev documentation
Bernhard Reutner-Fischer [Tue, 8 Sep 2009 12:16:00 +0000 (14:16 +0200)]
Add ENABLE_FEATURE_MDEV_RENAME_REGEXP examples to mdev documentation

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
15 years agoTODO: add unicode list
Denys Vlasenko [Mon, 7 Sep 2009 11:19:17 +0000 (13:19 +0200)]
TODO: add unicode list

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoMerge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
Denys Vlasenko [Mon, 7 Sep 2009 10:44:56 +0000 (12:44 +0200)]
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox

15 years agomodprobe-small: make string buffer code robust; fix help text
Denys Vlasenko [Mon, 7 Sep 2009 00:38:26 +0000 (02:38 +0200)]
modprobe-small: make string buffer code robust; fix help text

together with previous one-liner:

function                                             old     new   delta
append                                                70      99     +29
parse_module                                         295     311     +16
copy_stringbuf                                        35      36      +1
packed_usage                                       26545   26540      -5
appendc                                               27       -     -27
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 3/1 up/down: 46/-32)             Total: 14 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomodprobe-small: hopefully fix bug 591 (incorrect detection of alias with '-')
Denys Vlasenko [Mon, 7 Sep 2009 00:37:19 +0000 (02:37 +0200)]
modprobe-small: hopefully fix bug 591 (incorrect detection of alias with '-')

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agounzip: more compat if DESKTOP=y
Denys Vlasenko [Sun, 6 Sep 2009 14:52:50 +0000 (16:52 +0200)]
unzip: more compat if DESKTOP=y

function                                             old     new   delta
DESKTOP off:
unzip_main                                          1648    1629     -19
DESKTOP=y:
unzip_main                                          1939    2197    +258

Without this, midnight commander can't display .zip files

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoRevert "unlzma: speedup, by Pascal Bellard (pascal.bellard AT ads-lu.com)"
Denys Vlasenko [Sun, 6 Sep 2009 13:06:25 +0000 (15:06 +0200)]
Revert "unlzma: speedup, by Pascal Bellard (pascal.bellard AT ads-lu.com)"

https://bugs.busybox.net/show_bug.cgi?id=599

This reverts commit 9ac3dc764a78b51fe8fdcd1b4682850de098733b.

15 years agomore C standard compat fixes from Dan Fandrich
Denys Vlasenko [Sun, 6 Sep 2009 10:47:55 +0000 (12:47 +0200)]
more C standard compat fixes from Dan Fandrich

function                                             old     new   delta
docolon                                              207     204      -3

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodocumentation and typo fixes. By Dan Fandrich (dan AT coneharvesters.com)
Denys Vlasenko [Sun, 6 Sep 2009 00:58:59 +0000 (02:58 +0200)]
documentation and typo fixes. By Dan Fandrich (dan AT coneharvesters.com)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoremove some GNUisms. by Dan Fandrich (dan AT coneharvesters.com)
Denys Vlasenko [Sun, 6 Sep 2009 00:36:23 +0000 (02:36 +0200)]
remove some GNUisms. by Dan Fandrich (dan AT coneharvesters.com)

function                                             old     new   delta
logdirs_reopen                                      1310    1308      -2
read_line_input                                     4757    4753      -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-6)               Total: -6 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoexperimentally add mallopt tweaks for reduced memory consumption
Denys Vlasenko [Sun, 6 Sep 2009 00:12:28 +0000 (02:12 +0200)]
experimentally add mallopt tweaks for reduced memory consumption

function                                             old     new   delta
mallopt                                                -     126    +126
main                                                  91     117     +26
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/0 up/down: 152/0)             Total: 152 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohush: export PWD
Denys Vlasenko [Sat, 5 Sep 2009 18:15:17 +0000 (20:15 +0200)]
hush: export PWD

function                                             old     new   delta
set_pwd_var                                            -      36     +36
hush_main                                            941     951     +10
evalvar                                             1365    1363      -2
ash_main                                            1364    1362      -2
builtin_cd                                            75      72      -3
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/3 up/down: 46/-7)              Total: 39 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoinetd: comment tweak. no code changes
Denys Vlasenko [Fri, 4 Sep 2009 01:48:40 +0000 (03:48 +0200)]
inetd: comment tweak. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotelnetd: add -w ("inetd wait") option. Can be configured off.
Denys Vlasenko [Fri, 4 Sep 2009 00:21:13 +0000 (02:21 +0200)]
telnetd: add -w ("inetd wait") option. Can  be configured off.

gcc fils to fully optimize it out when it's off:

function                                             old     new   delta
telnetd_main                                        1527    1548     +21
packed_usage                                       26596   26587      -9

but nevertheless it's a useful (and so far single) example
how to write "inetd wait" tcp service.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoinetd: be more careful with syslog socket; other small fixes
Denys Vlasenko [Fri, 4 Sep 2009 00:19:46 +0000 (02:19 +0200)]
inetd: be more careful with syslog socket; other small fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agosmall commit tweak in parse_datestr, no code changes
Denys Vlasenko [Wed, 2 Sep 2009 09:49:25 +0000 (11:49 +0200)]
small commit tweak in parse_datestr, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agouniq: shave off whole 10 bytes off, oh my
Denys Vlasenko [Mon, 31 Aug 2009 03:15:21 +0000 (05:15 +0200)]
uniq: shave off whole 10 bytes off, oh my

   text    data     bss     dec     hex filename
 823673     458    6956  831087   cae6f busybox_old
 823663     458    6956  831077   cae65 busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: better comment. no code changes
Denys Vlasenko [Sun, 30 Aug 2009 18:05:10 +0000 (20:05 +0200)]
ash: better comment. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agocode shrink in help text code
Denys Vlasenko [Sun, 30 Aug 2009 17:57:49 +0000 (19:57 +0200)]
code shrink in help text code

   text    data     bss     dec     hex filename
 823690     458    6956  831104   cae80 busybox_old
 823673     458    6956  831087   cae6f busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agouniq: code shrink
Denys Vlasenko [Sun, 30 Aug 2009 17:35:06 +0000 (19:35 +0200)]
uniq: code shrink

function                                             old     new   delta
xgetoptfile_uniq_s                                    44      51      +7
uniq_main                                            389     368     -21
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 7/-21)             Total: -14 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agouniq: plug memory leak (patch from OpenWRT project)
Denys Vlasenko [Sun, 30 Aug 2009 17:34:09 +0000 (19:34 +0200)]
uniq: plug memory leak (patch from OpenWRT project)

function                                             old     new   delta
uniq_main                                            371     389     +18

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agouniq: rename some variables. no code changes
Denys Vlasenko [Sun, 30 Aug 2009 17:32:45 +0000 (19:32 +0200)]
uniq: rename some variables. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: revent one place where number() doesn't work
Denys Vlasenko [Sun, 30 Aug 2009 15:07:30 +0000 (17:07 +0200)]
ash: revent one place where number() doesn't work

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoethr-wake: can use ether_hostton on uclibc >= 0.9.30
Denys Vlasenko [Sun, 30 Aug 2009 14:23:29 +0000 (16:23 +0200)]
ethr-wake: can use ether_hostton on uclibc >= 0.9.30

By Leonid Lisovskiy (lly.dev AT gmail.com)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agolibunarchive: fix a bug where mode and time is no longer restored
Denys Vlasenko [Sat, 29 Aug 2009 23:10:17 +0000 (01:10 +0200)]
libunarchive: fix a bug where mode and time is no longer restored

Introduced by me in 1.15.x. Found by Rob Landley.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: deal with some TODOs (mostly trivial)
Denys Vlasenko [Sat, 29 Aug 2009 20:53:41 +0000 (22:53 +0200)]
ash: deal with some TODOs (mostly trivial)

function                                             old     new   delta
msg_illnum                                             -      19     +19
evalvar                                             1365    1364      -1
illnum                                                19       -     -19
subevalvar                                          1182    1158     -24
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/2 up/down: 19/-44)            Total: -25 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: add testsuite for bug 585
Denys Vlasenko [Sat, 29 Aug 2009 18:37:09 +0000 (20:37 +0200)]
ash: add testsuite for bug 585

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: fix handling of Unicode chars in redirects. Fixes bug 585
Denys Vlasenko [Sat, 29 Aug 2009 18:24:12 +0000 (20:24 +0200)]
ash: fix handling of Unicode chars in redirects. Fixes bug 585

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: trivial simplifications and optimizations
Denys Vlasenko [Sat, 29 Aug 2009 18:23:20 +0000 (20:23 +0200)]
ash: trivial simplifications and optimizations

function                                             old     new   delta
rmescapes                                              -     256    +256
memtodest                                             94     103      +9
evalvar                                             1363    1365      +2
_rmescapes                                           256       -    -256
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/0 up/down: 267/-256)           Total: 11 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agorpm2cpio: code shrink
Denys Vlasenko [Fri, 28 Aug 2009 19:15:24 +0000 (21:15 +0200)]
rpm2cpio: code shrink

function                                             old     new   delta
skip_header                                           94      92      -2
rpm2cpio_main                                        177     174      -3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-5)               Total: -5 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agorpm2cpio: handle unseekable input correctly
Denys Vlasenko [Fri, 28 Aug 2009 19:09:51 +0000 (21:09 +0200)]
rpm2cpio: handle unseekable input correctly

function                                             old     new   delta
data_skip                                             14      20      +6
seek_by_jump                                          67      72      +5
data_align                                            81      84      +3
seek_by_read                                          20      19      -1
skip_header                                           99      94      -5
rpm2cpio_main                                        183     177      -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/3 up/down: 14/-12)              Total: 2 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agorpm2cpio: handle bz2 too; code shrink
Pascal Bellard [Fri, 28 Aug 2009 04:20:33 +0000 (06:20 +0200)]
rpm2cpio: handle bz2 too; code shrink

function                                             old     new   delta
skip_header                                          142      99     -43
rpm2cpio_main                                        321     183    -138
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-181)           Total: -181 bytes

Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoupdate copyright year
Denys Vlasenko [Thu, 27 Aug 2009 19:13:30 +0000 (21:13 +0200)]
update copyright year

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomore help text tweaking
Denys Vlasenko [Thu, 27 Aug 2009 18:47:35 +0000 (20:47 +0200)]
more help text tweaking

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotrim help texts a bit
Denys Vlasenko [Thu, 27 Aug 2009 18:38:17 +0000 (20:38 +0200)]
trim help texts a bit

function                                             old     new   delta
packed_usage                                       26709   26634     -75

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoremove a few extra newlines in help text
Denys Vlasenko [Thu, 27 Aug 2009 01:20:45 +0000 (03:20 +0200)]
remove a few extra newlines in help text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agouse .git as EXTRAVERSION
Bernhard Reutner-Fischer [Mon, 24 Aug 2009 14:20:52 +0000 (16:20 +0200)]
use .git as EXTRAVERSION

  ... and not .svn

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
15 years agoash: make "jobs -l" more similar to bash. By Earl Chew. Fixes bug 481
Denys Vlasenko [Sun, 23 Aug 2009 20:10:04 +0000 (22:10 +0200)]
ash: make "jobs -l" more similar to bash. By Earl Chew. Fixes bug 481

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoStart 1.16.x cycle
Denys Vlasenko [Sun, 23 Aug 2009 19:30:38 +0000 (21:30 +0200)]
Start 1.16.x cycle

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoReleasing 1.15.0 1_15_0
Denys Vlasenko [Sun, 23 Aug 2009 00:33:20 +0000 (02:33 +0200)]
Releasing 1.15.0

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agowget: strip trailing whitespace from e.g. "Content-length: 120 "
Matthijs van de Water [Sat, 22 Aug 2009 18:19:48 +0000 (20:19 +0200)]
wget: strip trailing whitespace from e.g. "Content-length: 120   "

function                                             old     new   delta
wget_main                                           2395    2427     +32

Signed-off-by: Matthijs van de Water <matthijs.van.de.water@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agobeep: optimize
Denys Vlasenko [Sat, 22 Aug 2009 16:00:39 +0000 (18:00 +0200)]
beep: optimize

function                                             old     new   delta
beep_main                                            394     276    -118

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agopreliminary work for gcc 4.4.0
Denys Vlasenko [Sat, 22 Aug 2009 00:34:10 +0000 (02:34 +0200)]
preliminary work for gcc 4.4.0

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofix duplicate FAST_FUNC FAST_FUNC
Denys Vlasenko [Fri, 21 Aug 2009 15:40:36 +0000 (17:40 +0200)]
fix duplicate FAST_FUNC FAST_FUNC

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoadd config knob for default freq and length
Bernhard Reutner-Fischer [Fri, 21 Aug 2009 12:40:29 +0000 (14:40 +0200)]
add config knob for default freq and length

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
15 years agoadd simple beep applet
Bernhard Reutner-Fischer [Fri, 21 Aug 2009 11:18:31 +0000 (13:18 +0200)]
add simple beep applet

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
15 years agoupdate defconfig
Denys Vlasenko [Thu, 20 Aug 2009 22:16:01 +0000 (00:16 +0200)]
update defconfig

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agomsh: aliased to hush
Denys Vlasenko [Thu, 20 Aug 2009 22:05:51 +0000 (00:05 +0200)]
msh: aliased to hush

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agodo not store 1st two bytes of compressed help text
Denys Vlasenko [Thu, 20 Aug 2009 21:34:01 +0000 (23:34 +0200)]
do not store 1st two bytes of compressed help text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agopatch: support -N. By Olivier Duclos (olivier.duclos AT gmail.com)
Denys Vlasenko [Thu, 20 Aug 2009 21:33:19 +0000 (23:33 +0200)]
patch: support -N. By Olivier Duclos (olivier.duclos AT gmail.com)

function                                             old     new   delta
packed_usage                                       26646   26656     +10
patch_main                                          1101    1110      +9

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>