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 Sambucint 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