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
__aeabi_ldivmod: fix sign logic
[minix.git]
/
lib
/
libsys
/
sys_setgrant.c
blob
39d71969004e0e78d4bc9e67bd5ba8ec4c194d96
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
.
SG_ADDR
= (
char
*)
grants
;
11
m
.
SG_SIZE
=
ngrants
;
12
13
return
_kernel_call
(
SYS_SETGRANT
, &
m
);
14
}