ack/mach/minix/libsys/times.c

16 lines
304 B
C
Raw Normal View History

1988-04-19 09:34:37 +00:00
#include "lib.h"
#include <sys/types.h>
#include <sys/times.h>
PUBLIC int times(buf)
struct tms *buf;
{
int k;
k = callm1(FS, TIMES, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR);
buf->tms_utime = M.m4_l1;
buf->tms_stime = M.m4_l2;
buf->tms_cutime = M.m4_l3;
buf->tms_cstime = M.m4_l4;
return(k);
}