Age | Commit message (Collapse) | Author |
|
<jonas.danielsson@axis.com>)
configurable, ~+300 bytes when on.
|
|
common busybox functions and call strdup() less often ... saves a ~few hundred bytes
|
|
function old new delta
find_pair 167 187 +20
static.families - 17 +17
die_must_be_on_off - 11 +11
...
on_off 33 22 -11
do_ipaddr 103 90 -13
do_iptunnel 1001 986 -15
iproute_list_or_flush 1237 1217 -20
static.ip_common_commands 43 22 -21
do_iproute 2217 2193 -24
parse_args 1444 1414 -30
ip_do 47 16 -31
do_iprule 994 963 -31
ip_main 153 113 -40
ipaddr_modify 1357 1305 -52
ipaddr_list_or_flush 2543 2490 -53
ip_parse_common_args 294 159 -135
------------------------------------------------------------------------------
(add/remove: 4/1 grow/shrink: 4/24 up/down: 85/-563) Total: -478 bytes
text data bss dec hex filename
775561 966 9236 785763 bfd63 busybox_old
775073 962 9236 785271 bfb77 busybox_unstripped
|
|
|
|
|
|
library:
commit aa1e5ef5c1d95e7ebf0821d9ba27debe43a87a22
Author: Sam Ravnborg <sam@ravnborg.org>
Date: Sun Aug 12 23:15:44 2007 +0200
kbuild: check if we can link gettext not just compile
cygwin provides the header file but the lib file needs
to be added manually. A generic fix is to check if
we can compile and link a program that uses gettext()
and if it fails fall back to NO_NLS.
International users of cygwin may have to specify
HOST_LOADLIBES := "-lintl" on the make command line.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
|
|
|
|
init: remove obsolete comment
|
|
|
|
|
|
which is not really there!
|
|
libbb: explain why we declare klogctl
libbb: move defs around so that order makes more sense
|
|
|
|
|
|
|
|
|
|
|
|
df: don't special case rootfs and /dev/root
function old new delta
df_main 746 684 -62
find_block_device 111 - -111
find_block_device_in_dir 243 - -243
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 0/1 up/down: 0/-416) Total: -416 bytes
|
|
uasge: trim a bit
|
|
|
|
|
|
function old new delta
str2sockaddr 328 344 +16
|
|
runtest: cleanup. Method of getting $applets was truly bizarre
function old new delta
tr_main 655 527 -128
|
|
function old new delta
expand 2232 2230 -2
tr_main 677 655 -22
|
|
readprofile: use xwrite
function old new delta
tr_main 679 677 -2
readprofile_main 1964 1944 -20
|
|
|
|
function old new delta
who_main 271 259 -12
|
|
|
|
|
|
function old new delta
dupconfig 159 146 -13
getconfigent 1123 1073 -50
|
|
text data bss dec hex filename
677858 738 7236 685832 a7708 busybox_old
677804 738 7236 685778 a76d2 busybox_unstripped
|
|
|
|
|
|
|
|
|
|
code shrank a lot too
function old new delta
umount_main 751 640 -111
|
|
stack usage was ~10 kb!
unfortunately, noticeable code size growth:
text data bss dec hex filename
9252 12 181 9445 24e5 busybox.t7/libbb/lineedit.o
9714 4 0 9718 25f6 busybox.t8/libbb/lineedit.o
|
|
|
|
umount: don't actually need char[2 * PATH_MAX] for realpath
|
|
function old new delta
create_socket - 134 +134
syslogd_main 1132 865 -267
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 134/-267) Total: -133 bytes
text data bss dec hex filename
775603 974 9420 785997 bfe4d busybox_old
775445 974 9420 785839 bfdaf busybox_unstripped
|
|
- use common exit sequence for failure path:
text data bss dec hex filename
308 0 0 308 134 libbb/xreadlink.o.pgf
296 0 0 296 128 libbb/xreadlink.o
|
|
return full path in cases where path doesn't resolve to a link.
change name to better differentiate from xmalloc_readlink().
|
|
udhcp: add missing tryagain member to client_config
function old new delta
xmalloc_readlink_follow 169 154 -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-15) Total: -15 bytes
|
|
|
|
to get to a "real" file (or directory).
|
|
default 60 second wait after failure to get a lease.
|
|
|
|
|
|
syslogd: strip trailing '\n' too, not only NULs
|
|
|