NetBSD/usr.bin
jym afca4e3b49 Fix an implementation inconsistency with the prop_*_send_syscall() and
prop_*_recv_syscall() functions from proplib(3). They now share the
same logic as the one from prop_*_send_ioctl() functions:
- returns an int
- 0 indicates "no error", otherwise returns the error number (and
set errno)

Many consumers of the prop_*_{ioctl, syscall} expect errno to be set
on error and use err() to display the error message. As such, ensures that
errno gets set before returning from these functions.

prop_*_send_syscall() functions returned a boolean, and now return an int.
Fix all call sites to use the new paradigm (only quota2 is affected in src).

As the prop_*_{send,recv}_syscall() API appeared in -current and is only
used by the recent quota2 code, I am not bumping the lib. The API change
only affects the prop_*_send_syscall() function (recv_syscall()s were
already used correctly), so ensure you are not mixing "old" -current
quota binaries with a new proplib(3) (or the other way around). This
change will be announced via a HEADS-UP and UPDATING.

Does not affect the kernel part of proplib.

Document the correct API in prop_array(3) and prop_dictionary(3).

Thanks to Francois Tigeot for noticing the API inconsistency and
reporting it on tech-kern@.

ok bouyer@.
2011-09-30 22:08:18 +00:00
..
apply Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
apropos Add support for -S and -s option, which limit the results to a specific 2009-05-08 12:48:43 +00:00
asa Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
at Use __dead 2011-08-29 14:24:03 +00:00
audio PR/45384: Henning Petersen: Swapped arguments in lseek 2011-09-21 14:32:14 +00:00
audiocfg return an error if testing fails, and dump the device info before running tests 2010-09-03 19:20:37 +00:00
awk remove most of the remaining HAVE_GCC tests that are always true in 2011-06-20 07:43:56 +00:00
banner Use __dead 2011-08-29 14:24:03 +00:00
basename Use __dead 2011-08-29 14:24:03 +00:00
bdes Use .%U instead of .%O for URLs. 2010-01-15 19:39:10 +00:00
biff Use __dead 2011-08-29 14:24:03 +00:00
bthset static + __dead 2011-08-29 13:47:16 +00:00
btkey Use __dead 2011-08-29 14:24:03 +00:00
btpin static + __dead 2011-08-29 13:47:16 +00:00
bzip2
bzip2recover
cal static + __dead 2011-08-29 13:55:22 +00:00
calendar add an entry about the US nationalising gold to replace old confiscation entry 2011-06-06 03:15:14 +00:00
cap_mkdb usage() is not unused, it is dead 2011-08-29 13:56:17 +00:00
cdplay ANSIfy + static + __dead 2011-08-29 14:00:54 +00:00
checknr Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
chflags static + __dead 2011-08-29 14:05:08 +00:00
chpass NULL does not need a cast 2011-08-31 16:24:54 +00:00
cksum static + __dead 2011-08-29 14:12:29 +00:00
cmp Use __dead 2011-08-29 14:14:11 +00:00
col NULL does not need a cast 2011-08-31 16:24:54 +00:00
colcrt Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
colrm static + __dead 2011-08-30 21:33:28 +00:00
column Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
comm static + __dead 2011-08-30 21:33:28 +00:00
compress Use __printflike and __dead 2011-08-30 23:08:05 +00:00
config When making the symlink for machine -> arch/foo/include 2011-07-09 08:01:58 +00:00
crunch static + __dead 2011-08-30 23:10:45 +00:00
csplit static + __dead 2011-08-31 13:35:46 +00:00
ctags remove most of the remaining HAVE_GCC tests that are always true in 2011-06-20 07:43:56 +00:00
cut Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
db static + __dead 2011-09-01 13:25:02 +00:00
deroff Use __dead. Be a bit more consistent about static.__dead. Be a bit more 2011-08-31 13:38:19 +00:00
dirname Use __dead 2011-09-16 15:39:25 +00:00
du static + __dead 2011-09-01 13:37:33 +00:00
eject don't bother to connect to amd unless necessary. PR/42207 2010-06-23 18:07:59 +00:00
elf2aout Make this cross-tool ready. Mostly taken from elf2ecoff(1). 2011-07-10 05:07:48 +00:00
elf2ecoff misc knf cleanup. 2011-08-23 20:27:22 +00:00
env minor KNF nits. 2010-11-16 02:53:49 +00:00
error avoid "... dutch" being interpreted as a pascal continuation message, and 2011-08-17 13:11:22 +00:00
expand Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
extattr Use __dead 2011-09-16 15:39:25 +00:00
false
fdformat build elf2aout and fdformat on macppc64 (for now, it's a lot easier than 2010-03-30 07:26:23 +00:00
fgen static + __dead 2011-09-01 13:37:33 +00:00
find Updates to the find(1) man page, based on PR 45381 from Greg Woods, 2011-09-24 13:45:43 +00:00
finger Fix WARNS=4 issues (-Wshadow, -Wcast-qual, -Wsign-compare) 2009-04-12 06:18:54 +00:00
fmt Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
fold Add argument in options table. Resize to fit. 2011-09-15 09:40:57 +00:00
fpr Use static, change deep if / else if / ... chains to switch(), apply 2011-09-04 20:26:17 +00:00
from
fsplit Use __dead 2011-09-16 15:39:25 +00:00
fstat apply some (uintptr_t) so that printing printers works on i386 (likely 2011-09-23 07:31:39 +00:00
ftp Use __dead 2011-09-16 15:39:25 +00:00
gcore
genassym Use __builtin_offsetof if __GNUC__ >= 4 2011-07-05 05:19:02 +00:00
gencat PR/45385: Henning Petersen: Swapped arguments in lseek 2011-09-21 14:33:35 +00:00
getconf Xref limits(3). 2011-08-09 18:11:37 +00:00
getent Sort SEE ALSO. New sentence, new line. Whitespace fix. 2010-02-04 09:48:35 +00:00
getopt punctuation 2010-01-24 20:13:28 +00:00
gprof
grep Use __dead 2011-09-16 15:39:25 +00:00
gzip add copyright 2011-09-30 01:32:21 +00:00
head Just ignore the errno of strtoimax, it doesn't provide much value. 2010-03-31 21:55:23 +00:00
hesinfo
hexdump static + __dead 2011-09-04 20:27:05 +00:00
iconv Use __dead 2011-09-16 15:39:25 +00:00
id Use __dead 2011-09-16 15:39:25 +00:00
indent Spell out parenthesis. From Ryo HAYASAKA in PR 44372. 2011-01-12 06:17:52 +00:00
infocmp Fix spelling, mark up NULL. Closes PR 44381 by Ryo HAYASAKA. 2011-01-14 14:21:36 +00:00
innetgr
ipcrm Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ipcs Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
join static + __dead 2011-09-04 20:27:05 +00:00
jot document non-literal format strings 2011-08-16 10:35:03 +00:00
kdump don't limit sockets to sizeof(sizeof sockaddr_storage). We can create valid 2011-09-28 16:28:27 +00:00
klist Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ktrace Use __dead 2011-09-16 15:39:25 +00:00
ktruss avoid an uninitialised variable warning that shouldn't normally happen 2011-07-01 02:34:50 +00:00
lam ANSIfy + static + __dead 2011-09-04 20:28:09 +00:00
last Use __dead 2011-09-16 15:39:25 +00:00
lastcomm fix sign-compare issue 2009-04-12 13:08:31 +00:00
ldd dependant -> dependent 2011-06-30 20:09:15 +00:00
leave Use __dead 2011-09-16 15:39:25 +00:00
lex Conditionalize the yyinput/input() function definition the same way 2009-12-15 22:46:04 +00:00
locale Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
locate ANSIfy + static + __dead 2011-09-04 20:28:09 +00:00
lock
logger static + __dead 2011-09-04 20:28:59 +00:00
login NULL does not need a cast 2011-08-31 16:24:54 +00:00
logname ANSIfy + static + __dead 2011-09-04 20:29:12 +00:00
look ANSIfy + static + __dead 2011-09-04 20:29:12 +00:00
lorder
m4 Move usage and onintr to make them static. Add __dead as needed. 2011-09-06 18:16:01 +00:00
machine
mail Use __dead 2011-09-16 15:39:25 +00:00
make Make sure .PHONY targets get .TARGET set. 2011-09-29 23:38:04 +00:00
man Fix usage in man page and sync usage in executable with it. 2011-06-14 20:08:45 +00:00
menuc Mark __menu_initerror as dead in the output. 2011-09-06 18:16:38 +00:00
mesg Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
midiplay Fix disable stricter format string messages with clang again. 2011-08-17 22:16:42 +00:00
mixerctl Resort sections to canonical order 2010-05-14 17:20:06 +00:00
mkcsmapper Use __dead 2011-09-16 15:39:25 +00:00
mkdep ANSIfy + static + __dead 2011-09-04 20:29:12 +00:00
mkesdb Use __dead 2011-09-16 15:39:25 +00:00
mkfifo ANSIfy + static + __dead 2011-09-04 20:29:12 +00:00
mklocale 1. split runetype_local.h -> runetype_file.h 2010-06-13 04:14:56 +00:00
mkstr ANSIfy, sprinkle "const" in some obvious cases 2009-11-17 18:31:12 +00:00
mktemp Fix typo. 2009-08-15 20:44:56 +00:00
mkubootimage Sprinkle one more static and a bunch of consts. 2011-09-04 20:35:07 +00:00
moduli static + __dead 2011-09-04 20:55:43 +00:00
msgc Simplify markup. 2010-05-14 17:24:38 +00:00
msgs NULL does not need a cast 2011-08-31 16:24:54 +00:00
nbperf Add a check for duplicate keys. The check is run once and quadratic in 2010-03-03 01:55:04 +00:00
nbsvtool New sentence, new line. 2011-04-28 17:14:45 +00:00
netgroup
netstat Use __dead 2011-09-16 15:39:25 +00:00
newgrp Use __dead 2011-09-16 15:39:25 +00:00
newsyslog Reset ziptype on each line. Failure to do this caused any log file to 2009-08-21 08:20:19 +00:00
nfsstat ANSIfy, static + __dead. 2011-09-06 18:19:58 +00:00
nice
nl - document non-literal format string 2011-08-16 12:00:46 +00:00
nohup ANSIfy + __dead 2011-09-06 18:24:15 +00:00
nvi document non-literal format strings. 2011-08-17 12:57:19 +00:00
pagesize
passwd Use __dead 2011-09-16 15:39:25 +00:00
paste static + __dead 2011-09-06 18:24:43 +00:00
patch Consistently use __dead and __printflike. 2011-09-06 18:25:14 +00:00
pathchk Use __dead 2011-09-16 15:39:25 +00:00
pkill Fix SYNOPSIS; pkill accepts -l options since 3 years ago. `pattern' is 2010-12-07 09:00:23 +00:00
pmap Don't give out information about processes we can't control. 2011-06-23 22:50:53 +00:00
pmc Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
pr ANSIfy, static + __dead 2011-09-06 18:26:06 +00:00
printenv static + __dead 2011-09-06 18:26:55 +00:00
printf document non-literal format strings 2011-08-16 10:35:03 +00:00
progress Use __dead 2011-09-16 15:39:25 +00:00
pwhash Use __dead 2011-09-16 15:39:25 +00:00
qsubst Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
quota Fix an implementation inconsistency with the prop_*_send_syscall() and 2011-09-30 22:08:18 +00:00
radioctl static + __dead 2011-09-06 18:26:55 +00:00
rdist Use __dead and __printflike. 2011-09-06 18:28:18 +00:00
renice Fix markup. 2009-04-08 13:20:23 +00:00
rev Use __dead 2011-09-16 15:39:25 +00:00
revoke Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
rfcomm_sppd - use poll() instead of select() 2011-07-18 21:51:06 +00:00
rlogin static + __dead 2011-09-06 18:28:35 +00:00
rpcgen NULL does not need a cast 2011-08-31 16:24:54 +00:00
rpcinfo Use __dead 2011-09-16 15:39:25 +00:00
rs ANSIfy, static + __dead 2011-09-06 18:28:58 +00:00
rsh static + __dead 2011-08-29 14:22:46 +00:00
rump_allserver Use __dead 2011-09-16 15:39:25 +00:00
rump_dhcpclient Use __dead 2011-09-16 15:39:25 +00:00
rump_halt Use __dead 2011-09-16 15:39:25 +00:00
rump_server Allow to specify -d hostpath offset,size with disklabel. 2011-02-04 20:06:23 +00:00
rup Apply casts to cases where xdrproc_t is expected but is not 2011-08-30 17:06:20 +00:00
ruptime ANSIfy, static + __dead 2011-09-06 18:28:58 +00:00
rusers static + __dead 2011-09-06 18:29:35 +00:00
rwall Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
rwho fix -Wsign-compare issue 2009-04-13 07:11:37 +00:00
script static + __dead 2011-09-06 18:29:35 +00:00
sdiff reinstate NULL cast by request, where the NULL was being passed as a vararg 2011-09-01 07:18:50 +00:00
sdpquery Use __dead 2011-09-16 15:39:25 +00:00
sed Merge the following revisions from OpenBSD to let sed(1) handle 2010-02-19 16:35:27 +00:00
seq document non literal string format 2011-08-17 13:19:09 +00:00
shar
shlock Use pid_t directly. Apply static and __dead. 2011-09-06 18:30:38 +00:00
shmif_dumpbus Use __dead 2011-09-16 15:39:25 +00:00
showmount Use static and __dead. 2011-09-06 18:30:56 +00:00
shuffle Use __dead 2011-09-16 15:39:25 +00:00
skey Use __dead 2011-09-16 15:39:25 +00:00
skeyinfo ANSIfy and sort includes 2009-09-05 06:15:24 +00:00
skeyinit Fix -Wsign-compare issue 2009-04-14 09:53:08 +00:00
sockstat Document that localsocket may be of type SOCK_SEQPACKET 2011-05-29 04:54:45 +00:00
soelim Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
sort Use __dead 2011-09-16 15:39:25 +00:00
spell Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
split Use __dead 2011-09-16 15:39:25 +00:00
stat Use vis(3) encoding when a string format is modified by the '#' flag. 2011-09-22 20:23:55 +00:00
su NULL does not need a cast 2011-08-31 16:24:54 +00:00
systat Consistently use __dead and __printflike. 2011-09-06 18:31:44 +00:00
tabs Use __dead 2011-09-16 15:39:25 +00:00
tail minor knf, no functional change. 2011-09-03 10:59:10 +00:00
talk ANSIfy + __dead 2011-09-06 18:32:03 +00:00
tcopy ANSIfy + static + __dead 2011-09-06 18:32:26 +00:00
tee Fix -Wcast-qual issues 2009-04-13 23:45:50 +00:00
telnet remove most of the remaining HAVE_GCC tests that are always true in 2011-06-20 07:43:56 +00:00
tftp ansify, const, knf 2011-09-17 15:15:46 +00:00
tic libterminfo can now compile a single terminfo description which allows 2010-02-22 23:05:39 +00:00
time NULL does not need a cast 2011-08-31 16:24:54 +00:00
tip Use __dead. Make a bunch of local functions static. 2011-09-06 18:33:01 +00:00
touch ANSIfy, static + __dead 2011-09-06 18:33:18 +00:00
tpfmt add an option to put samples for each symbols together. 2011-07-26 12:24:16 +00:00
tput Fix trailing whitespace 2010-05-14 01:58:07 +00:00
tr revert previous; don't change the logic. 2011-09-08 12:00:26 +00:00
true
tset ANSIfy. Sprinkle static and __dead. 2011-09-06 18:34:12 +00:00
tsort ANSIfy, static + __dead 2011-09-06 18:34:37 +00:00
tty ANSIfy + __dead 2011-09-06 18:34:57 +00:00
ul Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
uname ANSIfy + __dead 2011-09-06 18:34:57 +00:00
unexpand Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
unifdef Use __dead 2011-09-16 15:39:25 +00:00
uniq Sync usage with man page. 2010-10-06 07:59:18 +00:00
units ANSIfy, static + __dead 2011-09-06 18:35:41 +00:00
unvis Make SYNOPSIS match usage. 2010-11-28 01:33:37 +00:00
unzip error_count is unsigned, so use %ju 2011-09-06 18:43:41 +00:00
usbhidaction Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
usbhidctl Use __dead 2011-09-16 15:39:25 +00:00
users
utoppya Sprinkle const. Use __dead. 2011-09-05 18:11:53 +00:00
uudecode static + __dead 2011-09-06 18:44:26 +00:00
uuencode Use __dead 2011-09-16 15:39:25 +00:00
uuidgen Use __dead 2011-09-16 15:39:25 +00:00
vacation s/the the/the/ 2009-12-08 09:46:01 +00:00
vgrind Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
videoctl Use __dead 2011-09-16 15:39:25 +00:00
vis Fix typo in usage. 2009-02-11 06:42:31 +00:00
vmstat Use __arraycount(), as done above. 2011-09-21 12:08:02 +00:00
vndcompress Use static and __dead 2011-09-06 18:45:04 +00:00
w Use __dead 2011-09-16 15:39:25 +00:00
wall static + __dead 2011-09-06 18:45:21 +00:00
wc Use __dead 2011-09-16 15:39:25 +00:00
what ANSIfy, static + __dead 2011-09-06 18:45:49 +00:00
whatis static + __dead 2011-09-06 18:46:03 +00:00
whereis No trailing whitespace 2010-04-05 16:13:58 +00:00
who PR/41313: Chris Spiegel: getutentries() in src/usr.bin/who/utmpentry.c thinks 2009-05-01 14:26:10 +00:00
whois fix non-literal string format 2011-08-17 13:57:12 +00:00
window Use __printflike and __dead. 2011-09-06 18:46:21 +00:00
write static + __dead 2011-09-06 18:46:35 +00:00
xargs Talk more about NetBSD and less about FreeBSD. Sort sections. 2010-12-22 09:05:07 +00:00
xinstall Use static and __dead. 2011-09-06 18:50:32 +00:00
xlint Fix lseek(2) swapped arguments. 2011-09-18 09:07:35 +00:00
xstr Use __dead 2011-09-16 15:39:25 +00:00
yes Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ypcat Sort options in SYNOPSIS. 2011-01-12 19:55:06 +00:00
ypmatch Sync usage with man page. 2009-06-21 14:59:53 +00:00
ypwhich Apply casts to cases where xdrproc_t is expected but is not 2011-08-30 17:06:20 +00:00
Makefile Remove the old version of "less". 2011-07-03 21:58:52 +00:00
Makefile.inc Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00