some coverity fixes.
[minix.git] / lib / libc / sys-minix / getitimer.c
blobbb8921027b7302916fd0d5c0023c32a87eb0593e
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <sys/time.h>
7 /*
8 * This is the implementation for the function to
9 * invoke the interval timer retrieval system call.
11 int getitimer(int which, struct itimerval *value)
13 message m;
15 m.m1_i1 = which;
16 m.m1_p1 = NULL; /* only retrieve the timer */
17 m.m1_p2 = (char *) value;
19 return _syscall(PM_PROC_NR, ITIMER, &m);