busybox/coreutils
Denis Vlasenko 468aea2d88 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
2008-04-01 14:47:57 +00:00
..
libcoreutils *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
basename.c shells: do not frocibly enable test, echo and kill _applets_, 2008-04-01 14:47:57 +00:00
cal.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
cat.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
catv.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
chgrp.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
chmod.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
chown.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
chroot.c lpd: spool mode added by Vladimir 2008-02-25 20:30:24 +00:00
cksum.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
comm.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
Config.in *: mode tcp/udpsvd to networking, delete ipsvd/* 2008-03-17 09:13:22 +00:00
cp.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
cut.c *: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/ 2008-03-26 20:04:27 +00:00
date.c date: make help text more understandable; small shrink 2008-03-25 02:43:34 +00:00
dd.c libbb: introduse and use signal_[no_]SA_RESTART_empty_mask and sigaction_set 2008-03-12 23:19:35 +00:00
df.c df: add -a 2007-11-15 09:02:12 +00:00
dirname.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
dos2unix.c dos2unix: tiny shrink 2008-03-17 08:42:43 +00:00
du.c *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param) 2008-03-17 09:09:09 +00:00
echo.c shells: do not frocibly enable test, echo and kill _applets_, 2008-04-01 14:47:57 +00:00
env.c patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes) 2008-03-23 22:55:25 +00:00
expand.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
expr.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
false.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
fold.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
head.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
hostid.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
id.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
install.c patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes) 2008-03-23 22:55:25 +00:00
Kbuild shells: do not frocibly enable test, echo and kill _applets_, 2008-04-01 14:47:57 +00:00
length.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
ln.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
logname.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
ls.c patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes) 2008-03-23 22:55:25 +00:00
md5_sha1_sum.c *: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/ 2008-03-26 20:04:27 +00:00
mkdir.c patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes) 2008-03-23 22:55:25 +00:00
mkfifo.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
mknod.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
mv.c copy_file: handle "cp /dev/foo file" (almost) compatibly to coreutils. 2008-03-28 17:49:31 +00:00
nice.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
nohup.c nohup: compat patch by Christoph Gysin <mailinglist.cache at gmail.com> 2008-02-04 00:30:06 +00:00
od_bloaty.c patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes) 2008-03-23 22:55:25 +00:00
od.c patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes) 2008-03-23 22:55:25 +00:00
printenv.c *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param) 2008-03-17 09:09:09 +00:00
printf.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
pwd.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
readlink.c patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes) 2008-03-23 22:55:25 +00:00
realpath.c *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param) 2008-03-17 09:09:09 +00:00
rm.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
rmdir.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
seq.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
sleep.c *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param) 2008-03-17 09:09:09 +00:00
sort.c *: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/ 2008-03-26 20:04:27 +00:00
split.c *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param) 2008-03-17 09:09:09 +00:00
stat.c *: fix fallout from -Wunused-parameter 2008-03-17 09:04:04 +00:00
stty.c stty: fix mishandling of 'control' keywords (Ralf Friedl <Ralf.Friedl@online.de>) 2008-01-27 23:24:31 +00:00
sum.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
sync.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
tac.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
tail.c tail: fix fallout from tail -c optimization 2008-03-23 03:28:40 +00:00
tee.c libbb: introduce bb_signals and bb_signals_recursive, 2008-02-16 22:58:56 +00:00
test.c *: add optimization barrier to all "G trick" locations 2008-02-27 18:41:59 +00:00
touch.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
tr.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
true.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
tty.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
uname.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
uniq.c *: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/ 2008-03-26 20:04:27 +00:00
usleep.c *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param) 2008-03-17 09:09:09 +00:00
uudecode.c *: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/ 2008-03-26 20:04:27 +00:00
uuencode.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
wc.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
who.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
whoami.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
yes.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00