VM: full munmap
[minix.git] / lib / libsys / getuptime2.c
blob2526646023495132a21e0a0b3a4d9fb2619af05c
1 #include "sysutil.h"
3 /*===========================================================================*
4 * getuptime2 *
5 *===========================================================================*/
6 int getuptime2(ticks, boottime)
7 clock_t *ticks; /* uptime in ticks */
8 time_t *boottime;
10 message m;
11 int s;
13 m.m_type = SYS_TIMES; /* request time information */
14 m.T_ENDPT = NONE; /* ignore process times */
15 s = _kernel_call(SYS_TIMES, &m);
16 *ticks = m.T_BOOT_TICKS;
17 *boottime = m.T_BOOTTIME;
18 return(s);