NetBSD/usr.bin
rillig 715e58e70b lint: add additional queries that are not enabled by default
In the last 18 months, several lint warnings have been made adjusted to
allow common usage patterns.  For example, lint no longer warns about a
constant condition in the statement 'do { ... } while (false)' (message
161), as this pattern is well-known in statement-like macros, making it
unlikely that the 'false' is a mistake.  Another example is casts
between unequal pointer types (message 247) for a few well-known
patterns that are unlikely to be bugs.

Occasionally, it is useful to query the code for patterns or events that
would not justify a warning.  These patterns are modeled as predefined
queries that can be selected individually, in addition to and
independently of the existing warnings and errors.

New queries can be added as needed, in the same way as new warnings.
Queries that are deemed no longer used can be deactivated in the same
way as warnings that are no longer used.

As long as none of the queries is enabled, they produce a minimal
overhead of querying a single global variable.  Computations that are
more expensive than a few machine instructions should be guarded by
any_query_enabled.

https://mail-index.netbsd.org/source-changes-d/2022/06/28/msg013716.html

ok christos@
2022-07-05 22:50:41 +00:00
..
aiomixer aiomixer: Honor terminal colors. Looks better in cool-retro-term. 2021-07-18 11:45:31 +00:00
apply
apropos
asa
at Revert parsedate(3) XXX as per discussion with kre@. 2021-04-03 04:33:08 +00:00
audio fix verbose log for 64 bit float 2022-05-15 02:16:06 +00:00
audiocfg fix proplib deprecation 2021-06-21 03:04:27 +00:00
banner
base64 reflect reality. 2021-08-28 10:29:15 +00:00
basename
bdes
biff
bthset
btkey btkey: fix lint warning about wrong call to tolower 2021-08-25 22:52:25 +00:00
btpin
bzip2
bzip2recover
c11
c89
c99
cal
calendar Update Advent Sunday date to 2022 2022-01-07 16:51:25 +00:00
cap_mkdb fix various typos in comments, log messages and documentation. 2021-12-03 13:27:37 +00:00
cdplay usr.bin: remove unnecessary CONSTCOND, lint no longer needs it 2021-11-27 22:16:41 +00:00
checknr properly terminate a string after strncpy(). 2021-04-13 01:38:04 +00:00
chflags
chpass
cksum cksum.c: don't fault if the hash algorithm is fed invalid data 2022-06-25 02:22:42 +00:00
cleantags
cmp cmp.c: use C99 strtoll(3) instead of legacy strtoq(3) 2021-03-20 14:27:47 +00:00
col usr.bin: remove unnecessary lint comment CONSTCOND 2021-09-10 21:52:17 +00:00
colcrt
colrm
column
comm
compress uncompress: if the source is broken, don't delete the target 2022-05-22 21:39:44 +00:00
config fix various typos, mainly in comments. 2022-04-04 19:33:44 +00:00
crunch fix syntax error and typo in overwritten. 2021-08-01 15:52:11 +00:00
csplit
ctags
cut
cvslatest
db db: fix lint warnings about wrong call to ctype functions 2021-08-25 23:11:51 +00:00
dc
deroff
dirname
du
eject
elf2aout
elf2ecoff
env
error fix various typos in comments. 2022-04-07 19:33:37 +00:00
expand
extattr fix various typos in comments. 2022-04-07 19:33:37 +00:00
false
fdformat usr.bin: remove unnecessary CONSTCOND, lint no longer needs it 2021-11-27 22:16:41 +00:00
fgen fix typos in comments. 2022-01-17 20:38:49 +00:00
fincore
find Use /dev/tty for SIGINFO 2022-01-22 14:08:19 +00:00
finger fix various typos in comment, documentation and log messages. 2022-05-24 20:50:17 +00:00
flock
fmt
fold
fpr
from
fsplit
fstat Add basic ZFS support to fstat(1). 2022-06-19 11:31:19 +00:00
ftp ftp: fix -? more portably 2021-10-09 09:07:20 +00:00
gcore
genassym
gencat
getaddrinfo
getconf
getent
getopt
gettext
gprof
grep
gzip make siginfo handler print to /dev/tty. 2022-01-22 14:00:45 +00:00
head
hesinfo
hexdump
iconv
id
indent indent: clean up control flow, remove Capsicum 2022-05-09 21:41:49 +00:00
infocmp
innetgr
ipcrm
ipcs ipcs.c: do not #include sys/inttypes.h header which is not necessary 2021-03-18 19:34:05 +00:00
join join(1): convert realloc(x * y) to reallocarr and eliminate temporary 2021-11-02 10:05:49 +00:00
jot
kdump Add missing double p and d for stopped and overriden accordingly. 2021-09-11 20:28:03 +00:00
klist
ktrace Sort options. 2020-11-18 20:00:15 +00:00
ktruss usr.bin: enable lint checks for most programs in /usr/bin 2021-08-22 22:24:11 +00:00
lam In the lam(1) example with a literal newline, use newish sh syntax. 2021-01-25 20:07:55 +00:00
last
lastcomm
ldd remove clause 3 from all my licenses that aren't conflicting with 2021-12-11 19:24:18 +00:00
leave
locale
locate
lock
logger
login s/begining/beginning/ in comments and messages. 2022-01-24 09:14:36 +00:00
logname
look
lorder
m4 fix various typos in comment, documentation and log messages. 2022-05-24 20:50:17 +00:00
machine
mail fix various typos, mainly in comments. 2022-05-28 10:36:21 +00:00
make make: document parsing of short variable names, such as $i 2022-06-14 19:57:56 +00:00
man man.conf.5: improve wording on searching alternate machine paths 2022-06-19 18:51:06 +00:00
menuc fix few typos. 2021-11-07 09:48:08 +00:00
mesg
midiplay usr.bin: remove unnecessary CONSTCOND, lint no longer needs it 2021-11-27 22:16:41 +00:00
midirecord
mixerctl mixerctl: add colon after 'Usage', add space after comma 2021-12-26 15:36:49 +00:00
mkcsmapper
mkdep mkdep: avoid memory allocation in findcc 2021-08-20 06:36:10 +00:00
mkesdb
mkfifo
mklocale
mkstr
mktemp Update to reflect current reality for template characters - the process 2021-07-25 08:52:03 +00:00
mkubootimage
moduli
msgc msgc.1: fix typos 2021-10-11 18:08:12 +00:00
msgs msgs(1): avoid executing /usr/bin/Mail, it no longer exists. 2021-11-30 12:03:38 +00:00
nbperf Fix sanity check to match the fixed off-by-one logic in the sizing 2021-01-28 18:52:43 +00:00
nbsvtool fix various typos in comments, documentation and messages. 2022-05-31 08:43:13 +00:00
nc
netgroup
netstat mention ifmcstat(8) in SEE ALSO. 2022-01-07 10:17:39 +00:00
newgrp
newsyslog Use proper -width instead of the cargo-cult value. 2021-03-02 10:17:25 +00:00
nfsstat
nice
nl PR/55891 supress displaying separator when numbers supressed 2020-12-31 04:07:37 +00:00
nohup
pagesize
passwd usr.bin: remove unnecessary lint comment CONSTCOND 2021-09-10 21:52:17 +00:00
paste
patch Fix the message that appears if you patch -R an unapplied patch. 2021-09-20 23:22:36 +00:00
pathchk
pkill Cosmetic tweak. No functional change. 2022-07-02 20:50:26 +00:00
pmap
pr s/boundries/boundaries/, s/itterate/iterate/ and few more typos. 2022-05-23 19:52:34 +00:00
printenv
printf fix typo 2021-05-20 02:01:07 +00:00
progress Add missing check for error returns from read(). Found by inspection 2021-08-17 07:18:43 +00:00
pwait
pwhash Update remarks on default parameters for Argon2. 2021-10-20 17:30:28 +00:00
qsubst
quota
radioctl
rdist fix various typos, mainly s/trasfering/transferring/ and s/theese/these/. 2022-05-03 20:52:30 +00:00
realpath
renice
resize Only specify the dependencies if we are making the copy target. 2021-03-02 14:26:00 +00:00
rev
revoke
rfcomm_sppd
rlogin revert rev 1.45: 2021-08-03 23:21:07 +00:00
rpcgen fix few typos in comments for word "because". 2022-03-04 21:12:03 +00:00
rpcinfo
rs
rsh more GCC 10 fixes. 2021-04-13 06:25:48 +00:00
rump_allserver Force at most partial RELRO for rump_server and related libraries 2021-11-01 21:37:32 +00:00
rump_dhcpclient fix various typos in comments, log messages and documentation. 2021-12-03 13:27:37 +00:00
rump_halt Allow to set sanitizer flags for the rump build from the 2021-07-07 11:51:45 +00:00
rump_server Force at most partial RELRO for rump_server and related libraries 2021-11-01 21:37:32 +00:00
rump_wmd
rup
ruptime
rusers
rwall
rwho
scmdctl s/simular/similar/ 2022-04-11 21:23:07 +00:00
script 1. restore the previous finish() logic to make: 2022-02-13 19:40:14 +00:00
sdiff sdiff: fix undefined behavior for ctype functions 2021-08-27 17:38:57 +00:00
sdpquery sdpquery: fix undefined behavior when calling ctype functions 2021-08-27 17:41:39 +00:00
sed fix various typos in comments, documentation and messages. 2022-05-31 08:43:13 +00:00
seq seq(1): add more examples, improve wording 2022-02-28 13:49:50 +00:00
shar
shlock appease gcc-9 2021-04-17 00:02:19 +00:00
shmif_dumpbus
showmount
shuffle
skey
skeyinfo
skeyinit
sockstat sockstat: fix undefined behavior when calling ctype functions 2021-08-27 18:09:30 +00:00
soelim
sort fix few more typos in comments, messages and documentation. 2021-09-19 11:37:00 +00:00
sortinfo
spell spell(1): convert realloc(x * y) to reallocarr 2021-11-09 09:41:05 +00:00
split
stat Remove the notge (I added a day or so ago) about IFS interfering with -s 2022-06-24 13:11:44 +00:00
su usr.bin: remove unnecessary CONSTCOND, lint no longer needs it 2021-11-27 22:16:41 +00:00
sys_info
systat systat(1): convert realloc(x * y) to reallocarr, eliminate a temp var 2021-11-09 09:19:01 +00:00
tabs tabs: fix lint warnings about ctype functions and conversions 2021-08-27 18:28:41 +00:00
tail
talk
tcopy
tee
telnet telnet.1: update state of the art on Single DES encryption 2022-04-16 09:53:13 +00:00
tftp tftp: no longer need packed member warning 2021-02-03 06:51:26 +00:00
tic
time Since there is a -t option, and the option itself is documented, there 2021-04-05 23:01:55 +00:00
timeout
tip fix various small typos, mainly in comments. 2022-05-22 11:27:33 +00:00
touch
tput
tr add alphabetic to lower for consistency (nabijaczleweli) 2021-06-14 17:22:22 +00:00
true
tset
tsort tsort: fix typo in comment 2021-02-06 16:02:16 +00:00
tty
ul
uname
unexpand
unifdef
uniq
units Define becquerels in base units (like curies and rutherfords already are), 2022-02-15 16:21:35 +00:00
unvis
unzip usr.bin: remove unnecessary lint comment CONSTCOND 2021-09-10 21:52:17 +00:00
usbhidaction increase the size of a buffer by 1 byte. 2021-04-13 02:07:35 +00:00
usbhidctl
users
utoppya
uudecode
uuencode
uuidgen
vacation
vgrind s/begining/beginning/ in comments and messages. 2022-01-24 09:14:36 +00:00
videoctl videoctl: remove unnecessary code for unknown option -h 2021-02-19 11:39:11 +00:00
vis fix URL 2021-02-20 09:31:51 +00:00
vmstat Bump some column widths for "vmstat -mW". 2022-05-19 13:57:03 +00:00
vndcompress
w w: add -A to usage 2022-05-26 06:48:36 +00:00
wall
wc
what what: use numeric exit status, as indicated by the comment 2021-12-07 18:38:50 +00:00
whatis
whereis
who PR/56013: Kouichi Hashikawa: Move setutent/setutxent right before the loops. 2021-02-26 02:45:43 +00:00
whois
write
xargs
xinstall
xlint lint: add additional queries that are not enabled by default 2022-07-05 22:50:41 +00:00
xstr
yes
ypcat ypcat(1): Convert realloc(x * y) to reallocarr. 2021-10-30 08:56:54 +00:00
ypmatch
ypwhich
Makefile build system: Revert all the recent additions of MK[...] knobs that 2022-06-06 10:56:27 +00:00
Makefile.inc usr.bin: enable lint checks for most programs in /usr/bin 2021-08-22 22:24:11 +00:00