minix/lib/libsys/sys_sysctl.c

21 lines
303 B
C
Raw Normal View History

#include "syslib.h"
2012-03-25 20:25:53 +02:00
int sys_sysctl(int code, char *arg1, int arg2)
{
message m;
m.SYSCTL_CODE = code;
m.SYSCTL_ARG1 = arg1;
m.SYSCTL_ARG2 = arg2;
return(_kernel_call(SYS_SYSCTL, &m));
}
2012-03-25 20:25:53 +02:00
int sys_sysctl_stacktrace(endpoint_t ep)
{
return sys_sysctl(SYSCTL_CODE_STACKTRACE, NULL, ep);
}