freebsd-src/usr.bin
Cosimo Cecchi 63f5c101a1 comm: flush stdout for error checking prior to exiting
UNIX conformance wants utilities to catch any errors when doing I/O, as
opposed to relying on the implicit flush upon exit.
comm currently does not do that.
This commit adds handling of I/O errors on stdout prior to exit.

Reviewed by:	imp, allanjude
Sponsored by:	Apple Inc.
Differential Revision:	https://reviews.freebsd.org/D45439
2024-06-06 17:04:37 +00:00
..
addr2line
alias
apply
ar
asa
at
awk
backlight
banner
basename
bc
beep
biff
bintrans
bluetooth
bmake Merge bmake-20240520 2024-05-23 13:12:43 -07:00
brandelf
bsdcat
bsddialog
bsdiff bsdiff: Use mmap instead of malloc 2024-04-19 16:33:07 -06:00
bzip2
bzip2recover
c89
c99
caesar
calendar
cap_mkdb
chat
chkey
chpass
cksum
clang
cmp
col
colrm
column
comm comm: flush stdout for error checking prior to exiting 2024-06-06 17:04:37 +00:00
compile_et
compress
cpio
csplit
ctags ctags: Use C99 bool instead of defining our own 2024-04-19 14:48:37 -04:00
ctlstat
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
dirname
dpv
drill
dtc
du Add libxo support to du 2024-04-29 08:22:39 -06:00
ee
elfctl
elfdump
enigma
env
etdump
expand expand: Fix markup for the -t option. 2024-05-13 12:41:38 +02:00
factor
false
fetch
file
file2c
find
finger
fmt
fold
fortune freebsd-tips: Tweak fortune to find font providing Unicode character 2024-05-15 11:34:39 -03:00
from
fstat
fsync
ftp
gcore
gencat
genl
getaddrinfo
getconf
getent
getopt
gh-bc
gprof
grdc Revert "grdc: Add copyright" 2024-05-10 14:12:19 -06:00
grep
gzip
head head: use getline() instead of fgetln() 2024-04-19 15:52:22 -06:00
hesinfo
hexdump
host
iconv
id
ident
indent
ipcrm
ipcs
iscsictl
join join: use getline() instead of fgetln() 2024-04-19 15:52:22 -06:00
jot
kdump
keylogin
keylogout
killall
ktrace ktrace: Remove CAPFAIL from default trace points 2024-04-23 19:26:14 -05:00
ktrdump
kyua
lam
last
lastcomm
ldd
ldd32
leave
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
lockf
logger
login
logins
logname
look
lorder
lsvfs man filesystems: fix xrefs after move to section 4 2024-05-16 10:25:29 -06:00
lzmainfo
m4
mail
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
ministat
mkcsmapper
mkcsmapper_static
mkdep
mkesdb
mkesdb_static
mkfifo
mkimg
mkstr
mktemp
mkuzip
morse
msgs
mt
nc
ncal
ncurses
netstat netstat(8): for -W, use IFNAMSIZ 2024-05-16 11:07:34 -06:00
newgrp
newkey
nfsstat
nice
nl
nm
nohup
number
objcopy
ofed
pagesize
pamtest
passwd
paste
patch patch: use getline() instead of fgetln() 2024-04-19 15:52:22 -06:00
pathchk
perror
pom
posixmqcontrol Fix "version introduced" in two manual pages 2024-05-23 10:30:32 -06:00
posixshmcontrol
pr
primes
printenv
printf
proccontrol
procstat
protect
quota
random
rctl
readelf
renice
resizewin
rev
revoke
rpcgen
rpcinfo
rs
rup
ruptime
rusers
rwall
rwho
script script: handle terminal resize on SIGWINCH 2024-04-26 11:39:00 -05:00
sdiff
sdiotool
sed
seq
shar
showmount
size
smbutil
sockstat
soelim
sort
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
stdbuf
strings
su
systat
tabs
tail
talk
tar
tcopy
tee
telnet
tests
tftp
time time: siginfo_recvd needs to be marked volatile 2024-05-22 00:37:41 -05:00
tip
top usr.bin/top: fix displaying load average for loads of at least 100 2024-05-22 16:47:46 +02:00
touch
tr
true
truncate
truss
tsort
tty
ul
uname
unexpand
unifdef
uniq
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
vacation
vgrind
vi
vis
vmstat
vtfontcvt
w
wall
wc
wg
what
whereis
which
who
whois
write
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
xz MFV: xz 5.6.2. 2024-06-03 18:14:43 -07:00
xzdec
yacc
yes
ypcat
ypmatch
ypwhich
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