times.c 304 B

123456789101112131415
  1. #include "lib.h"
  2. #include <sys/types.h>
  3. #include <sys/times.h>
  4. PUBLIC int times(buf)
  5. struct tms *buf;
  6. {
  7. int k;
  8. k = callm1(FS, TIMES, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR);
  9. buf->tms_utime = M.m4_l1;
  10. buf->tms_stime = M.m4_l2;
  11. buf->tms_cutime = M.m4_l3;
  12. buf->tms_cstime = M.m4_l4;
  13. return(k);
  14. }