vm: include no-caching bits in PTF_ALLFLAGS for flags sanity check.
[minix.git] / lib / libc / posix / _times.c
blob4504e12087686bd5e2ba469e4e5bfb31874027e4
1 #include <lib.h>
2 #define times _times
3 #include <sys/times.h>
5 PUBLIC clock_t times(buf)
6 struct tms *buf;
8 message m;
10 m.m4_l5 = 0; /* return this if system is pre-1.6 */
11 if (_syscall(MM, TIMES, &m) < 0) return( (clock_t) -1);
12 buf->tms_utime = m.m4_l1;
13 buf->tms_stime = m.m4_l2;
14 buf->tms_cutime = m.m4_l3;
15 buf->tms_cstime = m.m4_l4;
16 return(m.m4_l5);