shells: do not frocibly enable test, echo and kill _applets_,
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 1 Apr 2008 14:47:57 +0000 (14:47 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 1 Apr 2008 14:47:57 +0000 (14:47 -0000)
commit468aea2d8800cc0496383616d82d7c957ae8bc50
tree8a2f3d80dc2440dd007caed4cfa235b3858c9170
parent165f5b394fa337e71e08435b51108f4394199b2b
shells: do not frocibly enable test, echo and kill _applets_,
just build relevant source and use xxx_main functions.
build system: add a special case when we have exactly one applet enabled
(makes "true", "false", "basename" REALLY tiny).
getopt32: do not use stdio.

function                                             old     new   delta
getopt32                                            1385    1412     +27
make_device                                         1187    1200     +13
basename_main                                        120     127      +7
tcpudpsvd_main                                      1922    1926      +4
testcmd                                                5       -      -5
echocmd                                                5       -      -5
fuser_main                                          1243    1231     -12
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 4/1 up/down: 51/-22)             Total: 29 bytes
14 files changed:
applets/applet_tables.c
coreutils/Kbuild
coreutils/basename.c
coreutils/echo.c
include/busybox.h
include/libbb.h
init/Config.in
libbb/Kbuild
libbb/appletlib.c
libbb/error_msg_and_die.c
libbb/getopt32.c
procps/kill.c
shell/Config.in
shell/ash.c