summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorRodrigo Tobar <rtobarc@gmail.com>2021-09-10 00:27:16 +0800
committerAndreas Kling <kling@serenityos.org>2021-09-10 00:00:03 +0200
commit2c22ff94b432ef3c15cac01bedd3be75cf3e96d5 (patch)
tree37e8594228d288eef0cf1ec6f1553b6e68c3eba9 /Userland/Libraries
parent84f0d2aece24a9ef2c3da6a67193ef82b95c921a (diff)
downloadserenity-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.h2
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;