1: /*
   2:  * Copyright (c) 1982, 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)resource.h	7.1 (Berkeley) 6/4/86
   7:  */
   8: 
   9: /*
  10:  * Process priority specifications to get/setpriority.
  11:  */
  12: #define PRIO_MIN    -20
  13: #define PRIO_MAX    20
  14: 
  15: #define PRIO_PROCESS    0
  16: #define PRIO_PGRP   1
  17: #define PRIO_USER   2
  18: 
  19: /*
  20:  * Resource utilization information.
  21:  */
  22: 
  23: #define RUSAGE_SELF 0
  24: #define RUSAGE_CHILDREN -1
  25: 
  26: struct  rusage {
  27:     struct timeval ru_utime;    /* user time used */
  28:     struct timeval ru_stime;    /* system time used */
  29:     long    ru_maxrss;
  30: #define ru_first    ru_ixrss
  31:     long    ru_ixrss;       /* integral shared memory size */
  32:     long    ru_idrss;       /* integral unshared data " */
  33:     long    ru_isrss;       /* integral unshared stack " */
  34:     long    ru_minflt;      /* page reclaims */
  35:     long    ru_majflt;      /* page faults */
  36:     long    ru_nswap;       /* swaps */
  37:     long    ru_inblock;     /* block input operations */
  38:     long    ru_oublock;     /* block output operations */
  39:     long    ru_msgsnd;      /* messages sent */
  40:     long    ru_msgrcv;      /* messages received */
  41:     long    ru_nsignals;        /* signals received */
  42:     long    ru_nvcsw;       /* voluntary context switches */
  43:     long    ru_nivcsw;      /* involuntary " */
  44: #define ru_last     ru_nivcsw
  45: };
  46: 
  47: /*
  48:  * Resource limits
  49:  */
  50: #define RLIMIT_CPU  0       /* cpu time in milliseconds */
  51: #define RLIMIT_FSIZE    1       /* maximum file size */
  52: #define RLIMIT_DATA 2       /* data size */
  53: #define RLIMIT_STACK    3       /* stack size */
  54: #define RLIMIT_CORE 4       /* core file size */
  55: #define RLIMIT_RSS  5       /* resident set size */
  56: 
  57: #define RLIM_NLIMITS    6       /* number of resource limits */
  58: 
  59: #define RLIM_INFINITY   0x7fffffff
  60: 
  61: struct rlimit {
  62:     int rlim_cur;       /* current (soft) limit */
  63:     int rlim_max;       /* maximum value for rlim_cur */
  64: };

Defined struct's

rlimit defined in line 61; used 2 times
rusage defined in line 26; used 4 times

Defined macros

PRIO_MAX defined in line 13; never used
PRIO_MIN defined in line 12; never used
PRIO_PGRP defined in line 16; never used
PRIO_PROCESS defined in line 15; never used
PRIO_USER defined in line 17; never used
RLIMIT_CORE defined in line 54; never used
RLIMIT_CPU defined in line 50; never used
RLIMIT_DATA defined in line 52; never used
RLIMIT_FSIZE defined in line 51; never used
RLIMIT_RSS defined in line 55; never used
RLIMIT_STACK defined in line 53; never used
RLIM_INFINITY defined in line 59; never used
RLIM_NLIMITS defined in line 57; used 1 times
RUSAGE_CHILDREN defined in line 24; never used
RUSAGE_SELF defined in line 23; never used
ru_first defined in line 30; never used
ru_last defined in line 44; never used
Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 886
Valid CSS Valid XHTML 1.0 Strict