etc/services - sync with NetBSD-8
[minix.git] / minix / lib / libsys / sys_diagctl.c
blobcb6b08a211781879d720e42dbd76bacb01b27e95
2 #include "syslib.h"
3 #include "sysutil.h"
5 int sys_diagctl(int code, char *arg1, int arg2)
7 message m;
9 m.m_lsys_krn_sys_diagctl.code = code;
11 switch(code) {
12 case DIAGCTL_CODE_DIAG:
13 m.m_lsys_krn_sys_diagctl.buf = (vir_bytes)arg1;
14 m.m_lsys_krn_sys_diagctl.len = arg2;
15 break;
16 case DIAGCTL_CODE_STACKTRACE:
17 m.m_lsys_krn_sys_diagctl.endpt = (endpoint_t)arg2;
18 break;
19 case DIAGCTL_CODE_REGISTER:
20 break;
21 case DIAGCTL_CODE_UNREGISTER:
22 break;
23 default:
24 panic("Unknown SYS_DIAGCTL request %d\n", code);
27 return(_kernel_call(SYS_DIAGCTL, &m));