NetBSD/usr.sbin
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
..
ac Use __dead. 2011-08-29 20:38:53 +00:00
accton Use __dead. 2011-08-29 20:38:53 +00:00
acpitools Use __dead. 2011-08-29 20:38:53 +00:00
altq Use __dead. 2011-08-29 20:38:53 +00:00
apm
apmd
arp New sentence, new line. Remove trailing whitespace. 2011-04-25 22:20:29 +00:00
bad144 NULL does not need a cast 2011-08-31 16:24:54 +00:00
bootp Use __dead. 2011-08-29 20:38:53 +00:00
btattach Mark types as static and usage as dead. 2011-08-27 22:17:53 +00:00
btconfig static + __dead 2011-08-27 22:22:01 +00:00
btdevctl static + __dead 2011-08-27 22:22:01 +00:00
bthcid static + __dead 2011-08-27 22:22:01 +00:00
btpand Use __dead. 2011-08-29 20:38:53 +00:00
catman Use __dead. 2011-08-29 20:38:53 +00:00
chroot - don't use an uninitialized grouplist (from Patrick Welche) 2011-09-20 14:28:52 +00:00
cnwctl
cpuctl Define _PATH_CPUCTL. 2011-09-27 11:24:20 +00:00
crash Use __dead 2011-08-31 13:32:36 +00:00
dev_mkdb static openinfo. dead, not unused usage. 2011-08-30 10:04:50 +00:00
dhcp this HAVE_PCC is not (any longer) required 2011-09-13 14:00:08 +00:00
diskpart ANSIfy + static + dead. 2011-08-30 10:12:06 +00:00
dumpfs static + __dead 2011-08-30 18:24:17 +00:00
dumplfs remove most of the remaining HAVE_GCC tests that are always true in 2011-06-20 07:43:56 +00:00
edquota Fix an implementation inconsistency with the prop_*_send_syscall() and 2011-09-30 22:08:18 +00:00
eeprom
envstat Use __dead 2011-08-31 13:32:36 +00:00
eshconfig ANSIfy + static + __dead 2011-08-30 18:28:59 +00:00
etcupdate
extattrctl Use __dead 2011-08-31 13:32:36 +00:00
faithd Use __dead 2011-09-16 15:39:25 +00:00
flashctl Properly use format strings 2011-05-24 13:01:53 +00:00
fssconfig static + __dead 2011-08-30 18:30:13 +00:00
fusermount
fwctl Use __dead 2011-08-31 13:32:36 +00:00
gpioctl Bump (c) year. 2011-09-15 11:46:32 +00:00
grfconfig
gspa Use __dead and __printflike 2011-08-30 18:53:41 +00:00
hdaudioctl Use __dead 2011-08-31 13:32:36 +00:00
ifmcstat
ifwatchd static + __dead 2011-08-30 18:57:38 +00:00
inetd Use __dead 2011-08-31 13:32:36 +00:00
installboot Use __dead 2011-08-31 13:32:36 +00:00
iopctl static + __dead 2011-08-30 18:57:38 +00:00
iostat static + __dead 2011-08-30 19:06:06 +00:00
ipf Requires -Wno-array-bounds with clang now. 2011-08-09 13:06:10 +00:00
ipwctl
irdaattach static + __dead 2011-08-30 19:06:06 +00:00
isdn NULL does not need a cast 2011-08-31 16:24:54 +00:00
iteconfig
iwictl
kgmon Add option arguments to descriptions. From YOMURA Masanori. 2011-04-25 22:46:35 +00:00
kvm_mkdb
lastlogin __dead + ANSIfy 2011-08-31 13:31:29 +00:00
ldpd Use __dead 2011-08-31 13:32:36 +00:00
link ANSIfy + __dead 2011-08-30 19:18:17 +00:00
lmcconfig
lockstat static + __dead 2011-08-30 19:20:20 +00:00
lpr NULL does not need a cast 2011-08-31 16:24:54 +00:00
lptctl
mailwrapper
makefs more fixes from martin 2011-08-23 19:57:24 +00:00
map-mbone
mdconfig
mdsetimage
memswitch
mld6query static + __dead 2011-08-30 21:18:11 +00:00
mlxctl avoid type punned warnings 2011-08-14 17:57:44 +00:00
mmcformat
mopd Fix build on mips (NOAOUT case). 2011-08-31 13:09:10 +00:00
mountd ANSIfy. Use __dead. 2011-08-30 20:00:58 +00:00
moused don't truncate time_t 2011-08-31 16:32:48 +00:00
mrinfo Use __dead 2011-08-31 13:32:36 +00:00
mrouted NULL does not need a cast 2011-08-31 16:24:54 +00:00
mscdlabel remove most of the remaining HAVE_GCC tests that are always true in 2011-06-20 07:43:56 +00:00
mtrace Use __dead 2011-08-31 13:32:36 +00:00
mtree Use __dead and __printflike 2011-08-29 20:37:43 +00:00
ndbootd Default to -Wno-sign-compare -Wno-pointer-sign for clang. 2011-05-26 12:56:24 +00:00
ndiscvt Input function is not used 2011-06-09 13:09:42 +00:00
ndp Use __dead 2011-08-31 13:32:36 +00:00
netgroup_mkdb
nfsd static + ANSIfy + __dead 2011-08-30 20:07:31 +00:00
npf Use __dead 2011-08-31 13:32:36 +00:00
ofctl
paxctl security(7), not (8). 2011-04-28 11:57:08 +00:00
pcictl static + __dead 2011-08-30 20:08:38 +00:00
perfused Serialize access to file size. We already have such a thing in the 2011-09-09 15:45:28 +00:00
pf Use __dead 2011-08-31 13:32:36 +00:00
postinstall /etc/defaults/rc.conf can be modified at build time by getting additional 2011-09-06 21:39:30 +00:00
powerd
pppd Bump the queue size to 32K 2011-09-24 20:19:39 +00:00
psrset Use __dead 2011-08-31 13:32:36 +00:00
pstat Use __dead 2011-08-31 13:32:36 +00:00
puffs Wording, from Snader_LB. 2011-09-15 11:52:09 +00:00
pvcsif static + __dead 2011-08-30 21:27:00 +00:00
pvctxctl Localize variables. Use __dead 2011-08-30 21:28:27 +00:00
pwd_mkdb NULL does not need a cast 2011-08-31 16:24:54 +00:00
quot KNF 2011-03-06 23:41:47 +00:00
quotacheck more code deduplication 2011-03-06 23:25:42 +00:00
quotactl Use __dead 2011-08-31 13:32:36 +00:00
quotaon Fix an implementation inconsistency with the prop_*_send_syscall() and 2011-09-30 22:08:18 +00:00
racoon Ignore warnings when building with clang for now. 2011-05-30 14:41:26 +00:00
racoonctl Ignore warnings when building with clang for now. 2011-05-30 14:41:26 +00:00
rarpd static + __printflike + __dead 2011-08-30 20:25:18 +00:00
rbootd Use __dead 2011-08-31 13:32:36 +00:00
rdate
repquota Fix an implementation inconsistency with the prop_*_send_syscall() and 2011-09-30 22:08:18 +00:00
rip6query ANSIfy + static + __dead 2011-08-30 21:17:06 +00:00
rmt
route6d NULL does not need a cast 2011-08-31 16:24:54 +00:00
rpc.bootparamd ANSIFy + static + __dead 2011-08-30 20:29:41 +00:00
rpc.lockd Apply casts to cases where xdrproc_t is expected but is not 2011-08-30 17:06:20 +00:00
rpc.pcnfsd reinstate NULL cast by request, where the NULL was being passed as a vararg 2011-09-01 07:18:50 +00:00
rpc.statd
rpc.yppasswdd NULL does not need a cast 2011-08-31 16:24:54 +00:00
rpcbind NULL does not need a cast 2011-08-31 16:24:54 +00:00
rtadvd remove most of the remaining HAVE_GCC tests that are always true in 2011-06-20 07:43:56 +00:00
rtsold Use __dead. 2011-08-29 20:38:53 +00:00
rwhod Use __dead 2011-08-31 13:32:36 +00:00
sa
schedctl Use __dead 2011-08-31 13:32:36 +00:00
screenblank static + __dead 2011-08-30 20:33:30 +00:00
sdpd Use __dead 2011-08-31 13:32:36 +00:00
services_mkdb Use __dead 2011-08-31 13:32:36 +00:00
sesd
sliplogin static + ANSIfy + __dead 2011-08-30 20:42:22 +00:00
spray static + ANSIfy + __dead 2011-08-30 20:45:31 +00:00
srtconfig
sti
sunlabel
sup remove an extra ".TP" that broke my build. 2011-09-22 07:30:04 +00:00
syslogd NULL does not need a cast 2011-08-31 16:24:54 +00:00
tadpolectl
tcpdchk NULL does not need a cast 2011-08-31 16:24:54 +00:00
tcpdmatch
tcpdrop
tcpdump remove most of the remaining HAVE_GCC tests that are always true in 2011-06-20 07:43:56 +00:00
timed Use __dead 2011-08-31 13:32:36 +00:00
tpctl
tprof
traceroute merge in traceroute1.4a12. Our sources are so different that it is really 2011-09-11 01:06:26 +00:00
traceroute6 Sync usage with manpage. 2011-05-15 00:06:23 +00:00
trpt static + __dead 2011-08-30 20:49:29 +00:00
unlink ANSIfy + __dead 2011-08-30 20:50:24 +00:00
usbdevs static + __dead 2011-08-30 20:51:29 +00:00
user NULL does not need a cast 2011-08-31 16:24:54 +00:00
veriexecgen security(7), not (8). 2011-04-28 11:23:57 +00:00
videomode
vipw NULL does not need a cast 2011-08-31 16:24:54 +00:00
vnconfig ANSIfy + static + __dead 2011-08-30 20:54:18 +00:00
wake Use __dead 2011-08-31 13:32:36 +00:00
wiconfig ANSIfy + static + __dead 2011-08-30 20:54:18 +00:00
wlanctl Use __dead 2011-08-31 13:32:36 +00:00
wsconscfg
wsfontload Use __dead 2011-08-31 13:32:36 +00:00
wsmoused a little undocumented debugging. 2011-05-31 03:37:02 +00:00
wsmuxctl static + __dead 2011-08-30 21:03:31 +00:00
ypbind Apply casts to cases where xdrproc_t is expected but is not 2011-08-30 17:06:20 +00:00
yppoll Apply casts to cases where xdrproc_t is expected but is not 2011-08-30 17:06:20 +00:00
ypserv static + __dead 2011-08-30 21:03:31 +00:00
ypset ANSIfy 2011-08-27 22:41:35 +00:00
zdump - no need for gcc-4.5 hacks 2011-08-16 07:52:32 +00:00
zic
Makefile Break up list of directories by first letter. 2011-08-01 23:19:52 +00:00
Makefile.inc