oweals/busybox.git
14 years agontpd: step correction to variables had wrong sign, fixing
Denys Vlasenko [Thu, 24 Jun 2010 18:23:40 +0000 (20:23 +0200)]
ntpd: step correction to variables had wrong sign, fixing

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoconspy: document attribute byte format
Denys Vlasenko [Thu, 24 Jun 2010 15:50:00 +0000 (17:50 +0200)]
conspy: document attribute byte format

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agosmemcap: new applet
Denys Vlasenko [Thu, 24 Jun 2010 03:05:12 +0000 (05:05 +0200)]
smemcap: new applet

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: introduce and use bb_unsetenv_and_free
Denys Vlasenko [Thu, 24 Jun 2010 03:00:50 +0000 (05:00 +0200)]
*: introduce and use bb_unsetenv_and_free

function                                             old     new   delta
bb_unsetenv_and_free                                   -      17     +17
tcpudpsvd_main                                      1819    1810      -9
safe_setenv                                           58      47     -11
udhcp_run_script                                     630     616     -14
make_device                                         1683    1663     -20
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/4 up/down: 17/-54)            Total: -37 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: <> redir should not truncate
Andreas Bühmann [Thu, 24 Jun 2010 02:32:37 +0000 (04:32 +0200)]
ash: <> redir should not truncate

Signed-off-by: Andreas Bühmann <buehmann@users.berlios.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoconspy: code shrink ~200 bytes
Pascal Bellard [Wed, 23 Jun 2010 18:25:00 +0000 (20:25 +0200)]
conspy: code shrink ~200 bytes

Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotypo fix
Denys Vlasenko [Tue, 22 Jun 2010 16:33:15 +0000 (18:33 +0200)]
typo fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorev: new applet
Marek Polacek [Tue, 22 Jun 2010 10:53:35 +0000 (12:53 +0200)]
rev: new applet

   text   data    bss    dec    hexfilename
    377      0      0    377    179rev.o

Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix config help text
Denys Vlasenko [Mon, 21 Jun 2010 05:25:36 +0000 (07:25 +0200)]
fix config help text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobootchartd: added optional compat features
Denys Vlasenko [Mon, 21 Jun 2010 05:17:23 +0000 (07:17 +0200)]
bootchartd: added optional compat features

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix errors in detecting non-modified areas
Denys Vlasenko [Mon, 21 Jun 2010 02:00:16 +0000 (04:00 +0200)]
fix errors in detecting non-modified areas

function                                             old     new   delta
screen_char                                          100     102      +2
cleanup                                               84      86      +2
screen_dump                                          215     210      -5
conspy_main                                         1503    1491     -12

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoconspy: new applet
Pascal Bellard [Mon, 21 Jun 2010 00:17:29 +0000 (02:17 +0200)]
conspy: new applet

Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodecompress_unxz: use common string
Denys Vlasenko [Mon, 21 Jun 2010 00:16:51 +0000 (02:16 +0200)]
decompress_unxz: use common string

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agounxz: update from XZ embedded git
Denys Vlasenko [Sun, 20 Jun 2010 00:40:56 +0000 (02:40 +0200)]
unxz: update from XZ embedded git

function                                             old     new   delta
rc_reset                                               -      21     +21
unpack_xz_stream                                    2342    2357     +15
lzma_reset                                           102      64     -38
lzma_len                                             506     443     -63
xz_dec_lzma2_run                                    1438    1374     -64
xz_dec_reset                                          73       -     -73
lzma_main                                           2517    2183    -334
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/4 up/down: 36/-572)          Total: -536 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotweak TODO file
Denys Vlasenko [Sat, 19 Jun 2010 20:15:20 +0000 (22:15 +0200)]
tweak TODO file

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoxargs: bump default -sNUM up to 32k. Use sysconf() to trim it down if necessary
Denys Vlasenko [Sat, 19 Jun 2010 19:44:01 +0000 (21:44 +0200)]
xargs: bump default -sNUM up to 32k. Use sysconf() to trim it down if necessary

function                                             old     new   delta
xargs_main                                           819     830     +11

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoadded Config.in to .gitignore
Denys Vlasenko [Sat, 19 Jun 2010 18:42:02 +0000 (20:42 +0200)]
added Config.in to .gitignore

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocosmetics on top of Dan's patches
Denys Vlasenko [Sat, 19 Jun 2010 18:07:23 +0000 (20:07 +0200)]
cosmetics on top of Dan's patches

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoDefine GNU-specific link options in one place
Dan Fandrich [Sat, 19 Jun 2010 05:36:10 +0000 (22:36 -0700)]
Define GNU-specific link options in one place

This makes them easier to change to support a non-GNU toolchain.

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoAdded code for nonstandard function strsep()
Dan Fandrich [Sat, 19 Jun 2010 05:36:45 +0000 (22:36 -0700)]
Added code for nonstandard function strsep()

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoA few minor portability improvements
Dan Fandrich [Sat, 19 Jun 2010 05:37:42 +0000 (22:37 -0700)]
A few minor portability improvements

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agosed: trivial code shrink -18 bytes
Denys Vlasenko [Sat, 19 Jun 2010 15:51:06 +0000 (17:51 +0200)]
sed: trivial code shrink -18 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoMerge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
Denys Vlasenko [Sat, 19 Jun 2010 15:50:44 +0000 (17:50 +0200)]
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox

14 years agoRevert "sed: trivial code shrink"
Denys Vlasenko [Sat, 19 Jun 2010 15:50:23 +0000 (17:50 +0200)]
Revert "sed: trivial code shrink"

This reverts commit c2c7aa4b0d16049322ca2ebc69ca1093f6944e3a.

14 years agosed: trivial code shrink
Denys Vlasenko [Sat, 19 Jun 2010 15:47:46 +0000 (17:47 +0200)]
sed: trivial code shrink

function                                             old     new   delta
sed_main                                             685     667     -18

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: times builtin: use unsigned type; take free-of-charge modulo
Denys Vlasenko [Fri, 18 Jun 2010 13:36:48 +0000 (15:36 +0200)]
ash: times builtin: use unsigned type; take free-of-charge modulo

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: stop defining _GNU_SOURCE in source files, it's in CFLAGS anyway
Denys Vlasenko [Fri, 18 Jun 2010 13:15:24 +0000 (15:15 +0200)]
*: stop defining _GNU_SOURCE in source files, it's in CFLAGS anyway

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: fix unset in standalone mode
Denys Vlasenko [Fri, 18 Jun 2010 12:23:47 +0000 (14:23 +0200)]
ash: fix unset in standalone mode

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: cosmetics, no code changes
Denys Vlasenko [Fri, 18 Jun 2010 12:09:48 +0000 (14:09 +0200)]
ash: cosmetics, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoImprove unzip's handling of stream ZIP files
Dan Fandrich [Fri, 18 Jun 2010 04:39:44 +0000 (21:39 -0700)]
Improve unzip's handling of stream ZIP files

Search harder for the ZIP magic numbers at the end of a file by checking
16 KiB from the end instead of just 1 KiB.  ZIP files with long comments
(such as certain cryptographically signed files) or those sitting in a
wrapper could have more than 1 KiB of data after the magic numbers, so
they couldn't be read.

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoAllow CONFIG_VOLUMEID to be turned off
Dan Fandrich [Fri, 18 Jun 2010 06:30:27 +0000 (23:30 -0700)]
Allow CONFIG_VOLUMEID to be turned off

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoignore changes to Kbuild files, they are generated
Dan Fandrich [Fri, 18 Jun 2010 11:26:11 +0000 (13:26 +0200)]
ignore changes to Kbuild files, they are generated

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomkfs_ext2: improve comments a bit
Denys Vlasenko [Fri, 18 Jun 2010 10:40:57 +0000 (12:40 +0200)]
mkfs_ext2: improve comments a bit

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocpio.tests: mention suid bits too, not only sgid
Denys Vlasenko [Fri, 18 Jun 2010 10:28:05 +0000 (12:28 +0200)]
cpio.tests: mention suid bits too, not only sgid

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomkfs_ext2: reuse string
Bernhard Reutner-Fischer [Fri, 18 Jun 2010 09:49:44 +0000 (11:49 +0200)]
mkfs_ext2: reuse string

function                                             old     new   delta
mkfs_ext2_main                                      2376    2378      +2
.rodata                                           135872  135848     -24
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 2/-24)             Total: -22 bytes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agomkfs_ext2: fix handling of -I argument
Bernhard Reutner-Fischer [Fri, 18 Jun 2010 09:47:45 +0000 (11:47 +0200)]
mkfs_ext2: fix handling of -I argument

-I <unsigned int> but was treated as a character

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agomktemp: be more compatible: bare "mktemp" creates tempfile in /tmp, not cwd
Denys Vlasenko [Fri, 18 Jun 2010 01:16:27 +0000 (03:16 +0200)]
mktemp: be more compatible: bare "mktemp" creates tempfile in /tmp, not cwd

function                                             old     new   delta
mktemp_main                                          171     152     -19

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodate: make %N work without -lrt on glibc
Denys Vlasenko [Fri, 18 Jun 2010 00:55:48 +0000 (02:55 +0200)]
date: make %N work without -lrt on glibc

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotftp: increase initial retry timeout from 50 to 100 ms
Denys Vlasenko [Fri, 18 Jun 2010 00:47:27 +0000 (02:47 +0200)]
tftp: increase initial retry timeout from 50 to 100 ms

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoadd a comment about sed and suid bits
Denys Vlasenko [Fri, 18 Jun 2010 00:12:56 +0000 (02:12 +0200)]
add a comment about sed and suid bits

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodata_extract_all: do not chmod symlink. Closes 2053
Denys Vlasenko [Fri, 18 Jun 2010 00:00:55 +0000 (02:00 +0200)]
data_extract_all: do not chmod symlink. Closes 2053

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agonetworking/Config.src: make tftp/tftpd-related options less confusing. Closes 2017
Denys Vlasenko [Thu, 17 Jun 2010 21:48:59 +0000 (23:48 +0200)]
networking/Config.src: make tftp/tftpd-related options less confusing. Closes 2017

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix extra bogus files generation in include/config/*
Denys Vlasenko [Thu, 17 Jun 2010 18:20:24 +0000 (20:20 +0200)]
fix extra bogus files generation in include/config/*

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoubiattach,ubidetach: new applets
Baruch Siach [Wed, 16 Jun 2010 10:22:58 +0000 (12:22 +0200)]
ubiattach,ubidetach: new applets

function                                             old     new   delta
ubi_attach_detach_main                                 -     175    +175
packed_usage                                       27056   27136     +80
applet_names                                        2262    2282     +20
applet_main                                         1328    1336      +8
applet_nameofs                                       664     668      +4
applet_install_loc                                   166     167      +1
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 5/0 up/down: 288/0)             Total: 288 bytes

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofindutils/*: move usage and applet bits to *.c files
Denys Vlasenko [Tue, 15 Jun 2010 13:40:16 +0000 (15:40 +0200)]
findutils/*: move usage and applet bits to *.c files

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofile rename: TODO_config_nommu -> TEST_config_nommu
Denys Vlasenko [Tue, 15 Jun 2010 13:15:57 +0000 (15:15 +0200)]
file rename: TODO_config_nommu -> TEST_config_nommu

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoxargs: another code shrink
Denys Vlasenko [Tue, 15 Jun 2010 08:18:01 +0000 (10:18 +0200)]
xargs: another code shrink

function                                             old     new   delta
process0_stdin                                       117     103     -14
process_stdin                                        336     314     -22

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoxargs: trivial code shrink
Denys Vlasenko [Tue, 15 Jun 2010 08:02:04 +0000 (10:02 +0200)]
xargs: trivial code shrink

function                                             old     new   delta
xargs_main                                           807     787     -20

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorfkill: do not enable by default, it requires new-ish Linux headers
Denys Vlasenko [Mon, 14 Jun 2010 12:28:31 +0000 (14:28 +0200)]
rfkill: do not enable by default, it requires new-ish Linux headers

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoscripts/echo.c: remove bb-ism
Denys Vlasenko [Mon, 14 Jun 2010 12:27:26 +0000 (14:27 +0200)]
scripts/echo.c: remove bb-ism

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoxargs: trivial code shrink
Denys Vlasenko [Mon, 14 Jun 2010 10:38:36 +0000 (12:38 +0200)]
xargs: trivial code shrink

function                                             old     new   delta
process_stdin                                        343     336      -7
process0_stdin                                       124     117      -7
xargs_main                                           807     787     -20

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoxargs: simplify logic
Denys Vlasenko [Sun, 13 Jun 2010 22:57:05 +0000 (00:57 +0200)]
xargs: simplify logic

Removed double-buffering in a linked list.

function                                             old     new   delta
store_param                                            -      56     +56
xargs_main                                           871     840     -31
process_stdin                                        458     396     -62
process0_stdin                                       267     143    -124
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/3 up/down: 56/-217)          Total: -161 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoxargs: fix accounting of -sNUM
Denys Vlasenko [Sun, 13 Jun 2010 10:43:54 +0000 (12:43 +0200)]
xargs: fix accounting of -sNUM

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoxargs: make -s NUM accept practically unlimited range
Denys Vlasenko [Sun, 13 Jun 2010 01:44:27 +0000 (03:44 +0200)]
xargs: make -s NUM accept practically unlimited range

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoxargs: code shrink -15 bytes
Denys Vlasenko [Sun, 13 Jun 2010 01:43:43 +0000 (03:43 +0200)]
xargs: code shrink -15 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agostat: make output more similar to GNU stat
Seb [Sat, 12 Jun 2010 19:57:50 +0000 (21:57 +0200)]
stat: make output more similar to GNU stat

Signed-off-by: Seb <sbb@tuxfamily.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodate: trivial fix - was reading seconds into nanoseconds field! DOH
Denys Vlasenko [Sat, 12 Jun 2010 01:32:22 +0000 (03:32 +0200)]
date: trivial fix - was reading seconds into nanoseconds field! DOH

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotftp: make message about 512 byte block less confusing
Denys Vlasenko [Sat, 12 Jun 2010 01:29:58 +0000 (03:29 +0200)]
tftp: make message about 512 byte block less confusing

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocheck-lxdialog.sh: fix helptext
Bernhard Reutner-Fischer [Fri, 11 Jun 2010 13:31:54 +0000 (15:31 +0200)]
check-lxdialog.sh: fix helptext

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoutoa: shrink
Denys Vlasenko [Thu, 10 Jun 2010 08:54:44 +0000 (10:54 +0200)]
utoa: shrink

function                                             old     new   delta
itoa_to_buf                                           20      23      +3
utoa_to_buf                                          117     101     -16

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomodinfo: needs modutils.o
Denys Vlasenko [Wed, 9 Jun 2010 08:18:35 +0000 (10:18 +0200)]
modinfo: needs modutils.o

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: add INSERTs to *.src files where appropriate
Denys Vlasenko [Tue, 8 Jun 2010 10:15:11 +0000 (12:15 +0200)]
*: add INSERTs to *.src files where appropriate

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodate: use the same code for FEATURE_DATE_NANO for glibc and uclibc
Denys Vlasenko [Tue, 8 Jun 2010 02:39:30 +0000 (04:39 +0200)]
date: use the same code for FEATURE_DATE_NANO for glibc and uclibc

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobbconfig: make it independent from printf functions
Denys Vlasenko [Mon, 7 Jun 2010 12:14:26 +0000 (14:14 +0200)]
bbconfig: make it independent from printf functions

function                                             old     new   delta
full_write2_str                                        -      25     +25
full_write1_str                                        -      25     +25
clear_main                                            21      20      -1
telnet_main                                         1488    1477     -11
getty_main                                          1932    1918     -14
full_write22_str                                      25       -     -25
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/3 up/down: 50/-51)             Total: -1 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotypo fix
Denys Vlasenko [Mon, 7 Jun 2010 11:34:34 +0000 (13:34 +0200)]
typo fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agosmall fix in usage text
Denys Vlasenko [Mon, 7 Jun 2010 01:04:46 +0000 (03:04 +0200)]
small fix in usage text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodpkg: add support for lzma compression
Pascal Bellard [Sun, 6 Jun 2010 23:20:41 +0000 (01:20 +0200)]
dpkg: add support for lzma compression

Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomodprobe: add support for -l and -s. Remove some unsupported options
Pascal Bellard [Sun, 6 Jun 2010 23:16:45 +0000 (01:16 +0200)]
modprobe: add support for -l and -s. Remove some unsupported options

Fixed some goofs in help text

function                                             old     new   delta
modprobe_main                                        494     653    +159
packed_usage                                       27129   27145     +16
insmod_main                                           98      95      -3

Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofuser: code shrink
Maksym Kryzhanovskyy [Sun, 6 Jun 2010 20:56:12 +0000 (22:56 +0200)]
fuser: code shrink

function                                             old     new   delta
fuser_main                                           918     871     -47

Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix allnoconfig
Denys Vlasenko [Sun, 6 Jun 2010 20:14:58 +0000 (22:14 +0200)]
fix allnoconfig

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agopipe_progress: make it independent of printf machinery
Denys Vlasenko [Sun, 6 Jun 2010 19:53:09 +0000 (21:53 +0200)]
pipe_progress: make it independent of printf machinery

function                                             old     new   delta
bb_putchar_stderr                                      -      24     +24
ParseField                                           494     471     -23
progress_meter                                       212     188     -24
xargs_main                                           888     842     -46
pipe_progress_main                                   151     105     -46
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/4 up/down: 24/-139)          Total: -115 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agopipe_progress: shrink
Denys Vlasenko [Sun, 6 Jun 2010 16:19:25 +0000 (18:19 +0200)]
pipe_progress: shrink

function                                             old     new   delta
pipe_progress_main                                   163     151     -12

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoloadkmap: remove UNUSED_PARAM from argv
Denys Vlasenko [Sun, 6 Jun 2010 16:10:50 +0000 (18:10 +0200)]
loadkmap: remove UNUSED_PARAM from argv

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodumpkmap,loadkmap: abort if there are params on cmdline
Denys Vlasenko [Sun, 6 Jun 2010 16:09:57 +0000 (18:09 +0200)]
dumpkmap,loadkmap: abort if there are params on cmdline

function                                             old     new   delta
loadkmap_main                                        201     219     +18
dumpkmap_main                                        208     223     +15

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodate: make FEATURE_NANO compile on glibc systems
Denys Vlasenko [Sun, 6 Jun 2010 15:53:48 +0000 (17:53 +0200)]
date: make FEATURE_NANO compile on glibc systems

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotop: code shrink, -26 bytes
Denys Vlasenko [Sun, 6 Jun 2010 15:40:54 +0000 (17:40 +0200)]
top: code shrink, -26 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotop: code shrink
Maksym Kryzhanovskyy [Sun, 6 Jun 2010 06:24:39 +0000 (08:24 +0200)]
top: code shrink

   text    data     bss     dec     hex filename
 853034     453    6820  860307   d2093 busybox_old
 852726     453    6820  859999   d1f5f busybox_unstripped

Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoyes: this applet doesn't have options, don't lie that it does.
Denys Vlasenko [Sun, 6 Jun 2010 03:23:09 +0000 (05:23 +0200)]
yes: this applet doesn't have options, don't lie that it does.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix a few goofs uncovered by "make allnoconfig" testing
Denys Vlasenko [Sun, 6 Jun 2010 03:07:11 +0000 (05:07 +0200)]
fix a few goofs uncovered by "make allnoconfig" testing

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomodinfo: new applet
Pascal Bellard [Sun, 6 Jun 2010 02:55:13 +0000 (04:55 +0200)]
modinfo: new applet

function                                             old     new   delta
modinfo_main                                           -     307    +307
modinfo                                                -     280    +280
packed_usage                                       27037   27131     +94
display                                                -      74     +74
static.shortcuts                                       -      24     +24
applet_names                                        2254    2262      +8
applet_main                                         1324    1328      +4
applet_nameofs                                       662     664      +2
------------------------------------------------------------------------------
(add/remove: 5/0 grow/shrink: 4/0 up/down: 793/0)             Total: 793 bytes

Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoremove defconfig. Now "make defconfig" simply uses defaults from Config.in
Denys Vlasenko [Sun, 6 Jun 2010 02:14:28 +0000 (04:14 +0200)]
remove defconfig. Now "make defconfig" simply uses defaults from Config.in

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomake it possible to keep usage texts in .c files
Denys Vlasenko [Sat, 5 Jun 2010 23:53:38 +0000 (01:53 +0200)]
make it possible to keep usage texts in .c files

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomake it possible to have include/applets.h-esque entries in .c files
Denys Vlasenko [Sat, 5 Jun 2010 22:53:45 +0000 (00:53 +0200)]
make it possible to have include/applets.h-esque entries in .c files

As an example, bunzip2 and bzcat is changed to use it.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoRemove requirement that include/applets.h must be sorted
Denys Vlasenko [Sat, 5 Jun 2010 21:11:07 +0000 (23:11 +0200)]
Remove requirement that include/applets.h must be sorted

First, I _again_ violated it - two xz-related applets are in wrong positions.
Second, planned in-applet help text thing will be so much easier without
this requirement...

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotr: add forgotten //config: prefixes
Denys Vlasenko [Sat, 5 Jun 2010 19:29:41 +0000 (21:29 +0200)]
tr: add forgotten //config: prefixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomass renaming Kbuild -> Kbuild.src, Config.in -> Config.src
Denys Vlasenko [Fri, 4 Jun 2010 18:10:51 +0000 (20:10 +0200)]
mass renaming Kbuild -> Kbuild.src, Config.in -> Config.src

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agopartially migrate coreutils to Config.src and Kbuild.src
Denys Vlasenko [Fri, 4 Jun 2010 17:59:49 +0000 (19:59 +0200)]
partially migrate coreutils to Config.src and Kbuild.src

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoudhcpd: fix daemonize crash on nommu systems
Mike Frysinger [Fri, 4 Jun 2010 17:24:50 +0000 (13:24 -0400)]
udhcpd: fix daemonize crash on nommu systems

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agodate: optional support for %N. Closes bug 1861.
Denys Vlasenko [Fri, 4 Jun 2010 16:19:15 +0000 (18:19 +0200)]
date: optional support for %N. Closes bug 1861.

function                                             old     new   delta
date_main                                            862    1090    +228
clock_gettime                                          -      41     +41
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 1/0 up/down: 269/0)             Total: 269 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomkfs_vfat: fix gcc-4.4 warning
Denys Vlasenko [Fri, 4 Jun 2010 13:55:17 +0000 (15:55 +0200)]
mkfs_vfat: fix gcc-4.4 warning

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotypo fix
Denys Vlasenko [Thu, 3 Jun 2010 23:31:48 +0000 (01:31 +0200)]
typo fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agosed: fix a case when one-line range matches past lines. Closes bug 1867.
Denys Vlasenko [Thu, 3 Jun 2010 23:29:52 +0000 (01:29 +0200)]
sed: fix a case when one-line range matches past lines. Closes bug 1867.

function                                             old     new   delta
process_files                                       2096    2107     +11
add_cmd                                             1142    1132     -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 11/-10)              Total: 1 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: rename parsefile->fd to ->pf_fd
Denys Vlasenko [Thu, 3 Jun 2010 02:29:08 +0000 (04:29 +0200)]
ash: rename parsefile->fd to ->pf_fd

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: fix redirection of fd 0 in scripts are sourced from interactive ash
Denys Vlasenko [Thu, 3 Jun 2010 02:28:28 +0000 (04:28 +0200)]
ash: fix redirection of fd 0 in scripts are sourced from interactive ash

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotest: "" is not a valid number. Closes bug 1915
Denys Vlasenko [Wed, 2 Jun 2010 23:47:04 +0000 (01:47 +0200)]
test: "" is not a valid number. Closes bug 1915

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: simplify checks for gz/bz2/xz magic
Denys Vlasenko [Wed, 2 Jun 2010 12:14:48 +0000 (14:14 +0200)]
*: simplify checks for gz/bz2/xz magic

function                                             old     new   delta
send_tree                                            360     355      -5
rpm2cpio_main                                        249     220     -29
setup_unzip_on_fd                                    150     118     -32
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-66)             Total: -66 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodocument how to find non-shared string dups
Denys Vlasenko [Wed, 2 Jun 2010 11:28:17 +0000 (13:28 +0200)]
document how to find non-shared string dups

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: better string sharing
Denys Vlasenko [Wed, 2 Jun 2010 10:57:26 +0000 (12:57 +0200)]
*: better string sharing

   text   data    bss    dec    hex filename
 849427    441   7556 857424  d1550 busybox_old
 849355    441   7556 857352  d1508 busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: remove one redundant function, improve string sharing, better field names
Denys Vlasenko [Wed, 2 Jun 2010 10:56:18 +0000 (12:56 +0200)]
ash: remove one redundant function, improve string sharing, better field names

function                                             old     new   delta
var_end                                                -      15     +15
changepath                                           194     192      -2
setvareq                                             222     218      -4
lookupvar                                             57      51      -6
bltinlookup                                           57      51      -6
evalfun                                              452     443      -9
varequal                                              14       -     -14
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/5 up/down: 15/-41)            Total: -26 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodecompress_unxz: allocate permanent crc32 table _fisrt_
Denys Vlasenko [Tue, 1 Jun 2010 21:26:54 +0000 (23:26 +0200)]
decompress_unxz: allocate permanent crc32 table _fisrt_

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