minix/lib/libsys/sys_setgrant.c

15 lines
217 B
C
Raw Normal View History

2006-06-23 17:35:05 +02:00
#include "syslib.h"
#include <minix/safecopies.h>
int sys_setgrant(cp_grant_t *grants, int ngrants)
{
message m;
m.SG_ADDR = (char *) grants;
m.SG_SIZE = ngrants;
return _kernel_call(SYS_SETGRANT, &m);
2006-06-23 17:35:05 +02:00
}