resource.h 345 B

1234567891011121314151617
  1. #ifndef _SYS_RESOURCE_H_
  2. #define _SYS_RESOURCE_H_
  3. #include <sys/time.h>
  4. #define RUSAGE_SELF 0 /* calling process */
  5. #define RUSAGE_CHILDREN -1 /* terminated child processes */
  6. struct rusage {
  7. struct timeval ru_utime; /* user time used */
  8. struct timeval ru_stime; /* system time used */
  9. };
  10. int getrusage (int, struct rusage*);
  11. #endif