__aeabi_ldivmod: fix sign logic
[minix.git] / lib / libc / sys-minix / getitimer.c
blobe6f382f0e313c97aa8b31019cbbed9409f26b069
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);
22 #if defined(__minix) && defined(__weak_alias)
23 __weak_alias(getitimer, __getitimer50)
24 #endif