freebsd-src/usr.bin
Cosimo Cecchi 4472fd66d0 lam: fail on I/O errors
I/O errors should be reported; however lam currently does not
disambiguate between EOF because end-of-file was reached and EOF because
an I/O error occurred.
This commit changes lam to exit with EX_IOERR when an I/O error occurs.

Reviewed by:	imp, allanjude
Sponsored by:	Apple Inc.
Differential Revision:	https://reviews.freebsd.org/D45437
2024-06-06 17:24:15 +00:00
..
addr2line
alias
apply usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
ar ar(1): Fix grammar error in write.c 2024-02-13 15:31:59 +08:00
asa asa: Rewrite to fix line termination issue. 2024-01-09 17:27:15 +01:00
at
awk awk: Fix the tests 2024-03-07 22:52:56 -07:00
backlight
banner Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
basename Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
bc usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
beep
biff Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
bintrans bintrans: Remove unused variable. 2024-02-01 14:10:45 +01:00
bluetooth
bmake Merge bmake-20240520 2024-05-23 13:12:43 -07:00
brandelf usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
bsdcat
bsddialog
bsdiff bsdiff: Use mmap instead of malloc 2024-04-19 16:33:07 -06:00
bzip2
bzip2recover
c89
c99 usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
caesar Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
calendar usr.bin/calendar/calendars: Add myself as a committer 2024-03-24 19:57:27 +01:00
cap_mkdb Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
chat usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
chkey usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
chpass usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
cksum cksum(1): Add EXAMPLES to manual page 2024-01-18 14:04:25 +01:00
clang Merge llvm-project release/18.x llvmorg-18.1.0-rc2-53-gc7b0a6ecd442 2024-04-06 22:14:13 +02:00
cmp usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
col Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
colrm Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
column Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
comm comm: close a race condition when comm is fed from stdin 2024-06-06 17:04:38 +00:00
compile_et
compress Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
cpio
csplit usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
ctags ctags: Use C99 bool instead of defining our own 2024-04-19 14:48:37 -04:00
ctlstat usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
cut cut: use getline() instead of fgetln() 2024-04-19 15:52:21 -06:00
cxxfilt
dc
diff diff: Nits in tests. 2024-05-20 16:27:50 +02:00
diff3 usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
dirname Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
dpv
drill
dtc
du Add libxo support to du 2024-04-29 08:22:39 -06:00
ee
elfctl
elfdump usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
enigma usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
env Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
etdump
expand expand: Fix markup for the -t option. 2024-05-13 12:41:38 +02:00
factor
false Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
fetch usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
file
file2c
find find: Add -readable, -writable & -executable options 2024-01-21 17:33:46 -08:00
finger usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
fmt
fold Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
fortune freebsd-tips: Tweak fortune to find font providing Unicode character 2024-05-15 11:34:39 -03:00
from Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
fstat inpcb: fully retire inp_ppcb pointer 2024-03-29 12:18:32 -07:00
fsync usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
ftp
gcore Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
gencat
genl
getaddrinfo usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
getconf usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
getent
getopt
gh-bc
gprof usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
grdc Revert "grdc: Add copyright" 2024-05-10 14:12:19 -06:00
grep usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
gzip Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
head head: use getline() instead of fgetln() 2024-04-19 15:52:22 -06:00
hesinfo
hexdump hexdump: Do not trust st_size if it equals zero. 2024-01-04 00:16:50 -08:00
host
iconv usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
id Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
ident usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
indent indent: make the URL of the manpage two characters longer so that the test is successful 2023-12-29 09:37:43 +00:00
ipcrm usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
ipcs usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
iscsictl
join join: use getline() instead of fgetln() 2024-04-19 15:52:22 -06:00
jot Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
kdump ktrace: Record detailed ECAPMODE violations 2024-04-07 18:52:51 -05:00
keylogin
keylogout
killall usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
ktrace ktrace: Remove CAPFAIL from default trace points 2024-04-23 19:26:14 -05:00
ktrdump usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
kyua
lam lam: fail on I/O errors 2024-06-06 17:24:15 +00:00
last Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
lastcomm usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
ldd usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
ldd32
leave Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
less
lessecho
lesskey
lex
limits
locale
localedef localedef: Bootstrap better 2024-05-30 21:59:15 -06:00
locate Remove remnants of portsnap(8) 2024-04-30 22:44:34 +09:00
lock Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
lockf usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
logger Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
login login: Missed an instance of getpwnam(). 2024-01-12 17:40:55 +01:00
logins
logname Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
look look(1): Correct the example's description 2023-12-12 02:19:21 +08:00
lorder lorder: Tweak invalid file test. 2024-02-29 14:59:25 +01:00
lsvfs man filesystems: fix xrefs after move to section 4 2024-05-16 10:25:29 -06:00
lzmainfo
m4 usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
mail mail: add volatile in grabh() 2024-01-04 21:40:53 -05:00
man man(1): ignore absolute path for .so include 2024-06-03 16:00:42 +00:00
mandoc
mdo mac_do: add a new MAC/do policy and mdo(1) utility 2024-05-22 14:01:41 +02:00
mesg Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
ministat usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
mkcsmapper usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
mkcsmapper_static
mkdep
mkesdb usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
mkesdb_static
mkfifo Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
mkimg mkimg(1): process non-seekable output gracefully 2024-03-12 23:00:21 +07:00
mkstr Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
mktemp
mkuzip usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
morse Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
msgs msgs: Use C99 bool instead of defining our own 2024-02-06 08:37:50 -05:00
mt mt(1): Fix typo 2023-12-17 18:49:42 +08:00
nc
ncal ncal(1): print the correct option name when -B is specified twice 2023-12-26 16:45:26 -07:00
ncurses
netstat netstat(8): for -W, use IFNAMSIZ 2024-05-16 11:07:34 -06:00
newgrp usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
newkey usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
nfsstat nfsstat: make -q work without -e/-E 2023-12-28 13:27:07 -07:00
nice Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
nl Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
nm
nohup Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
number Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
objcopy
ofed
pagesize
pamtest
passwd usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
paste Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
patch patch: use getline() instead of fgetln() 2024-04-19 15:52:22 -06:00
pathchk usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
perror
pom Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
posixmqcontrol Fix "version introduced" in two manual pages 2024-05-23 10:30:32 -06:00
posixshmcontrol usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
pr usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
primes usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
printenv Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
printf Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
proccontrol
procstat usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
protect
quota usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
random usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
rctl usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
readelf
renice renice: Clean up the tests a bit. 2023-12-20 17:59:37 +01:00
resizewin
rev Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
revoke
rpcgen
rpcinfo usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
rs
rup
ruptime Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
rusers
rwall Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
rwho Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
script script: handle terminal resize on SIGWINCH 2024-04-26 11:39:00 -05:00
sdiff sdiff: Fix binary case. 2024-02-18 18:39:50 +01:00
sdiotool
sed Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
seq seq(1): Put separator only between the elements. 2023-12-21 21:54:05 -08:00
shar
showmount Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
size
smbutil
sockstat usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
soelim usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
sort sort: Only build FreeBSD-specific ALTMON_x stuff when ATLMON_1 is defined 2023-12-07 13:42:52 -07:00
split Tighten boundary check in split(1) to prevent a potential buffer overflow. 2024-05-03 01:29:20 -07:00
ssh-copy-id
stat stat(1): Fix grammar error in stat.c 2024-02-13 15:33:16 +08:00
stdbuf
strings
su Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
systat inpcb: fully retire inp_ppcb pointer 2024-03-29 12:18:32 -07:00
tabs usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
tail tail: Do not trust st_size if it equals zero. 2024-01-04 01:00:23 -08:00
talk usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
tar
tcopy Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
tee Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
telnet
tests
tftp usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
time time: siginfo_recvd needs to be marked volatile 2024-05-22 00:37:41 -05:00
tip usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
top usr.bin/top: fix displaying load average for loads of at least 100 2024-05-22 16:47:46 +02:00
touch touch: Add unit tests. 2024-03-27 11:03:45 +01:00
tr pkgbase: Move tr(1) to runtime 2023-12-09 12:21:02 +01:00
true Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
truncate
truss Translate linux_newlstat name argument 2024-03-21 00:45:55 +02:00
tsort Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
tty Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
ul Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
uname Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
unexpand Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
unifdef usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
uniq uniq: Error out if writing to the output failed. 2024-01-12 16:44:06 +01:00
units usr.bin/units: use else..if to avoid calling the next branch 2024-04-19 16:54:30 -06:00
unvis
unzip libarchive: merge from vendor branch 2024-04-16 23:39:31 +02:00
usbhidaction
usbhidctl
users usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
vacation
vgrind Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
vi
vis
vmstat vmstat: Rely on libxo for numbers humanization 2023-12-07 21:21:35 -05:00
vtfontcvt usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
w usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
wall Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
wc wc: Fix SIGINFO race with casper init. 2024-02-18 10:57:42 -08:00
wg
what Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
whereis
which which: Use size_t instead of ssize_t for pathlen 2024-04-05 14:30:31 -04:00
who usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
whois Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
write Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
xargs xargs: use getline() instead of fgetln() 2024-04-19 15:52:22 -06:00
xinstall install: Fix a compiler warning when bootstrapping 2024-04-19 14:48:37 -04:00
xo
xohtml
xolint
xopo
xstr Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
xz MFV: xz 5.6.2. 2024-06-03 18:14:43 -07:00
xzdec
yacc
yes Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
ypcat
ypmatch
ypwhich usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
zstd
Makefile mac_do: add a new MAC/do policy and mdo(1) utility 2024-05-22 14:01:41 +02:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.powerpc