9 * This is the implementation for the function to
10 * invoke the interval timer retrieval system call.
12 int getitimer(int which
, struct itimerval
*value
)
16 memset(&m
, 0, sizeof(m
));
17 m
.m_lc_pm_itimer
.which
= which
;
18 m
.m_lc_pm_itimer
.value
= 0; /* only retrieve the timer */
19 m
.m_lc_pm_itimer
.ovalue
= (vir_bytes
)value
;
21 return _syscall(PM_PROC_NR
, PM_ITIMER
, &m
);
24 #if defined(__minix) && defined(__weak_alias)
25 __weak_alias(getitimer
, __getitimer50
)