make vfs & filesystems use failable copying
[minix3.git] / lib / libsys / sys_trace.c
blob483e16783543048b7824bfef9a5a460569770ff3
1 #include "syslib.h"
3 int sys_trace(req, proc_ep, addr, data_p)
4 int req;
5 endpoint_t proc_ep;
6 long addr, *data_p;
8 message m;
9 int r;
11 m.CTL_ENDPT = proc_ep;
12 m.CTL_REQUEST = req;
13 m.CTL_ADDRESS = addr;
14 if (data_p) m.CTL_DATA = *data_p;
15 r = _kernel_call(SYS_TRACE, &m);
16 if (data_p) *data_p = m.CTL_DATA;
17 return(r);