xref: /minix3/minix/lib/libsys/sys_setgrant.c (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1*433d6423SLionel Sambuc 
2*433d6423SLionel Sambuc #include "syslib.h"
3*433d6423SLionel Sambuc 
4*433d6423SLionel Sambuc #include <minix/safecopies.h>
5*433d6423SLionel Sambuc 
sys_setgrant(cp_grant_t * grants,int ngrants)6*433d6423SLionel Sambuc int sys_setgrant(cp_grant_t *grants, int ngrants)
7*433d6423SLionel Sambuc {
8*433d6423SLionel Sambuc   message m;
9*433d6423SLionel Sambuc 
10*433d6423SLionel Sambuc   m.m_lsys_krn_sys_setgrant.addr = (vir_bytes)grants;
11*433d6423SLionel Sambuc   m.m_lsys_krn_sys_setgrant.size = ngrants;
12*433d6423SLionel Sambuc 
13*433d6423SLionel Sambuc   return _kernel_call(SYS_SETGRANT, &m);
14*433d6423SLionel Sambuc }
15