resource.h, resource - definitions for resource operations
The <sys/resource.h> header defines the symbolic constants listed below as possible values of the which argument of getpriority() and setpriority(). See getpriority(3C).
identifies the who argument as a process ID
identifies the who argument as a process group ID
identifies the who argument as a user ID
The following type is defined through typedef:
unsigned integer type used for limit values
The following symbolic constants are defined:
a value of rlim_t indicating no limit
a value of type rlim_t indicating an unrepresentable saved hard limit
a value of type rlim_t indicating an unrepresentable saved soft limit
The symbolic constants listed below are defined as possible values of the who parameter of getrusage(). See getrusage(3C).
returns information about the current process
returns information about children of the current process
The <sys/resource.h> header defines the rlimit structure, which includes the following members:
rlim_t rlim_cur /* the current (soft) limit */ rlim_t rlim_max /* the hard limit */
The <sys/resource.h> header defines the rusage structure, which includes the following members:
struct timeval ru_utime /* user time used */ struct timeval ru_stime /* system time used */
The timeval structure is defined as described in <sys/time.h>.
The symbolic constants listed below are defined as possible values for the resource argument of getrlimit() and setrlimit(). See getrlimit(2).
limit on size of core dump file
limit on CPU time per process
limit on data segment size
limit on file size
limit on number of open files
limit on stack size
limit on address space size
The id_t type is defined through typedef as described in <sys/types.h>. See types.h(3HEAD).
Inclusion of the <sys/resource.h> header can also make visible all symbols from <sys/time.h>. See time.h(3HEAD).
See attributes(5) for descriptions of the following attributes: