.th K_set_priv II 4/21/86
.sh NAME
K_set_priv - set privilege level of object
.sh "MODULA SYNOPSIS"
.nh
.na
 CONST objSeid: seid;
.br
 CONST priv: priv_struct;
.br
 VAR stat: K_err_num;
.br
 . . .
.br
 stat := NK_set_priv(objSeid, priv);
.br
.hy
.ad
.sp
.sh "C SYNOPSIS"
.nh
.na
 seid objSeid;
.br
 priv_struct priv;
.br
 int stat;
.br
 . . .
.br
 stat = K_set_priv(objSeid, priv);
.br
.hy
.ad
.sh DESCRIPTION
K_set_priv sets the privileges of the object specified by the first
argument to the privileges specified by the second argument.  Calling
process must have the PrivSetPriv privilege.
.sh EXCEPTIONS
.lp 22 15
XnoObj	Object does not exist, or process cannot determine existence
due to access checks.
.lp 22 15
XnoSPriv	Process does not have PrivSetPriv privilege.
.i0
.sh "SEE ALSO"
priv_struct(IIa)
