VM: simplify slab allocator
[minix.git] / lib / libsys / getuptime.c
blob24d2eb5e624bfea392edcfbdc30bc16934004910
1 #include "sysutil.h"
3 /*===========================================================================*
4 * getuptime *
5 *===========================================================================*/
6 int getuptime(ticks)
7 clock_t *ticks; /* uptime in ticks */
9 message m;
10 int s;
12 m.m_type = SYS_TIMES; /* request time information */
13 m.T_ENDPT = NONE; /* ignore process times */
14 s = _kernel_call(SYS_TIMES, &m);
15 *ticks = m.T_BOOT_TICKS;
16 return(s);