NetBSD/usr.bin
kre 24f342dfd6 PR standards/53563
POSIX requires that signed numbers (strings preceded by '+' or '-')
be allowed as inputs to all of the integer format conversions, including
those which treat the data as unsigned.

Hence we do not need a variant function whose only difference from its
companion is to reject strings starting with '-' - instead we use
the primary function (getintmax()) for everything and remove getuintmax().

Minor update to the man page to indicate that the arg to all of the
integer conversions (diouxX) must be an integer constant (with an
optional sign) and to make it blatantly clear that %o is octal and
%u is unsigned decimal (for some reason those weren't explicitly stated
unlike d i x and X).  Delete "respectively", it is not needed (and does
not really apply).

XXX pullup -8
2018-08-31 17:27:35 +00:00
..
apply Be more precise. 2016-03-14 09:53:37 +00:00
apropos
asa Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
at Fix typo in error message. 2018-02-25 23:48:16 +00:00
audio need getle16() for ext.sub_tag too 2017-11-25 17:18:15 +00:00
audiocfg if opening the audio device fails, try opening again with write-only. 2016-03-05 22:10:39 +00:00
banner
base64 Provide MacOS/X compatible flags (where possible) 2018-07-25 03:45:34 +00:00
basename Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
bdes Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
biff Update SYNOPSIS to reflect that y and n options are mutually exclusive. 2016-12-20 08:21:32 +00:00
bthset use correct offset for channel in SDP record 2016-03-06 21:12:07 +00:00
btkey Sort sections. From Henning Petersen in PR 49222. 2014-09-19 16:02:58 +00:00
btpin consistent style: connect(2), socket(2) and setsockopt(2) return -1 2017-12-21 09:04:34 +00:00
bzip2
bzip2recover
c11 Minor improvements, add more markup. 2016-10-03 08:20:12 +00:00
c89 this are our's not gnu 2016-01-14 04:27:26 +00:00
c99 this are our's not gnu 2016-01-14 04:27:26 +00:00
cal Remove superfluous Pp. 2018-05-29 08:37:33 +00:00
calendar add netbsd 8.0, fix whitespace 2018-07-21 18:50:22 +00:00
cap_mkdb Change some standard exit status text to ".Ex -std" 2014-04-13 01:45:34 +00:00
cdplay more stray \n 2015-06-17 00:01:59 +00:00
checknr Add more __dead. 2013-08-12 14:03:18 +00:00
chflags In all man pages that say: 2013-12-17 09:54:08 +00:00
chpass Specify SANITIZER_RENAME_SYMBOL in chpass 2018-06-25 18:05:25 +00:00
cksum Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
cleantags Move .Op macro to its own line. Fix SYNOPSIS rendering with mandoc. 2013-04-26 17:12:10 +00:00
cmp Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
col PR/49291: Henning Petersen: Problem with half-line feeds in input stream. 2014-10-18 14:56:14 +00:00
colcrt
colrm
column Move information about exit values from DESCRIPTION to EXIT STATUS section. 2016-10-02 21:06:18 +00:00
comm Change some standard exit status text to ".Ex -std" 2014-04-13 01:45:34 +00:00
compress Add EXIT STATUS section. Use Ex. New sentence, new line. 2017-07-04 06:58:55 +00:00
config Bump config(5) version for OPT.foo.c variables. 2018-08-27 16:04:45 +00:00
crunch Sync usage with man page. 2018-07-26 08:57:32 +00:00
csplit Compare return value of fputs(3) with EOF instead of 0. 2017-07-30 23:02:53 +00:00
ctags Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
cut From Igor Sobrado in private email (based on his OpenBSD commit): 2014-02-03 20:22:19 +00:00
cvslatest deal with cvs meta-data directories not called CVS. 2018-03-11 14:59:41 +00:00
db
dc Restore the MKGROFF=bo MKCXX=yes build 2018-06-11 14:18:16 +00:00
deroff fix unused variable warnings 2013-10-18 20:47:06 +00:00
dirname
du
eject Drop main() prototype. 2016-09-05 00:40:28 +00:00
elf2aout Gcc, please shut up with those stupid warnings! 2016-03-07 22:16:38 +00:00
elf2ecoff fix printf format 2017-02-24 17:19:14 +00:00
env
error Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
expand Drop main() prototype. 2016-09-05 00:40:28 +00:00
extattr Use returned size and not buffer max length when displaying attribute 2014-06-20 15:22:01 +00:00
false
fdformat Drop main() prototype. 2016-09-05 00:40:28 +00:00
fgen Use more macros. 2017-07-04 07:07:23 +00:00
fincore
find Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
finger Instead of saying "The finger displays information..." say "The finger utility" 2016-12-22 12:39:40 +00:00
flock mention that -x is the default. 2014-08-18 09:45:52 +00:00
fmt Wse wide functions to avoid file corruption. Q+D because it does not 2017-10-13 00:11:56 +00:00
fold
fpr Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
from
fsplit fix some error handling. 2015-06-16 22:54:10 +00:00
fstat Print BPF direction correctly. 2018-06-26 10:00:25 +00:00
ftp Don't use the local username as the default anonftp password. 2018-03-04 19:57:41 +00:00
gcore Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
genassym - use just the basename for program name 2014-01-06 22:43:15 +00:00
gencat Use An -nosplit. Use Mt. Fix some mandoc lint. 2018-07-28 08:03:41 +00:00
getaddrinfo need bsd.own.mk 2014-04-29 01:21:02 +00:00
getconf Change some standard exit status text to ".Ex -std" 2014-04-13 01:45:34 +00:00
getent Remove superfluous Tn. 2017-10-23 01:06:05 +00:00
getopt
gettext From William Orr: 2015-07-12 11:40:52 +00:00
gprof Restore the MKGROFF=bo MKCXX=yes build 2018-06-11 14:18:16 +00:00
grep add WITHOUT_GZIP for the tools build. 2018-08-12 09:03:21 +00:00
gzip Correct Undefined Behavior in gzip(1) 2018-06-12 00:42:17 +00:00
head Add EXIT STATUS section. Use Ex. 2017-07-04 06:59:34 +00:00
hesinfo Drop main() prototype. 2016-09-05 00:40:28 +00:00
hexdump Don't try to use stdin after clobbering it with a failed freopen(). 2016-03-04 03:02:52 +00:00
iconv Save errno around fwrite(), which can otherwise trash it; PR 47813. 2013-10-07 02:00:46 +00:00
id Add EXIT STATUS section. Use Ex. 2017-07-04 07:01:07 +00:00
indent Drop main() prototype. 2016-09-05 00:40:28 +00:00
infocmp _ti_database now includes the database extension so don't duplicate it. 2017-05-16 09:21:54 +00:00
innetgr simplify __dead usage 2016-09-03 05:50:06 +00:00
ipcrm
ipcs Remove KVM support. 2014-06-11 14:57:55 +00:00
join Add EXIT STATUS section. Use Ex. 2017-07-04 07:01:07 +00:00
jot Don't require any arguments as the usage indicates; simplifies the code 2018-06-25 14:29:17 +00:00
kdump remove extra quotes. 2018-06-12 15:41:35 +00:00
klist
ktrace Omit no longer existing l, m from default trace points. 2015-01-08 22:03:42 +00:00
ktruss ktruss: Remove symbol clash with libc 2018-06-03 13:41:30 +00:00
lam Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
last
lastcomm
ldd Disable SANITIZER for ldd(1) 2018-06-21 10:41:45 +00:00
leave
locale
locate locate: fix support for multiple databases 2018-05-14 05:17:10 +00:00
lock Drop main() prototype. 2016-09-05 00:40:28 +00:00
logger
login add LIBKRB5_LDADD/LIBKRB5_DPADD and their static counterparts 2018-02-25 00:16:48 +00:00
logname Add EXIT STATUS section. Use Ex. 2017-07-04 07:01:07 +00:00
look Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
lorder
m4 Avoid an infinite loop caused by a line accidentally dropped 2018-07-30 22:58:09 +00:00
machine
mail use SUBDIR.roff suggested by uwe@ 2018-06-10 17:55:11 +00:00
make Fix previous: cached_stats() returning < 0 means that the file is not found, 2018-07-12 18:03:31 +00:00
man move 'utsname' to the main() function scope, so that the reference to 2018-06-15 20:16:35 +00:00
menuc drop main() prototype 2018-01-23 22:12:52 +00:00
mesg Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
midiplay Sync usage with manpage. 2018-05-03 05:14:55 +00:00
midirecord avoid assert() and simply return errors. 2017-06-03 21:31:14 +00:00
mixerctl Generate usage error for bad usage, before attempting any other operations. 2017-02-23 14:09:11 +00:00
mkcsmapper Infile is also optional. 2016-06-28 09:23:09 +00:00
mkdep deconst -> __UNCONST to avoid null pointer arithmetic 2018-05-23 21:20:20 +00:00
mkesdb Sync usage with program. Add RCS Id. Increase column width. Fix macro usage. Improve wording. 2016-06-28 09:25:21 +00:00
mkfifo Add EXIT STATUS section. Use Ex. 2017-07-04 07:01:07 +00:00
mklocale Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
mkstr Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
mktemp Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
mkubootimage Fix tools build 2018-02-04 17:33:34 +00:00
moduli use BN_is_prime_ex 2018-02-06 19:32:49 +00:00
msgc avoid redefinitions 2013-10-18 20:19:36 +00:00
msgs Drop main() prototype. 2016-09-05 00:40:28 +00:00
nbperf Fix typo 2017-06-20 15:50:04 +00:00
nbsvtool mark old compat functions. 2018-02-06 20:15:39 +00:00
nc Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
netgroup simplify __dead usage 2016-09-03 05:58:30 +00:00
netstat Print iqdrops, too. This change also fixes a bug that Odrops prints 2018-07-11 07:46:20 +00:00
newgrp Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
newsyslog Remove superfluous Tn. 2017-10-23 01:06:05 +00:00
nfsstat PR/48426: Dimitris Karagkasidis: Make nfsstat use unsigned numbers. 2014-04-24 18:40:35 +00:00
nice
nl Improve description. 2013-09-24 22:08:06 +00:00
nohup
pagesize
passwd add LIBKRB5_LDADD/LIBKRB5_DPADD and their static counterparts 2018-02-25 00:16:48 +00:00
paste Remove second NetBSD RCS Id. 2013-04-07 17:43:01 +00:00
patch Keep things portable (requested by joerg) by not depending on reallocarr 2018-06-18 18:33:31 +00:00
pathchk
pkill Add pgrep and prenice to the NAME section 2017-10-22 17:45:46 +00:00
pmap handle field rename. 2018-05-09 01:04:01 +00:00
pr Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
printenv
printf PR standards/53563 2018-08-31 17:27:35 +00:00
progress Retry read() on EINTR. Fixes premature exit of 2015-01-17 10:57:51 +00:00
pwait The proper way to validate a condition that's expected to be true is 2017-07-30 20:37:35 +00:00
pwhash md5 is a hashing algorithm, don't say it is used for encryption. 2016-05-24 06:15:43 +00:00
qsubst Use Nm to refer the program name. 2017-02-22 14:01:40 +00:00
quota Remove leftover #if 0 code from before the libquota rework. 2014-07-13 01:46:04 +00:00
radioctl
rdist Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
renice emove duplicate RCS Id. Bump date for previous. 2012-12-06 07:52:12 +00:00
rev
revoke
rfcomm_sppd fix offset/indent of list 2017-12-21 08:59:27 +00:00
rlogin Added missing sa_mask initialization (CID 979636) 2015-10-28 08:15:53 +00:00
rpcgen u_int -> unsigned int, in some of the output. 2016-01-23 02:33:09 +00:00
rpcinfo passes WARNS=5, don't set it to 4. 2013-08-21 21:05:29 +00:00
rs Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
rsh Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
rump_allserver With the removal of HAVE_REGISTER_T from rumpuser_port.h, _KERNTYPES does not 2017-05-11 04:33:14 +00:00
rump_dhcpclient Remove more _KERNTYPES definitions in rump components. 2017-05-11 13:20:02 +00:00
rump_halt Remove more _KERNTYPES definitions in rump components. 2017-05-11 13:20:02 +00:00
rump_server With the removal of HAVE_REGISTER_T from rumpuser_port.h, _KERNTYPES does not 2017-05-11 04:33:14 +00:00
rump_wmd Clarify that -l params must be given after options. 2014-01-28 14:02:54 +00:00
rup Drop main() prototype. 2016-09-05 00:40:28 +00:00
ruptime Remove second copy for RCS Id. 2014-01-04 15:43:27 +00:00
rusers
rwall
rwho
script
sdiff Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
sdpquery update several profiles, bringing up to date decoding of all the 2015-12-11 21:05:18 +00:00
sed PR/49872:Yorick Hardy: sed functions 'i' and 'a' discard leading white space 2016-04-05 00:13:03 +00:00
seq The sign is optional in an exponent 2017-10-29 01:28:46 +00:00
shar Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
shlock Fix casts which are inconsistent with *printf() formats and remove the 2015-04-10 09:34:43 +00:00
shmif_dumpbus Use autoconf for rump kernel posix hypercall layer. 2014-11-04 19:05:17 +00:00
showmount Stop using Tn. New sentence, new line. 2018-01-09 09:24:22 +00:00
shuffle Fix misuse of arc4random by using arc4random_uniform. 2017-02-06 02:26:44 +00:00
skey Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
skeyinfo
skeyinit Fix capitalisation (again, last time the wrong sentence). 2013-05-06 13:44:17 +00:00
sockstat don't do _KERNEL; hides bswap stuff. 2017-01-14 01:01:48 +00:00
soelim Drop main() prototype. 2016-09-05 00:40:28 +00:00
sort Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
sortinfo Free the buffer allocated by getline(3). 2017-04-30 13:45:06 +00:00
spell Spell NULL pointer as NULL. 2013-11-18 19:55:59 +00:00
split needs <sys/stat.h> 2017-01-10 21:14:13 +00:00
stat Handle the new %f (as an addition to the strftime format - -t arg) 2017-09-21 22:53:19 +00:00
su Fix typo in comment. 2018-02-26 00:05:05 +00:00
sys_info Also report versions of tcpdump, libpcap, and wpa_supplicant 2017-09-28 18:08:04 +00:00
systat Remove now unused tcpip.h includes. Some were already unused before. 2018-05-03 07:13:48 +00:00
tabs Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
tail [tail] Fix type of 'len' 2018-03-06 03:33:26 +00:00
talk fix some error handling. 2015-06-16 22:54:10 +00:00
tcopy
tee Add EXIT STATUS section. Use Ex. 2017-07-04 07:01:07 +00:00
telnet add LIBKRB5_LDADD/LIBKRB5_DPADD and their static counterparts 2018-02-25 00:16:48 +00:00
tftp Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
tic unistd.h for close. 2017-10-02 21:53:55 +00:00
time Simplify. 2017-07-15 14:40:36 +00:00
timeout typo 2016-10-13 06:22:26 +00:00
tip Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
touch Update the description of the -t option to bring it in sync with IEEE 1003.1 -2008. 2016-12-24 15:49:18 +00:00
tput Use putp(3) to output our strings. 2013-02-05 11:31:56 +00:00
tr Do not accept invalid octal character values (>= 0400). 2018-05-26 11:20:30 +00:00
true
tset Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
tsort
tty Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
ul Add a FILES section and add references to terminfo(3), terminfo(5) in SEE ALSO. 2016-06-24 12:03:22 +00:00
uname
unexpand PR/50750: David Binderman: Check bounds before dereference 2016-02-03 05:32:14 +00:00
unifdef Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
uniq Fix the bug introduced in the previous commit. 2016-10-16 06:17:51 +00:00
units Add most common thai length/area measurements of wah rai ngan 2017-03-21 01:21:59 +00:00
unvis RFC 1866 does not define any "URI encoding". It defines HTML 2.0 that 2012-12-15 02:08:13 +00:00
unzip Ignore malformed directory entries as created by Dropbox ("/"). 2018-07-19 18:04:25 +00:00
usbhidaction Add an optional '-p pidfile' parameter. 2018-05-15 01:41:29 +00:00
usbhidctl Fix fallout from hid factorisation: 2017-12-10 20:38:13 +00:00
users Drop main() prototype. 2016-09-05 00:40:28 +00:00
utoppya filesystem -> file system. 2015-06-21 12:05:11 +00:00
uudecode Support both "-" and "/dev/stdout" as references to standard 2013-01-28 19:50:30 +00:00
uuencode Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
uuidgen
vacation Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
vgrind Drop main() prototype. 2016-09-05 00:40:28 +00:00
videoctl
vis Add -N (VIS_NOLOCALE), sort. 2015-05-24 19:42:39 +00:00
vmstat Typos. 2018-02-08 09:05:16 +00:00
vndcompress Clarify compile-time and run-time arithmetic safety assertions. 2017-07-29 21:04:07 +00:00
w if there is more than one : it is not an X display, it is a v6 address 2016-11-16 02:03:30 +00:00
wall PR/50454: Timo Buhrmester: Fix wrong allocation for wall(1) -g 2015-11-21 14:59:51 +00:00
wc Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
what Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
whatis
whereis Sort sections. From Henning Petersen in PR 49222. 2014-09-19 16:02:58 +00:00
who Match sequence of flags with usage() 2018-05-11 16:36:57 +00:00
whois It helps to separate arguments from the query. 2013-02-20 09:27:52 +00:00
write
xargs Remove a few unneeded Pp macros. 2012-10-13 14:18:16 +00:00
xinstall Move __MKTEMP_OK up earlier so it has an actual impact. Reduces the 2016-05-31 06:55:02 +00:00
xlint recognize noinline attribute 2018-07-08 17:48:42 +00:00
xstr Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
yes
ypcat
ypmatch
ypwhich Remove spurious error(1) inserted compiler error message comments. 2017-08-11 20:32:34 +00:00
Makefile Tiny base64 encoder/decoder command patterned after the linux and the macosx 2018-07-24 15:26:16 +00:00
Makefile.inc