repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
etc/services - sync with NetBSD-8
[minix.git]
/
minix
/
lib
/
libsys
/
sys_setgrant.c
blob
f09df89bdaf4d17312e99ea1091b9a5199f3fc43
1
2
#include
"syslib.h"
3
4
#include <minix/safecopies.h>
5
6
int
sys_setgrant
(
cp_grant_t
*
grants
,
int
ngrants
)
7
{
8
message m
;
9
10
m
.
m_lsys_krn_sys_setgrant
.
addr
= (
vir_bytes
)
grants
;
11
m
.
m_lsys_krn_sys_setgrant
.
size
=
ngrants
;
12
13
return
_kernel_call
(
SYS_SETGRANT
, &
m
);
14
}