Uninitialized vector entry?
[minix3.git] / lib / syslib / sys_times.c
blob5b5a7526a1af5ffffae10ef60997b5b9a8992193
1 #include "syslib.h"
3 PUBLIC int sys_times(proc, ptr)
4 int proc; /* proc whose times are needed */
5 clock_t ptr[5]; /* pointer to time buffer */
7 /* Fetch the accounting info for a proc. */
8 message m;
9 int r;
11 m.T_ENDPT = proc;
12 r = _taskcall(SYSTASK, SYS_TIMES, &m);
13 ptr[0] = m.T_USER_TIME;
14 ptr[1] = m.T_SYSTEM_TIME;
15 ptr[2] = m.T_CHILD_UTIME;
16 ptr[3] = m.T_CHILD_STIME;
17 ptr[4] = m.T_BOOT_TICKS;
18 return(r);