some coverity fixes.
[minix.git] / lib / libc / sys-minix / cprofile.c
bloba9bfd1189e41f4dc4d2ba21de7e18a9a7ef536ce
1 #include <sys/cdefs.h>
2 #include "namespace.h"
4 #ifdef __weak_alias
5 #define cprofile _cprofile
6 __weak_alias(cprofile, _cprofile)
7 #endif
9 #include <lib.h>
10 #include <minix/profile.h>
12 int cprofile(int action, int size, void *ctl_ptr, void *mem_ptr)
14 message m;
16 m.PROF_ACTION = action;
17 m.PROF_MEM_SIZE = size;
18 m.PROF_CTL_PTR = (void *) ctl_ptr;
19 m.PROF_MEM_PTR = (void *) mem_ptr;
21 return _syscall(PM_PROC_NR, CPROF, &m);