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
more pid queries; PM field macros; vm stubs
[minix.git]
/
lib
/
other
/
_vm_set_priv.c
blob
a0e6980c2779120d51388b02f3bdd790b9b7cdf3
1
#include <lib.h>
2
#define vm_set_priv _vm_set_priv
3
#include <unistd.h>
4
5
PUBLIC
int
vm_set_priv
(
int
nr
,
void
*
buf
)
6
{
7
message m
;
8
m
.
VM_RS_NR
=
nr
;
9
m
.
VM_RS_BUF
= (
long
)
buf
;
10
return
_syscall
(
VM_PROC_NR
,
VM_RS_SET_PRIV
, &
m
);
11
}