isblank() implementation.
[minix.git] / lib / libc / posix / _getitimer.c
bloba01c3449d4f6ef6257bbf453c889ce63e28f0833
1 #include <lib.h>
2 #define getitimer _getitimer
3 #include <sys/time.h>
5 /*
6 * This is the implementation for the function to
7 * invoke the interval timer retrieval system call.
8 */
9 int getitimer(int which, struct itimerval *value)
11 message m;
13 m.m1_i1 = which;
14 m.m1_p1 = NULL; /* only retrieve the timer */
15 m.m1_p2 = (char *) value;
17 return _syscall(PM_PROC_NR, ITIMER, &m);