diff options
author | Rodrigo Tobar <rtobarc@gmail.com> | 2021-09-10 00:27:16 +0800 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-10 00:00:03 +0200 |
commit | 2c22ff94b432ef3c15cac01bedd3be75cf3e96d5 (patch) | |
tree | 37e8594228d288eef0cf1ec6f1553b6e68c3eba9 /Userland/Libraries | |
parent | 84f0d2aece24a9ef2c3da6a67193ef82b95c921a (diff) | |
download | serenity-2c22ff94b432ef3c15cac01bedd3be75cf3e96d5.zip |
LibC: Define RLIM_NLIMITS constant
This is required by programs that want to either iterate over all
resources, or check that a resource identifier is valid before passing
it down.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibC/sys/resource.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/sys/resource.h b/Userland/Libraries/LibC/sys/resource.h index 63adcfeb60..488b0de6d6 100644 --- a/Userland/Libraries/LibC/sys/resource.h +++ b/Userland/Libraries/LibC/sys/resource.h @@ -44,6 +44,8 @@ int getrusage(int who, struct rusage* usage); #define RLIMIT_STACK 6 #define RLIMIT_AS 7 +#define RLIM_NLIMITS 8 + #define RLIM_INFINITY SIZE_MAX typedef size_t rlim_t; |