Skip to main content

Module sys_resource

Module sys_resource 

Source
Expand description

Structs§

rlimit
rusage

Constants§

PRIO_PGRP
Identifies the who argument as a process group ID.
PRIO_PROCESS
Identifies the who argument as a process ID.
PRIO_USER
Identifies the who argument 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_t indicating no limit.
RLIM_SAVED_CUR
A value of type rlim_t indicating an unrepresentable saved soft limit.
RLIM_SAVED_MAX
A value of type rlim_t indicating 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.