platform/upstream/busybox.git
13 years agoprocps/Config.src: Add pstree to FEATURE_THREADS deps. Slight text edit
Lauri Kasanen [Wed, 8 Dec 2010 17:00:26 +0000 (19:00 +0200)]
procps/Config.src: Add pstree to FEATURE_THREADS deps. Slight text edit

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agomore: smaller version of previous fix
Denys Vlasenko [Mon, 13 Dec 2010 13:31:59 +0000 (14:31 +0100)]
more: smaller version of previous fix

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agomore: exit if write to stdout errors out
Denys Vlasenko [Mon, 13 Dec 2010 13:28:38 +0000 (14:28 +0100)]
more: exit if write to stdout errors out

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agofix typo in README
Denys Vlasenko [Wed, 8 Dec 2010 05:08:47 +0000 (06:08 +0100)]
fix typo in README

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agotypo fix
Denys Vlasenko [Mon, 6 Dec 2010 14:44:13 +0000 (15:44 +0100)]
typo fix

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agoupdate examples/var_service/README
Denys Vlasenko [Mon, 6 Dec 2010 14:42:44 +0000 (15:42 +0100)]
update examples/var_service/README

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agoadd examples/var_service/README
Denys Vlasenko [Mon, 6 Dec 2010 14:13:58 +0000 (15:13 +0100)]
add examples/var_service/README

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agopstree: use stdin for screen size detection
Denys Vlasenko [Mon, 6 Dec 2010 11:54:24 +0000 (12:54 +0100)]
pstree: use stdin for screen size detection

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agorunsvdir: do not miss closely spaced service dir changes
Eric Lammerts [Mon, 6 Dec 2010 00:26:26 +0000 (01:26 +0100)]
runsvdir: do not miss closely spaced service dir changes

Signed-off-by: Eric Lammerts <busybox@lists.lammerts.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agotweak INSTALL_NO_USR help text
Denys Vlasenko [Sun, 5 Dec 2010 22:11:15 +0000 (23:11 +0100)]
tweak INSTALL_NO_USR help text

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agobuild system: fix "make install" to skip /usr when configured so
Joachim Nilsson [Sun, 5 Dec 2010 22:05:38 +0000 (23:05 +0100)]
build system: fix "make install" to skip /usr when configured so

Fix regression in BusyBox 1.18.0 where the NO_USR config option no longer
bites for "make install".  The busybox.mkll script stumbles without these
lines and as a result *always* creates /usr/ symlinks.

Signed-off-by: Joachim Nilsson <troglobit@vmlinux.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopstree: another tiny shrink
Denys Vlasenko [Sun, 5 Dec 2010 18:36:58 +0000 (19:36 +0100)]
pstree: another tiny shrink

function                                             old     new   delta
pstree_main                                          327     324      -3

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopstree: tiny shrink
Denys Vlasenko [Sun, 5 Dec 2010 15:05:03 +0000 (16:05 +0100)]
pstree: tiny shrink

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopstree: fix width logic. +30 bytes
Lauri Kasanen [Sun, 5 Dec 2010 14:53:55 +0000 (15:53 +0100)]
pstree: fix width logic. +30 bytes

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopstree: new applet. +1664 bytes
Lauri Kasanen [Sun, 5 Dec 2010 04:22:29 +0000 (05:22 +0100)]
pstree: new applet. +1664 bytes

   text    data     bss     dec     hex filename
 883379     936   17192  901507   dc183 busybox_old
 885043     936   17192  903171   dc803 busybox_unstripped

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agotypo fix
Denys Vlasenko [Sun, 5 Dec 2010 04:02:49 +0000 (05:02 +0100)]
typo fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoadd if guards around include <malloc.h>
Denys Vlasenko [Sun, 5 Dec 2010 00:30:14 +0000 (01:30 +0100)]
add if guards around include <malloc.h>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agolibbb/pw_encrypt_sha: forgot to move &ctx to 1st param here in sha hash rework
Denys Vlasenko [Wed, 1 Dec 2010 12:57:25 +0000 (13:57 +0100)]
libbb/pw_encrypt_sha: forgot to move &ctx to 1st param here in sha hash rework

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agotouch: fix help text to not show options disabled in .config
Denys Vlasenko [Wed, 1 Dec 2010 12:06:03 +0000 (13:06 +0100)]
touch: fix help text to not show options disabled in .config

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agosu: suppress "warning: unused variable 'user_buf'"
Denys Vlasenko [Tue, 30 Nov 2010 08:47:56 +0000 (09:47 +0100)]
su: suppress "warning: unused variable 'user_buf'"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agobuild system: do not use GNU-isms in find
Chris Rees [Tue, 30 Nov 2010 08:41:39 +0000 (09:41 +0100)]
build system: do not use GNU-isms in find

Signed-off-by: Chris Rees <utisoft@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agotelnetd: write utmp record with correct pid
Denys Vlasenko [Tue, 30 Nov 2010 08:17:30 +0000 (09:17 +0100)]
telnetd: write utmp record with correct pid

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoping: set not only IP_TTL, but also IP_MULTICAST_TTL
Denys Vlasenko [Mon, 29 Nov 2010 11:07:12 +0000 (12:07 +0100)]
ping: set not only IP_TTL, but also IP_MULTICAST_TTL

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agopatch: fix "patch at the beginning" testcase failure
Rob Landley [Mon, 29 Nov 2010 02:24:51 +0000 (03:24 +0100)]
patch: fix "patch at the beginning" testcase failure

Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoexclude the case of just "busybox" from previous commit
Denys Vlasenko [Mon, 29 Nov 2010 02:21:55 +0000 (03:21 +0100)]
exclude the case of just "busybox" from previous commit

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoif only one applet is enabled, make "busybox applet [params]" work as expected
Denys Vlasenko [Mon, 29 Nov 2010 01:55:35 +0000 (02:55 +0100)]
if only one applet is enabled, make "busybox applet [params]" work as expected

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoping: add -t TTL option
Joachim Nilsson [Sun, 28 Nov 2010 22:01:18 +0000 (23:01 +0100)]
ping: add -t TTL option

function                                             old     new   delta
common_ping_main                                    1755    1796     +41
packed_usage                                       27954   27971     +17
bbconfig_config_bz2                                 4965    4966      +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 59/0)               Total: 59 bytes

Signed-off-by: Joachim Nilsson <joachim.nilsson@vmlinux.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agodhcpd: reply with NAK to clients in INIT-REBOOT state w/o existing lease
Denys Vlasenko [Sun, 28 Nov 2010 20:51:44 +0000 (21:51 +0100)]
dhcpd: reply with NAK to clients in INIT-REBOOT state w/o existing lease

We were not responding to them at all.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agouse BB_EXECVP_or_die where appropriate
Denys Vlasenko [Sun, 28 Nov 2010 03:34:09 +0000 (04:34 +0100)]
use BB_EXECVP_or_die where appropriate

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agohush: move G_x_mode define to the more appropriate place
Denys Vlasenko [Sun, 28 Nov 2010 02:59:30 +0000 (03:59 +0100)]
hush: move G_x_mode define to the more appropriate place

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoSupport set -o xtrace/noexec alternates for set -x/-n
Dan Fandrich [Sat, 20 Nov 2010 21:05:17 +0000 (13:05 -0800)]
Support set -o xtrace/noexec alternates for set -x/-n

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agohush: display useful help text
Dan Fandrich [Sun, 28 Nov 2010 00:54:39 +0000 (01:54 +0100)]
hush: display useful help text

Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoadd a test for patch which we currently fail
Denys Vlasenko [Sun, 28 Nov 2010 00:41:40 +0000 (01:41 +0100)]
add a test for patch which we currently fail

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agodhcpd: smaller code: do not look for REQUESTED_IP twice
Denys Vlasenko [Sun, 28 Nov 2010 00:10:51 +0000 (01:10 +0100)]
dhcpd: smaller code: do not look for REQUESTED_IP twice

   text    data     bss     dec     hex filename
 883235     936   17192  901363   dc0f3 busybox_old
 883219     936   17192  901347   dc0e3 busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoblkid: add TODO
Denys Vlasenko [Thu, 25 Nov 2010 06:59:17 +0000 (07:59 +0100)]
blkid: add TODO

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogen_build_files.sh: better comment
Denys Vlasenko [Thu, 25 Nov 2010 05:55:18 +0000 (06:55 +0100)]
gen_build_files.sh: better comment

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agobuild system: fix for dash
Denys Vlasenko [Wed, 24 Nov 2010 14:06:49 +0000 (15:06 +0100)]
build system: fix for dash

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agoStart 1.19.0 development cycle
Denys Vlasenko [Tue, 23 Nov 2010 11:50:40 +0000 (12:50 +0100)]
Start 1.19.0 development cycle

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agoBump version to 1.18.0 1_18_0
Denys Vlasenko [Tue, 23 Nov 2010 08:21:44 +0000 (09:21 +0100)]
Bump version to 1.18.0

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agodate :add a comment about older toolchains
Denys Vlasenko [Mon, 22 Nov 2010 23:15:19 +0000 (00:15 +0100)]
date :add a comment about older toolchains

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agofixes for bugs discovered by randomconfig builds and tests
Denys Vlasenko [Mon, 22 Nov 2010 22:49:10 +0000 (23:49 +0100)]
fixes for bugs discovered by randomconfig builds and tests

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agofix misspelling in comment
Denys Vlasenko [Mon, 22 Nov 2010 17:13:15 +0000 (18:13 +0100)]
fix misspelling in comment

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agohush: fix improper handling of newline and hash chars in few corner cases
Denys Vlasenko [Mon, 22 Nov 2010 16:58:14 +0000 (17:58 +0100)]
hush: fix improper handling of newline and hash chars in few corner cases

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
13 years agonc: fix SEGV on -v when NC_EXTRA is off
Denys Vlasenko [Mon, 22 Nov 2010 04:30:54 +0000 (05:30 +0100)]
nc: fix SEGV on -v when NC_EXTRA is off

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agoinetd: if argv[0] is not specified, set it to program name
Mike Frysinger [Mon, 22 Nov 2010 03:57:37 +0000 (04:57 +0100)]
inetd: if argv[0] is not specified, set it to program name

With inetd.conf files that skip argv[], inetd execs programs with argc==0.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agolineedit: fix tab-completion of filenames with spaces
Mike Shal [Mon, 22 Nov 2010 02:49:18 +0000 (03:49 +0100)]
lineedit: fix tab-completion of filenames with spaces

Using ash in busybox git version dea28e1e, tab completion doesn't seem
to work properly for filenames that have special characters (such as
spaces) in them. For example, with filenames "foo bar" and "foo zap",
typing "ls fo<TAB>" correctly expands to "ls foo\ ", but then
continuing to type "b<TAB>" will produce "ls foo\ bbar", which is not
correct (the 'b' is duplicated).

Signed-off-by: Mike Shal <marfey@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopatch: remove out-of-file build machinery
Denys Vlasenko [Mon, 22 Nov 2010 02:15:21 +0000 (03:15 +0100)]
patch: remove out-of-file build machinery

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogen_build_files.sh: restore deleted comment
Denys Vlasenko [Sun, 21 Nov 2010 21:10:07 +0000 (22:10 +0100)]
gen_build_files.sh: restore deleted comment

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agocmp: with -s, do not report open errors
Denys Vlasenko [Sun, 21 Nov 2010 17:11:40 +0000 (18:11 +0100)]
cmp: with -s, do not report open errors

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopatch: simplify double list helpers
Denys Vlasenko [Sun, 21 Nov 2010 04:54:28 +0000 (05:54 +0100)]
patch: simplify double list helpers

function                                             old     new   delta
dlist_free                                             -      29     +29
fail_hunk                                            130     132      +2
patch_main                                          1987    1982      -5
dlist_add                                             59      54      -5
TOY_llist_pop                                          9       -      -9
TOY_llist_free                                        54       -     -54
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 1/2 up/down: 31/-73)            Total: -42 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agopatch: busyboxify by migrating from toybox to busybox helpers
Denys Vlasenko [Sun, 21 Nov 2010 04:53:34 +0000 (05:53 +0100)]
patch: busyboxify by migrating from toybox to busybox helpers

function                                             old     new   delta
get_line                                              90     128     +38
bbconfig_config_bz2                                 4959    4965      +6
makedevs_main                                       1038    1035      -3
fail_hunk                                            133     130      -3
finish_oldfile                                       174     124     -50
patch_main                                          2066    1987     -79
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/4 up/down: 44/-135)           Total: -91 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 years agogen_build_files.sh: rewrite with sed
Mike Frysinger [Tue, 16 Nov 2010 12:29:12 +0000 (07:29 -0500)]
gen_build_files.sh: rewrite with sed

The shell parsing of files is incredibly slow on many systems.  With
one report, the process was taking a minute or two which made people
thing the build was hung.  So rewrite the craziness with sed and proper
shell functions.  On an idle system, this cut the runtime by half.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoallow SKIP_STRIP to be set in the env
Mike Frysinger [Tue, 16 Nov 2010 14:01:30 +0000 (09:01 -0500)]
allow SKIP_STRIP to be set in the env

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agodepmod.pl: add recursive sanity check
Mike Frysinger [Tue, 16 Nov 2010 12:15:00 +0000 (07:15 -0500)]
depmod.pl: add recursive sanity check

If modules contain circular dependencies, the depmod script will follow
the circle forever.  So add a simple sanity check to abort rather than
chew up the CPU.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agolineedit: create history files with mode 0600
Wolfram Sang [Mon, 15 Nov 2010 01:58:28 +0000 (02:58 +0100)]
lineedit: create history files with mode 0600

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: add support for "set -o pipefail"
Denys Vlasenko [Sun, 14 Nov 2010 01:01:50 +0000 (02:01 +0100)]
hush: add support for "set -o pipefail"

function                                             old     new   delta
checkjobs                                            467     517     +50
builtin_set                                          259     286     +27
o_opt_strings                                          -      10     +10
hush_main                                           1011    1013      +2
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 89/0)               Total: 89 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: preparatory patch for set -o pipefail support
Denys Vlasenko [Sun, 14 Nov 2010 00:59:55 +0000 (01:59 +0100)]
hush: preparatory patch for set -o pipefail support

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibbb: remove unused variable
Lauri Kasanen [Sat, 13 Nov 2010 22:16:05 +0000 (23:16 +0100)]
libbb: remove unused variable

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodeluser: do not warn spuriously when deleting group by deluser
Tito Ragusa [Mon, 8 Nov 2010 04:44:11 +0000 (05:44 +0100)]
deluser: do not warn spuriously when deleting group by deluser

Signed-off-by: Tito Ragusa <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodelgroup: correct the check for users who still use the group
Denys Vlasenko [Sun, 7 Nov 2010 16:51:58 +0000 (17:51 +0100)]
delgroup: correct the check for users who still use the group

Signed-off-by: Tito <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotypo fix
Denys Vlasenko [Sat, 6 Nov 2010 21:17:30 +0000 (22:17 +0100)]
typo fix

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agodeluser: 2nd attempt at deluser/delgroup size reduction and improvements
Tito Ragusa [Sat, 6 Nov 2010 21:14:55 +0000 (22:14 +0100)]
deluser: 2nd attempt at deluser/delgroup size reduction and improvements

Signed-off-by: Tito Ragusa <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agopowertop: code shrink
Maksym Kryzhanovskyy [Sat, 6 Nov 2010 00:56:19 +0000 (01:56 +0100)]
powertop: code shrink

function                                             old     new   delta
process_timer_stats                                  490     449     -41

Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agoMerge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox
Denys Vlasenko [Sat, 6 Nov 2010 00:51:07 +0000 (01:51 +0100)]
Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox

14 years agols: fix -lg to show group (was showing user)
Denys Vlasenko [Fri, 5 Nov 2010 23:46:57 +0000 (00:46 +0100)]
ls: fix -lg to show group (was showing user)

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agopowertop: fix last line detection in process_timer_stats()
Denys Vlasenko [Thu, 4 Nov 2010 22:30:11 +0000 (23:30 +0100)]
powertop: fix last line detection in process_timer_stats()

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agopowertop: replace erroneous \n with \0; make numberic conversion more robust
Denys Vlasenko [Thu, 4 Nov 2010 22:22:40 +0000 (23:22 +0100)]
powertop: replace erroneous \n with \0; make numberic conversion more robust

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoip: Fix command line option parsing of "ip route get ..."
Christian Hornung [Wed, 3 Nov 2010 13:08:00 +0000 (14:08 +0100)]
ip: Fix command line option parsing of "ip route get ..."

I found and fixed a bug in the command line options parsing of "ip route get":
It was impossible to get any option other than the IP address
recognized correctly, and e.g. the command "ip route get connected"
just hung up infinitely in the options parsing loop instead of
printing an error message.

Signed-off-by: Christian Hornung <chhornung@googlemail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agopowertop: code shrink
Maksym Kryzhanovskyy [Thu, 4 Nov 2010 07:41:57 +0000 (08:41 +0100)]
powertop: code shrink

function                                             old     new   delta
read_cstate_counts                                   355     360      +5
print_intel_cstates                                  494     499      +5
process_timer_stats                                  554     480     -74
process_irq_counts                                   765     530    -235
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 10/-309)          Total: -299 bytes

Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotype fix in comment
Denys Vlasenko [Wed, 3 Nov 2010 01:48:43 +0000 (02:48 +0100)]
type fix in comment

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorename archival/libunarchive -> archival/libarchive; move bz/ into it
Denys Vlasenko [Wed, 3 Nov 2010 01:38:31 +0000 (02:38 +0100)]
rename archival/libunarchive -> archival/libarchive; move bz/ into it

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: move lzo compressor code to archival/libunarchive/. No code changes
Denys Vlasenko [Wed, 3 Nov 2010 01:27:49 +0000 (02:27 +0100)]
*: move lzo compressor code to archival/libunarchive/. No code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoinit: if PID!=1, show clearer error message. move usage text closer to main()
Denys Vlasenko [Tue, 2 Nov 2010 19:13:03 +0000 (20:13 +0100)]
init: if PID!=1, show clearer error message. move usage text closer to main()

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agowhitespace fix
Denys Vlasenko [Mon, 1 Nov 2010 01:19:47 +0000 (02:19 +0100)]
whitespace fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodecompress_bunzip2: reinstate erroneously deleted RETVAL_SHORT_WRITE
Denys Vlasenko [Mon, 1 Nov 2010 00:38:54 +0000 (01:38 +0100)]
decompress_bunzip2: reinstate erroneously deleted RETVAL_SHORT_WRITE

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoumount: cleanup and code shrink
Rob Landley [Sun, 31 Oct 2010 23:43:34 +0000 (00:43 +0100)]
umount: cleanup and code shrink

Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agostat: fix mtime/ctime/atime
Eric Lammerts [Sat, 30 Oct 2010 00:48:20 +0000 (02:48 +0200)]
stat: fix mtime/ctime/atime

If you set CONFIG_FEATURE_STAT_FORMAT=n, two of the three printed
times are wrong, because a global buffer is reused. Fix below.

Signed-off-by: Eric Lammerts <busybox@lists.lammerts.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofdisk: fix trivial build failure
Denys Vlasenko [Sat, 30 Oct 2010 00:40:08 +0000 (02:40 +0200)]
fdisk: fix trivial build failure

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agonetworking/*: remove superfluous comments
Denys Vlasenko [Sat, 30 Oct 2010 00:24:48 +0000 (02:24 +0200)]
networking/*: remove superfluous comments

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodecompress_bunzip2: code shrink ~5 bytes
Denys Vlasenko [Fri, 29 Oct 2010 22:55:02 +0000 (00:55 +0200)]
decompress_bunzip2: code shrink ~5 bytes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agodecompress_bunzip2: code shrink ~10 bytes
Denys Vlasenko [Fri, 29 Oct 2010 22:54:10 +0000 (00:54 +0200)]
decompress_bunzip2: code shrink ~10 bytes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agodecompress_bunzip2: add profiling data to comment. no code changes
Denys Vlasenko [Fri, 29 Oct 2010 17:26:38 +0000 (19:26 +0200)]
decompress_bunzip2: add profiling data to comment. no code changes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agoscripts/mkdiff_obj: show "size OBJFILE" too
Denys Vlasenko [Fri, 29 Oct 2010 17:06:20 +0000 (19:06 +0200)]
scripts/mkdiff_obj: show "size OBJFILE" too

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agodecompress_bunzip2: relieve register pressure in hot function read_bunzip
Denys Vlasenko [Fri, 29 Oct 2010 17:01:58 +0000 (19:01 +0200)]
decompress_bunzip2: relieve register pressure in hot function read_bunzip

function                                             old     new   delta
unpack_bz2_stream                                    318     329     +11
read_bunzip                                          268     262      -6

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agodecompress_bunzip2: keep bd->writeCRC in CPU reg in the hot loop
Denys Vlasenko [Fri, 29 Oct 2010 16:16:29 +0000 (18:16 +0200)]
decompress_bunzip2: keep bd->writeCRC in CPU reg in the hot loop

-5 bytes on 64-bit, +7 bytes on 32-bit.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agopowertop: build fix for !386 compiles
Denys Vlasenko [Fri, 29 Oct 2010 14:25:18 +0000 (16:25 +0200)]
powertop: build fix for !386 compiles

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agodecompress_bunzip2: code shrink
Denys Vlasenko [Fri, 29 Oct 2010 14:05:05 +0000 (16:05 +0200)]
decompress_bunzip2: code shrink

function                                             old     new   delta
get_next_block                                      1828    1827      -1
get_bits                                             164     156      -8
read_bunzip                                          304     261     -43
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-52)             Total: -52 bytes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agowhitespace cleanup
Denys Vlasenko [Fri, 29 Oct 2010 09:46:52 +0000 (11:46 +0200)]
whitespace cleanup

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
14 years agoifupdown: add manual method for IPv6. Closes bug 2497.
Denys Vlasenko [Fri, 29 Oct 2010 00:42:20 +0000 (02:42 +0200)]
ifupdown: add manual method for IPv6. Closes bug 2497.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotelnet: do not check for 0 return from poll (it's impossible)
Denys Vlasenko [Fri, 29 Oct 2010 00:33:38 +0000 (02:33 +0200)]
telnet: do not check for 0 return from poll (it's impossible)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotelnet: convert CR NUL -> CR on input. Closes bug 2569
Denys Vlasenko [Fri, 29 Oct 2010 00:12:22 +0000 (02:12 +0200)]
telnet: convert CR NUL -> CR on input. Closes bug 2569

function                                             old     new   delta
telnet_main                                         1558    1594     +36

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agounicode: update unicode_width on !unicode branch too. Closes bug 2593
Denys Vlasenko [Thu, 28 Oct 2010 22:50:09 +0000 (00:50 +0200)]
unicode: update unicode_width on !unicode branch too. Closes bug 2593

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodnsd: fix 64-bit bug 2539.
Denys Vlasenko [Thu, 28 Oct 2010 22:37:56 +0000 (00:37 +0200)]
dnsd: fix 64-bit bug 2539.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodecompress_bunzip2: handle concatenated .bz2 files
Denys Vlasenko [Thu, 28 Oct 2010 21:08:53 +0000 (23:08 +0200)]
decompress_bunzip2: handle concatenated .bz2 files

function                                             old     new   delta
unpack_bz2_stream                                    207     307    +100
start_bunzip                                         199     209     +10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 110/0)             Total: 110 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agobloat-o-meter: make it python3 compliant
Marek Polacek [Tue, 26 Oct 2010 00:34:36 +0000 (02:34 +0200)]
bloat-o-meter: make it python3 compliant

Python 3 doesn't support the iterkeys() method anymore.  Use
iter(foo.keys()) instead of foo.iterkeys().

Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: use _exit() in sighandlers; showkey: do not use exit-thru-sighandler
Marek Polacek [Thu, 28 Oct 2010 19:34:56 +0000 (21:34 +0200)]
*: use _exit() in sighandlers; showkey: do not use exit-thru-sighandler

While at it, make ESC sequences more readable; and removed check for
isatty(stdin) in reset. Code shrink:

   text    data     bss     dec     hex filename
 884771     936   17216  902923   dc70b busybox_old
 884723     936   17216  902875   dc6db busybox_unstripped

Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoscripts: remove bitrotted scripts/individual
Denys Vlasenko [Thu, 28 Oct 2010 18:45:37 +0000 (20:45 +0200)]
scripts: remove bitrotted scripts/individual

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoupdate docs/new-applet-HOWTO.txt
Holger Blasum [Thu, 28 Oct 2010 18:37:05 +0000 (20:37 +0200)]
update docs/new-applet-HOWTO.txt

Signed-off-by: Holger Blasum <hbl@sysgo.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoipcrm: small code shrink
Denys Vlasenko [Thu, 28 Oct 2010 17:10:46 +0000 (19:10 +0200)]
ipcrm: small code shrink

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: whitespace fixes
Denys Vlasenko [Thu, 28 Oct 2010 16:57:19 +0000 (18:57 +0200)]
*: whitespace fixes

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