Expand description
sys/resource.h implementation.
See https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_resource.h.html.
Structs§
Constants§
- PRIO_
PGRP - Identifies the
whoargument as a process group ID. - PRIO_
PROCESS - Identifies the
whoargument as a process ID. - PRIO_
USER - Identifies the
whoargument as a user ID. - RLIMIT_
AS - Limit on address space size.
- RLIMIT_
CORE - Limit on size of core image.
- RLIMIT_
CPU - Limit on CPU time per process.
- RLIMIT_
DATA - Limit on data segment size.
- RLIMIT_
FSIZE - Limit on file size.
- RLIMIT_
LOCKS - Non-POSIX, see https://www.man7.org/linux/man-pages/man2/getrlimit.2.html.
- RLIMIT_
MEMLOCK - Non-POSIX, see https://www.man7.org/linux/man-pages/man2/getrlimit.2.html.
- RLIMIT_
MSGQUEUE - Non-POSIX, see https://www.man7.org/linux/man-pages/man2/getrlimit.2.html.
- RLIMIT_
NICE - Non-POSIX, see https://www.man7.org/linux/man-pages/man2/getrlimit.2.html.
- RLIMIT_
NLIMITS - Non-POSIX, found in glibc.
- RLIMIT_
NOFILE - Limit on number of open files.
- RLIMIT_
NPROC - Non-POSIX, see https://www.man7.org/linux/man-pages/man2/getrlimit.2.html.
- RLIMIT_
RSS - Non-POSIX, see https://www.man7.org/linux/man-pages/man2/getrlimit.2.html.
- RLIMIT_
RTPRIO - Non-POSIX, see https://www.man7.org/linux/man-pages/man2/getrlimit.2.html.
- RLIMIT_
SIGPENDING - Non-POSIX, see https://www.man7.org/linux/man-pages/man2/getrlimit.2.html.
- RLIMIT_
STACK - Limit on stack size.
- RLIM_
INFINITY - A value of
rlim_tindicating no limit. - RLIM_
SAVED_ CUR - A value of type
rlim_tindicating an unrepresentable saved soft limit. - RLIM_
SAVED_ MAX - A value of type
rlim_tindicating an unrepresentable saved hard limit. - RUSAGE_
BOTH - Non-POSIX.
- RUSAGE_
CHILDREN - Returns information about children of the current process.
- RUSAGE_
SELF - Returns information about the current process.
- RUSAGE_
THREAD - Non-POSIX, see https://www.man7.org/linux/man-pages/man2/getrusage.2.html.
Functions§
- getpriority
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getpriority.html.
- getrlimit⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getrlimit.html.
- getrusage⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/getrusage.html.
- setpriority
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/setpriority.html.
- setrlimit⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/setrlimit.html.
Type Aliases§
- rlim_t
- Unsigned integer type used for limit values.