busybox/coreutils
Denis Vlasenko 50f7f446ec bb_full_fd_action: remove potential xmalloc from NOFORK path
cat: stop using stdio.h opens
libbb: introduce & use open[3]_or_warn
function                                             old     new   delta
open3_or_warn                                          -      54     +54
bb_cat                                               115     144     +29
open_or_warn                                           -      25     +25
unlzma                                              2404    2412      +8
chattr_main                                          334     339      +5
xstrtoul_range_sfx                                   251     255      +4
telnet_main                                         1514    1510      -4
static.opt                                             4       -      -4
qgravechar                                           122     118      -4
fuser_add_pid                                         61      54      -7
fuser_add_inode                                      154     147      -7
writeFileToTarball                                  1542    1534      -8
refresh                                             1156    1148      -8
do_show                                              856     846     -10
read_leases                                          212     200     -12
setup_redirects                                      236     222     -14
iproute_list_or_flush                               1582    1568     -14
read_config                                          427     411     -16
write_leases                                         284     264     -20
hash_file                                            338     318     -20
copy_file                                           1760    1740     -20
do_iproute                                          2610    2588     -22
bb_full_fd_action                                    320     269     -51
open_to_or_warn                                      103      49     -54
fuser_main                                          1660    1596     -64
.rodata                                           131160  131096     -64
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 4/19 up/down: 125/-423)        Total: -298 bytes
2007-04-11 23:20:53 +00:00
..
libcoreutils introduce and use setfscreatecon_or_die 2007-03-12 18:22:55 +00:00
basename.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
cal.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
cat.c bb_full_fd_action: remove potential xmalloc from NOFORK path 2007-04-11 23:20:53 +00:00
catv.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
chgrp.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
chmod.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
chown.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
chroot.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
cksum.c make compressed help code NOMMU- and NOFORK-friendly - 2007-04-10 21:40:19 +00:00
cmp.c make a few struct bb_applet members conditional 2007-04-10 21:38:30 +00:00
comm.c comm: eliminate statics 2007-04-07 00:45:27 +00:00
Config.in - move additional fancy options not mandated by SUSv3 into a FANCY option 2007-03-28 16:48:40 +00:00
cp.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
cut.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
date.c add some missed statics on constant objects. 2007-04-08 16:07:02 +00:00
dd.c - use enum for the OPs as suggested by vda. No obj-code changes. 2007-04-10 19:30:50 +00:00
df.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
diff.c find: fix handling of -prune 2007-04-08 10:52:28 +00:00
dirname.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
dos2unix.c bb_full_fd_action: remove potential xmalloc from NOFORK path 2007-04-11 23:20:53 +00:00
du.c - fix segfault in reset_ino_dev_hashtable() when *hashtable was null. 2007-04-05 09:21:24 +00:00
echo.c make a few struct bb_applet members conditional 2007-04-10 21:38:30 +00:00
env.c chown, env: stop using statics 2007-03-14 22:08:04 +00:00
expr.c add some missed statics on constant objects. 2007-04-08 16:07:02 +00:00
false.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
fold.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
head.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
hostid.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
id.c fix accumulated whitespace and indentation damage 2007-03-20 11:30:28 +00:00
install.c fix accumulated whitespace and indentation damage 2007-03-20 11:30:28 +00:00
Kbuild - rough prototype for split(1). TODO: Still needs some love since it's way too big.. 2007-03-25 21:50:18 +00:00
length.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
ln.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
logname.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
ls.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
md5_sha1_sum.c bb_full_fd_action: remove potential xmalloc from NOFORK path 2007-04-11 23:20:53 +00:00
mkdir.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
mkfifo.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
mknod.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
mv.c fix accumulated whitespace and indentation damage 2007-03-20 11:30:28 +00:00
nice.c EXEC_PREFER_APPLETS support by Gabriel L. Somlo <somlo@cmu.edu> 2007-02-06 01:20:12 +00:00
nohup.c EXEC_PREFER_APPLETS support by Gabriel L. Somlo <somlo@cmu.edu> 2007-02-06 01:20:12 +00:00
od_bloaty.c getopt32: fix llist_t options ordering. llist_rev is not unused. 2007-04-08 15:08:42 +00:00
od.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
printenv.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
printf.c printf: allow hex/oct numbers; move functions around 2007-03-09 16:43:01 +00:00
pwd.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
realpath.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
rm.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
rmdir.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
seq.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
sleep.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
sort.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
split.c - move additional fancy options not mandated by SUSv3 into a FANCY option 2007-03-28 16:48:40 +00:00
stat.c add some missed statics on constant objects. 2007-04-08 16:07:02 +00:00
stty.c style fixes. No code changes. 2007-04-10 15:42:06 +00:00
sum.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
sync.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
tail.c - minor shrinkage 2007-04-04 20:29:15 +00:00
tee.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
test.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
touch.c make xfunctions optionally longjump instead of exit. 2007-04-09 21:35:07 +00:00
tr.c add some missed statics on constant objects. 2007-04-08 16:07:02 +00:00
true.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
tty.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
uname.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
uniq.c - use skip_non_whitespace() where appropriate 2007-04-10 09:38:35 +00:00
usleep.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
uudecode.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
uuencode.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
watch.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
wc.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
who.c who: stop using static buffer, small size optimizations 2007-03-07 00:07:42 +00:00
whoami.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00
yes.c audit small applets and mark some of them as NOFORK. 2007-04-10 15:43:37 +00:00