hush/coreutils
Denys Vlasenko 0bf44d00a4 libbb/human_readable.c: shrink; and reduce bss usage
also, move smart_ulltoaN there and comment usage locations

function                                             old     new   delta
static.unit_chars                                      7       9      +2
utoa_to_buf                                          110     108      -2
make_human_readable_str                              262     258      -4
fallbackSort                                        1723    1719      -4
static.fmt                                            97      92      -5
static.fmt_tenths                                     10       -     -10
static.str                                            21       4     -17
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/5 up/down: 2/-42)             Total: -40 bytes
   text    data     bss     dec     hex filename
 820981     453    6932  828366   ca3ce busybox_old
 820968     453    6916  828337   ca3b1 busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-13 01:25:09 +02:00
..
libcoreutils *: mass renaming of USE_XXXX to IF_XXXX 2009-04-21 11:09:40 +00:00
basename.c basename: fix error code. again. deja vu feeling... 2008-11-06 15:13:33 +00:00
cal.c *: use {i,u}toa() where appropriate 2009-10-06 22:09:50 +02:00
cat.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
catv.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
chgrp.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
chmod.c *: mass renaming of USE_XXXX to IF_XXXX 2009-04-21 11:09:40 +00:00
chown.c *: mass renaming of USE_XXXX to IF_XXXX 2009-04-21 11:09:40 +00:00
chroot.c switch_root: improve behavior on error; improve help text 2009-04-21 20:40:51 +00:00
cksum.c cksum, printenv: report errors via exitcode 2008-11-11 22:59:41 +00:00
comm.c comm: almost total rewrite; add testsuite 2008-07-15 06:45:14 +00:00
Config.in cp: FEATURE_CP_LONG_OPTIONS depends on LONG_OPTS 2009-10-02 01:29:25 +02:00
cp.c cp: revert a recent buggy change, and add a comment why it's wrong 2009-10-08 01:32:44 +02:00
cut.c more C standard compat fixes from Dan Fandrich 2009-09-06 12:47:55 +02:00
date.c touch: implement -d --date (our own testsuite needs that) 2009-07-18 03:41:29 +02:00
dd.c find: add zeroing of G.xxx; ftpd - remove extraneous zeroing of G.xxx 2009-09-30 02:39:57 +02:00
df.c libbb/human_readable.c: shrink; and reduce bss usage 2009-10-13 01:25:09 +02:00
dirname.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
dos2unix.c libbb: [x]fopen_for_{read,write} introduced and used. 2008-07-21 23:05:26 +00:00
du.c libbb/human_readable.c: shrink; and reduce bss usage 2009-10-13 01:25:09 +02:00
echo.c ash: dont allow e.g. exec <&10 to attach to stript's fd! 2008-07-25 13:34:05 +00:00
env.c env: support -uVAR=VAL 2008-11-11 21:32:39 +00:00
expand.c *: mass renaming of USE_XXXX to IF_XXXX 2009-04-21 11:09:40 +00:00
expr.c more C standard compat fixes from Dan Fandrich 2009-09-06 12:47:55 +02:00
false.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
fold.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
fsync.c fsync: new applet by Pekka Pessi (Pekka.Pessi AT nokia.com) 2009-06-18 08:20:02 +02:00
head.c more C standard compat fixes from Dan Fandrich 2009-09-06 12:47:55 +02:00
hostid.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
id_test.sh id: coreutils compat by Tito + test script 2008-10-29 00:27:31 +00:00
id.c *: mass renaming of USE_XXXX to IF_XXXX 2009-04-21 11:09:40 +00:00
install.c install: compat fix for mode of created files. 2009-06-15 18:13:51 +02:00
Kbuild fsync: new applet by Pekka Pessi (Pekka.Pessi AT nokia.com) 2009-06-18 08:20:02 +02:00
length.c Fix forgotten license comments 2008-12-07 00:52:58 +00:00
ln.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
logname.c a few more GCC-isms removed 2009-09-09 23:12:10 +02:00
ls.c libbb/human_readable.c: shrink; and reduce bss usage 2009-10-13 01:25:09 +02:00
md5_sha1_sum.c sha256,sha512: new applets. +4.9kb 2008-11-10 13:32:50 +00:00
mkdir.c *: mass renaming of USE_XXXX to IF_XXXX 2009-04-21 11:09:40 +00:00
mkfifo.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
mknod.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
mv.c mv: fix a case when we move dangling symlink 2008-07-12 11:22:19 +00:00
nice.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
nohup.c - update my name. No obj-code changes ;) 2008-09-25 12:13:34 +00:00
od_bloaty.c more C standard compat fixes from Dan Fandrich 2009-09-06 12:47:55 +02:00
od.c libbb: get rid of statics in dump.c; code shrinks a lot too 2008-07-16 11:00:16 +00:00
printenv.c cksum, printenv: report errors via exitcode 2008-11-11 22:59:41 +00:00
printf.c printf: (allegedly) fix testsuite failure 2009-06-27 00:07:23 +02:00
pwd.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
readlink.c readlink: support -n, -v, -s and -q too if support for -f is requested 2009-06-12 13:16:21 +02:00
realpath.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
rm.c ls: warning fix 2009-03-27 17:22:00 +00:00
rmdir.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
seq.c seq: fix input handling in non-C locales 2009-06-15 15:47:58 +02:00
sleep.c more C standard compat fixes from Dan Fandrich 2009-09-06 12:47:55 +02:00
sort.c libbb: [x]fopen_for_{read,write} introduced and used. 2008-07-21 23:05:26 +00:00
split.c more C standard compat fixes from Dan Fandrich 2009-09-06 12:47:55 +02:00
stat.c *: mass renaming of USE_XXXX to IF_XXXX 2009-04-21 11:09:40 +00:00
stty.c more C standard compat fixes from Dan Fandrich 2009-09-06 12:47:55 +02:00
sum.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
sync.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
tac.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
tail.c more C standard compat fixes from Dan Fandrich 2009-09-06 12:47:55 +02:00
tee.c ash,hush: add TODO for rare build failure 2008-11-25 01:36:03 +00:00
test_ptr_hack.c add forgotten files. I am forgetting it all the time :( 2008-04-22 18:07:41 +00:00
test.c test: use index_in_strings 2009-09-12 22:41:57 +02:00
touch.c touch: implement -t TIME (needed for testsuite) 2009-07-18 04:49:20 +02:00
tr.c tr: support -C as synonym to -c 2009-03-15 16:41:55 +00:00
true.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
tty.c *: mass renaming of USE_XXXX to IF_XXXX 2009-04-21 11:09:40 +00:00
uname.c more C standard compat fixes from Dan Fandrich 2009-09-06 12:47:55 +02:00
uniq.c uniq: shave off whole 10 bytes off, oh my 2009-08-31 05:15:21 +02:00
usleep.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
uudecode.c libbb: [x]fopen_for_{read,write} introduced and used. 2008-07-21 23:05:26 +00:00
uuencode.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
wc.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
who.c remove a few superfluous includes 2008-11-25 13:33:11 +00:00
whoami.c libbb: password/group function helpers rewritten by Tito: 2008-12-02 22:56:59 +00:00
yes.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00