1resource.h(3HEAD)                   Headers                  resource.h(3HEAD)
2
3
4

NAME

6       resource.h, resource - definitions for resource operations
7

SYNOPSIS

9       #include <sys/resource.h>
10
11

DESCRIPTION

13       The <sys/resource.h> header defines the symbolic constants listed below
14       as possible values of the which argument of getpriority() and setprior‐
15       ity(). See getpriority(3C).
16
17       PRIO_PROCESS    identifies the who argument as a process ID
18
19
20       PRIO_PGRP       identifies the who argument as a process group ID
21
22
23       PRIO_USER       identifies the who argument as a user  ID
24
25
26
27       The following type is defined through typedef:
28
29       rlim_t    unsigned integer type used for limit values
30
31
32
33       The following symbolic constants are defined:
34
35       RLIM_INFINITY     a value of rlim_t indicating no limit
36
37
38       RLIM_SAVED_MAX    a  value of type rlim_t indicating an unrepresentable
39                         saved hard limit
40
41
42       RLIM_SAVED_CUR    a value of type rlim_t indicating an  unrepresentable
43                         saved soft limit
44
45
46
47       The  symbolic  constants listed below are defined as possible values of
48       the who parameter of getrusage(). See getrusage(3C).
49
50       RUSAGE_SELF        returns information about the current process
51
52
53       RUSAGE_CHILDREN    returns information about children  of  the  current
54                          process
55
56
57
58       The   <sys/resource.h>  header  defines  the  rlimit  structure,  which
59       includes  the following members:
60
61         rlim_t rlim_cur     /* the current (soft) limit */
62         rlim_t rlim_max     /* the hard limit */
63
64
65
66       The  <sys/resource.h>  header  defines  the  rusage  structure,   which
67       includes the following members:
68
69         struct timeval ru_utime     /* user time used */
70         struct timeval ru_stime     /* system time used */
71
72
73
74       The timeval structure is defined as described in <sys/time.h>.
75
76
77       The  symbolic constants listed below are defined as possible values for
78       the resource argument of getrlimit() and setrlimit(). See getrlimit(2).
79
80       RLIMIT_CORE      limit on size of core dump file
81
82
83       RLIMIT_CPU       limit on CPU time per process
84
85
86       RLIMIT_DATA      limit on data segment size
87
88
89       RLIMIT_FSIZE     limit on file size
90
91
92       RLIMIT_NOFILE    limit on number of open files
93
94
95       RLIMIT_STACK     limit on stack size
96
97
98       RLIMIT_AS        limit on address space size
99
100
101
102       The id_t type is defined through typedef as described in <sys/types.h>.
103       See types.h(3HEAD).
104
105
106       Inclusion of the <sys/resource.h> header can also make visible all sym‐
107       bols from <sys/time.h>. See time.h(3HEAD).
108

ATTRIBUTES

110       See attributes(5) for descriptions of the following attributes:
111
112
113
114
115       ┌─────────────────────────────┬─────────────────────────────┐
116       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
117       ├─────────────────────────────┼─────────────────────────────┤
118       │Interface Stability          │Standard                     │
119       └─────────────────────────────┴─────────────────────────────┘
120

SEE ALSO

122       getrlimit(2),    getpriority(3C),    time.h(3HEAD),     types.h(3HEAD),
123       attributes(5), standards(5)
124
125
126
127SunOS 5.11                        10 Sep 2004                resource.h(3HEAD)
Impressum