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
move benchmarks to their own dir.
[minix.git]
/
lib
/
syslib
/
sys_sysctl.c
blob
80ee821c3ebf7c5d6acf8157cd051853dc5d0c73
1
2
#include
"syslib.h"
3
4
PUBLIC
int
sys_sysctl
(
int
code
,
char
*
arg1
,
int
arg2
)
5
{
6
message m
;
7
8
m
.
SYSCTL_CODE
=
code
;
9
m
.
SYSCTL_ARG1
=
arg1
;
10
m
.
SYSCTL_ARG2
=
arg2
;
11
12
return
(
_taskcall
(
SYSTASK
,
SYS_SYSCTL
, &
m
));
13
14
}
15
16
PUBLIC
int
sys_sysctl_stacktrace
(
endpoint_t ep
)
17
{
18
return
sys_sysctl
(
SYSCTL_CODE_STACKTRACE
,
NULL
,
ep
);
19
}
20