HardenedBSD/usr.bin
Mark Johnston 6b43126f81 col(1): Fix a couple of bugs
- When flushing extra lines after all input has been processed, make
  sure that local state is reinitialized correctly.
- When -f is specified, make sure to end output with a full newline.
- Fix some style issues and update comments.
- Add some regression tests.

PR:		249308
Submitted by:	Yang Zhong <yzhong@freebsdfoundation.org>
MFC after:	3 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D26536
2020-10-09 15:27:37 +00:00
..
addr2line
alias
apply
ar
asa
at at(1): Markup environment variables with proper macros 2020-07-19 14:42:13 +00:00
atm
awk
backlight backlight: check the lenght if the input before trimming '%' 2020-10-06 08:18:09 +00:00
banner
basename
bc
biff
bluetooth
bmake Only set WARNS if not defined 2020-09-11 13:28:37 +00:00
brandelf
bsdcat
bsdiff
bzip2
bzip2recover
c89
c99
caesar
calendar Bump manual page date after 366243 2020-09-29 10:07:46 +00:00
cap_mkdb
chat Fix a few mandoc issues 2020-10-09 14:03:45 +00:00
chkey
chpass Fix i386 build of chpass after r363992 2020-08-08 10:05:27 +00:00
cksum
clang Update Makefiles under lib/clang and usr.bin/clang for 11.0.0 builds, 2020-08-06 19:30:00 +00:00
cmp
col col(1): Fix a couple of bugs 2020-10-09 15:27:37 +00:00
colrm
column
comm comm(1): Add EXAMPLES section 2020-07-27 16:51:23 +00:00
compile_et
compress
cpio
cpuset Fix EINVAL message when CPU binding information is requested for IRQ. 2020-10-09 11:24:19 +00:00
csplit
ctags
ctlstat
cut
cxxfilt
dc
diff diff: always properly kill pr(1) 2020-09-01 14:52:39 +00:00
diff3
dirname
dpv Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
drill
dtc
du Fix a few mandoc issues 2020-10-09 14:03:45 +00:00
ee
elfctl Reserve FreeBSD ELF feature control bit LA48 to control VA layout on amd64. 2020-08-23 19:47:27 +00:00
elfdump
enigma
env
etdump
expand
factor
false
fetch Don't explicitly specify c99 or gnu99 as the default is now gnu99. 2020-08-17 05:57:02 +00:00
file
file2c
find
finger
fmt
fold
fortune fortune(6): Grammar fix for a hint on searching ports 2020-09-04 13:05:00 +00:00
from
fstat
fsync
ftp
gcore Use MACHINE_CPUARCH when checking for arm64 2020-09-14 16:12:28 +00:00
gencat
getaddrinfo
getconf Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
getent
getopt
gh-bc Connect the tests provided with the new bc and dc 2020-08-03 20:26:04 +00:00
gprof Cleanups for gprof: 2020-09-14 16:18:53 +00:00
grdc
grep zgrep: fix exit status with multiple files 2020-10-01 21:48:22 +00:00
gzip
head
hesinfo
hexdump
host
iconv
id
ident
indent
ipcrm
ipcs
iscsictl Add DSCP support for network QoS to iscsi initiator. 2020-10-09 14:33:09 +00:00
join
jot
kdump
keylogin
keylogout
killall
ktrace
ktrdump
kyua
lam
last
lastcomm
ldd
ldd32
leave
less
lessecho
lesskey
lex
limits
locale
localedef Only set WARNS if not defined 2020-09-11 13:28:37 +00:00
locate
lock
lockf Remove whitespace which accidentaly snuck into r364831. 2020-08-26 19:28:30 +00:00
logger
login
logins
logname
look
lorder
lsvfs
lzmainfo
m4 Only set WARNS if not defined 2020-09-11 13:28:37 +00:00
mail
man
mandoc Ensure that the makewhatis symlink is added in the bootstrap-tools stage 2020-09-10 15:37:29 +00:00
mesg
minigzip
ministat
mkcsmapper mkcsmapper: Fix UBSan signed shift error 2020-09-21 19:03:17 +00:00
mkcsmapper_static
mkdep
mkesdb
mkesdb_static
mkfifo
mkimg Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
mkstr
mktemp
mkuzip
morse
msgs
mt
nc
ncal
netstat Extend netstat to display TCP stack and detailed congestion state 2020-10-09 10:07:41 +00:00
newgrp
newkey
nfsstat Fix output of nfsstat -cE in json or xml mode 2020-09-02 17:36:30 +00:00
nice
nl
nm
nohup
number
objcopy
ofed build: provide a default WARNS for all in-tree builds 2020-09-18 17:17:46 +00:00
opieinfo
opiekey
opiepasswd
pagesize
pamtest
passwd
paste
patch Remove heuristic for dealing with trailing newlines being truncated by mailers. 2020-08-16 23:55:23 +00:00
pathchk
perror
pom
posixshmcontrol Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
pr
primes
printenv
printf
proccontrol Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
procstat procstat(1): Add EXAMPLES section 2020-10-05 14:07:32 +00:00
protect Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
quota
random
rctl
readelf
renice
resizewin
rev
revoke
rpcgen
rpcinfo
rs
rup
ruptime
rusers
rwall
rwho
script Fix typo in comment. 2020-09-05 04:20:29 +00:00
sdiff
sdiotool
sed sed: fix hex_subst test after after r363679 2020-07-30 13:36:24 +00:00
seq
setchannel Fix a few mandoc issues 2020-10-09 14:03:45 +00:00
shar
showmount
size
smbutil
sockstat Add a -C option to sockstat to display the congestion control for TCP 2020-09-13 09:12:25 +00:00
soelim
sort Fix -Wpointer-sign warnings in bwstring.c 2020-09-10 15:37:19 +00:00
split
ssh-copy-id
stat
stdbuf
strings
su
svn
systat
tabs
tail
talk
tar build: provide a default WARNS for all in-tree builds 2020-09-18 17:17:46 +00:00
tcopy
tee
telnet
tests
tftp Fix a few mandoc issues 2020-10-09 14:03:45 +00:00
time
timeout
tip
top top: VIS_SAFE turned out to be unsafe 2020-07-14 22:43:40 +00:00
touch
tput tput(1): Several enhancements for the manual page 2020-08-11 21:44:43 +00:00
tr
true
truncate truncate(1): Add EXAMPLES section 2020-07-27 15:25:04 +00:00
truss Enable iterating all sysctls, even ones with CTLFLAG_SKIP 2020-10-05 20:13:22 +00:00
tset
tsort tsort(1): Add EXAMPLES section 2020-08-30 17:37:56 +00:00
tty
ul ul(1): Remove references to colcrt(1) and nroff(1) 2020-10-07 14:43:16 +00:00
uname Document the order in which the kernel and the user environment versions 2020-08-10 09:03:29 +00:00
unexpand
unifdef
uniq
units
unvis
unzip Don't explicitly specify c99 or gnu99 as the default is now gnu99. 2020-08-17 05:57:02 +00:00
usbhidaction
usbhidctl
users Only set WARNS if not defined 2020-09-11 13:28:37 +00:00
uudecode
uuencode
vacation
vgrind
vi Update nvi to 2.2.0-05ed8b9 2020-10-01 04:46:23 +00:00
vis
vmstat Describe the value in the 're' column of vmstat(8) in terms of freebsd's vm 2020-07-26 18:33:29 +00:00
vtfontcvt Document automatic handling of font height for BDF files 2020-08-02 16:41:36 +00:00
w w(1): Add EXAMPLES to man page 2020-08-24 17:57:08 +00:00
wall
wc
what
whereis
which Fix typo and environment variable macro 2020-09-24 16:42:17 +00:00
who who(1): Add EXAMPLES section 2020-08-30 17:40:59 +00:00
whois
write
xargs xargs: add some long options for GNU compatibility 2020-09-21 17:06:36 +00:00
xinstall Allow install(1)'s create_tempfile() to work on Linux hosts 2020-07-15 17:24:39 +00:00
xo
xohtml
xolint
xopo
xstr
xz
xzdec
yacc MFV: r362513 2020-07-14 01:54:24 +00:00
yes
ypcat
ypmatch
ypwhich
zstd Only set WARNS if not defined 2020-09-11 13:28:37 +00:00
Makefile Add backlight(8) 2020-10-02 18:21:30 +00:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc build: provide a default WARNS for all in-tree builds 2020-09-18 17:17:46 +00:00
Makefile.powerpc