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
apropos
asa
at
audio
audiocfg
awk
banner
basename
bdes
biff
bthset
btkey
btpin
bzip2
bzip2recover
cal
calendar
cap_mkdb
cdplay
checknr
chflags
chpass
cksum
cmp
col
colcrt
colrm
column
comm
compress
config
crunch
csplit
ctags
cut
db
deroff
dirname
du
eject
elf2aout
elf2ecoff
env
error
expand
extattr
false
fdformat
fgen
find
finger
fmt
fold
fpr
from
fsplit
fstat
ftp
gcore
genassym
gencat
getconf
getent
getopt
gprof
grep
gzip
head
hesinfo
hexdump
iconv
id
indent
infocmp
innetgr
ipcrm
ipcs
join
jot
kdump
klist
ktrace
ktruss
lam
last
lastcomm
ldd
leave
lex
locale
locate
lock
logger
login
logname
look
lorder
m4
machine
mail
make
man
menuc
mesg
midiplay
mixerctl
mkcsmapper
mkdep
mkesdb
mkfifo
mklocale
mkstr
mktemp
mkubootimage
moduli
msgc
msgs
nbperf
nbsvtool
netgroup
netstat
newgrp
newsyslog
nfsstat
nice
nl
nohup
nvi
pagesize
passwd
paste
patch
pathchk
pkill
pmap
pmc
pr
printenv
printf
progress
pwhash
qsubst
quota Fix an implementation inconsistency with the prop_*_send_syscall() and 2011-09-30 22:08:18 +00:00
radioctl
rdist
renice
rev
revoke
rfcomm_sppd
rlogin
rpcgen
rpcinfo
rs
rsh
rump_allserver
rump_dhcpclient
rump_halt
rump_server
rup
ruptime
rusers
rwall
rwho
script
sdiff
sdpquery
sed
seq
shar
shlock
shmif_dumpbus
showmount
shuffle
skey
skeyinfo
skeyinit
sockstat
soelim
sort
spell
split
stat
su
systat
tabs
tail
talk
tcopy
tee
telnet
tftp
tic
time
tip
touch
tpfmt
tput
tr
true
tset
tsort
tty
ul
uname
unexpand
unifdef
uniq
units
unvis
unzip
usbhidaction
usbhidctl
users
utoppya
uudecode
uuencode
uuidgen
vacation
vgrind
videoctl
vis
vmstat
vndcompress
w
wall
wc
what
whatis
whereis
who
whois
window
write
xargs
xinstall
xlint
xstr
yes
ypcat
ypmatch
ypwhich
Makefile
Makefile.inc