secondary cache feature in vm.
[minix.git] / lib / libsys / getuptime2.c
blobad7a0497e6498544abf0d3fd70d19edf69b1095e
1 #include "sysutil.h"
3 /*===========================================================================*
4 * getuptime2 *
5 *===========================================================================*/
6 PUBLIC 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);