home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / djgpp / include / sys / resource.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-03-03  |  1.7 KB  |  51 lines

  1. /* This is file RESOURCE.H */
  2. /*
  3. ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  4. **
  5. ** This file is distributed under the terms listed in the document
  6. ** "copying.dj", available from DJ Delorie at the address above.
  7. ** A copy of "copying.dj" should accompany this file; if not, a copy
  8. ** should be available from where this file was obtained.  This file
  9. ** may not be distributed without a verbatim copy of "copying.dj".
  10. **
  11. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  12. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. */
  14.  
  15. #ifndef _SYS_RESOURCE_H_
  16. #define _SYS_RESOURCE_H_
  17.  
  18. #include <sys/time.h>
  19.  
  20. #define    RUSAGE_SELF    0        /* calling process */
  21. #define    RUSAGE_CHILDREN    -1        /* terminated child processes */
  22.  
  23. struct rusage {
  24.     struct timeval ru_utime;    /* user time used */
  25.     struct timeval ru_stime;    /* system time used */
  26.     long ru_maxrss;            /* integral max resident set size */
  27.     long ru_ixrss;            /* integral shared text memory size */
  28.     long ru_idrss;            /* integral unshared data size */
  29.     long ru_isrss;            /* integral unshared stack size */
  30.     long ru_minflt;            /* page reclaims */
  31.     long ru_majflt;            /* page faults */
  32.     long ru_nswap;            /* swaps */
  33.     long ru_inblock;        /* block input operations */
  34.     long ru_oublock;        /* block output operations */
  35.     long ru_msgsnd;            /* messages sent */
  36.     long ru_msgrcv;            /* messages received */
  37.     long ru_nsignals;        /* signals received */
  38.     long ru_nvcsw;            /* voluntary context switches */
  39.     long ru_nivcsw;            /* involuntary context switches */
  40. };
  41.  
  42.  
  43. #ifdef __cplusplus
  44. extern "C" int getrusage(int who, struct rusage *rusage);
  45. #else
  46. extern int getrusage(int who, struct rusage *rusage);
  47. #endif
  48.  
  49. #endif
  50.  
  51.