|
|
1.1 root 1: /* resource.h 6.1 83/07/29 */
2:
3: /*
4: * Process priority specifications to get/setpriority.
5: */
6: #define PRIO_MIN -20
7: #define PRIO_MAX 20
8:
9: #define PRIO_PROCESS 0
10: #define PRIO_PGRP 1
11: #define PRIO_USER 2
12:
13: /*
14: * Resource utilization information.
15: */
16:
17: #define RUSAGE_SELF 0
18: #define RUSAGE_CHILDREN -1
19:
20: struct rusage {
21: struct timeval ru_utime; /* user time used */
22: struct timeval ru_stime; /* system time used */
23: long ru_maxrss;
24: #define ru_first ru_ixrss
25: long ru_ixrss; /* integral shared memory size */
26: long ru_idrss; /* integral unshared data " */
27: long ru_isrss; /* integral unshared stack " */
28: long ru_minflt; /* page reclaims */
29: long ru_majflt; /* page faults */
30: long ru_nswap; /* swaps */
31: long ru_inblock; /* block input operations */
32: long ru_oublock; /* block output operations */
33: long ru_msgsnd; /* messages sent */
34: long ru_msgrcv; /* messages received */
35: long ru_nsignals; /* signals received */
36: long ru_nvcsw; /* voluntary context switches */
37: long ru_nivcsw; /* involuntary " */
38: #define ru_last ru_nivcsw
39: };
40:
41: /*
42: * Resource limits
43: */
44: #define RLIMIT_CPU 0 /* cpu time in milliseconds */
45: #define RLIMIT_FSIZE 1 /* maximum file size */
46: #define RLIMIT_DATA 2 /* data size */
47: #define RLIMIT_STACK 3 /* stack size */
48: #define RLIMIT_CORE 4 /* core file size */
49: #define RLIMIT_RSS 5 /* resident set size */
50:
51: #define RLIM_NLIMITS 6 /* number of resource limits */
52:
53: #define RLIM_INFINITY 0x7fffffff
54:
55: struct rlimit {
56: int rlim_cur; /* current (soft) limit */
57: int rlim_max; /* maximum value for rlim_cur */
58: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.