busybox/coreutils
Denys Vlasenko c100535571 cat,nl: fix handling of open errors
$ cat -n does_not_exist; echo $?
cat: does_not_exist: No such file or directory
1

function                                             old     new   delta
print_numbered_lines                                 118     129     +11
nl_main                                              196     201      +5
cat_main                                             421     425      +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 20/0)               Total: 20 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2018-11-29 11:44:10 +01:00
..
libcoreutils
basename.c
cat.c
chgrp.c
chmod.c
chown.c
chroot.c
cksum.c
comm.c
Config.src
cp.c
cut.c
date.c
dd.c
df.c
dirname.c
dos2unix.c
du.c
echo.c
env.c
expand.c
expr.c
factor.c
false.c
fold.c
fsync.c
head.c
hostid.c
id_test.sh
id.c
install.c
Kbuild.src
link.c
ln.c
logname.c
ls.c
md5_sha1_sum.c
mkdir.c
mkfifo.c
mknod.c
mktemp.c
mv.c
nice.c
nl.c
nohup.c
nproc.c
od_bloaty.c
od.c
paste.c
printenv.c
printf.c
pwd.c
readlink.c
realpath.c
rm.c
rmdir.c
seq.c
shred.c
shuf.c
sleep.c
sort.c
split.c
stat.c
stty.c
sum.c
sync.c
tac.c
tail.c
tee.c
test_ptr_hack.c
test.c
timeout.c
touch.c
tr.c
true.c
truncate.c
tty.c
uname.c
uniq.c
unlink.c
usleep.c
uudecode.c
uuencode.c
wc.c
who.c
whoami.c
yes.c