busybox/coreutils
Denis Vlasenko 91e5203205 stat: code shrink; stop using bss; stop using strncat incorrectly
function                                             old     new   delta
printfs                                                -      28     +28
strcatc                                                -      26     +26
human_time                                            41      44      +3
print_it                                             229     219     -10
buf                                                   30       -     -30
print_statfs                                         420     358     -62
print_stat                                          1089     921    -168
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 1/3 up/down: 57/-270)          Total: -213 bytes
   text    data     bss     dec     hex filename
 771105    1029    9552  781686   bed76 busybox_old
 770892    1029    9520  781441   bec81 busybox_unstripped
2007-10-05 20:31:23 +00:00
..
libcoreutils make copy_file() a bit easier to understand, and smaller 2007-08-25 21:14:55 +00:00
basename.c *: kill bb_get_last_path_component, replace with two functions 2007-09-24 18:27:04 +00:00
cal.c introduce bb_putchar(). saves ~1800 on uclibc (less on glibc). 2007-09-27 10:20:47 +00:00
cat.c don't pass argc in getopt32, it's superfluous 2007-08-18 15:32:12 +00:00
catv.c introduce bb_putchar(). saves ~1800 on uclibc (less on glibc). 2007-09-27 10:20:47 +00:00
chgrp.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
chmod.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
chown.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
chroot.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
cksum.c Audit bb_common_bufsiz usage, add script which looks for misuse. 2007-06-04 10:16:52 +00:00
comm.c don't pass argc in getopt32, it's superfluous 2007-08-18 15:32:12 +00:00
Config.in expand, unexpand: new applets from Tito <farmatito@tiscali.it> 2007-08-13 14:10:24 +00:00
cp.c cp: -r and -R imply -d (coreutils compat) 2007-09-25 18:06:36 +00:00
cut.c don't pass argc in getopt32, it's superfluous 2007-08-18 15:32:12 +00:00
date.c don't pass argc in getopt32, it's superfluous 2007-08-18 15:32:12 +00:00
dd.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
df.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
dirname.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
dos2unix.c don't pass argc in getopt32, it's superfluous 2007-08-18 15:32:12 +00:00
du.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
echo.c introduce bb_putchar(). saves ~1800 on uclibc (less on glibc). 2007-09-27 10:20:47 +00:00
env.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
expand.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
expr.c expand, unexpand: new applets from Tito <farmatito@tiscali.it> 2007-08-13 14:10:24 +00:00
false.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
fold.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
head.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
hostid.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
id.c printf("%s\n") -> puts() 2007-10-01 12:05:12 +00:00
install.c install: fix bug in "install -c file dir" (tries to copy dir into dir too) 2007-09-26 10:34:54 +00:00
Kbuild expand, unexpand: new applets from Tito <farmatito@tiscali.it> 2007-08-13 14:10:24 +00:00
length.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
ln.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
logname.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
ls.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
md5_sha1_sum.c don't pass argc in getopt32, it's superfluous 2007-08-18 15:32:12 +00:00
mkdir.c don't pass argc in getopt32, it's superfluous 2007-08-18 15:32:12 +00:00
mkfifo.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
mknod.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
mv.c *: kill bb_get_last_path_component, replace with two functions 2007-09-24 18:27:04 +00:00
nice.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
nohup.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
od_bloaty.c introduce bb_putchar(). saves ~1800 on uclibc (less on glibc). 2007-09-27 10:20:47 +00:00
od.c trylink: produce even more info about final link stage 2007-08-12 20:58:27 +00:00
printenv.c env: micro-optimization 2007-08-06 02:55:41 +00:00
printf.c introduce bb_putchar(). saves ~1800 on uclibc (less on glibc). 2007-09-27 10:20:47 +00:00
pwd.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
readlink.c don't pass argc in getopt32, it's superfluous 2007-08-18 15:32:12 +00:00
realpath.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
rm.c *: kill bb_get_last_path_component, replace with two functions 2007-09-24 18:27:04 +00:00
rmdir.c don't pass argc in getopt32, it's superfluous 2007-08-18 15:32:12 +00:00
seq.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
sleep.c multiplier suffixes are short, store them directly in struct suffix_mult 2007-07-27 15:06:25 +00:00
sort.c don't pass argc in getopt32, it's superfluous 2007-08-18 15:32:12 +00:00
split.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
stat.c stat: code shrink; stop using bss; stop using strncat incorrectly 2007-10-05 20:31:23 +00:00
stty.c introduce bb_putchar(). saves ~1800 on uclibc (less on glibc). 2007-09-27 10:20:47 +00:00
sum.c delete now unused check_header_gzip.c 2007-10-05 20:29:31 +00:00
sync.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
tail.c tail: sizeof(buf) is sizeof(char*)! must be BUFSIZ 2007-10-05 19:17:16 +00:00
tee.c introduce bb_putchar(). saves ~1800 on uclibc (less on glibc). 2007-09-27 10:20:47 +00:00
test.c test: correct confusing placement of "const" 2007-09-21 17:58:43 +00:00
touch.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
tr.c trylink: produce even more info about final link stage 2007-08-12 20:58:27 +00:00
true.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
tty.c don't pass argc in getopt32, it's superfluous 2007-08-18 15:32:12 +00:00
uname.c introduce bb_putchar(). saves ~1800 on uclibc (less on glibc). 2007-09-27 10:20:47 +00:00
uniq.c don't pass argc in getopt32, it's superfluous 2007-08-18 15:32:12 +00:00
usleep.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
uudecode.c update Glenn McGrath's email address 2007-09-21 13:16:32 +00:00
uuencode.c introduce bb_putchar(). saves ~1800 on uclibc (less on glibc). 2007-09-27 10:20:47 +00:00
wc.c 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>. 2007-10-01 11:58:38 +00:00
who.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
whoami.c bb_getpwuid, bb_getgrgid: change order of arguments to more intuitive one; 2007-07-27 11:20:10 +00:00
yes.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00