Browse Source

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.
Rodrigo Tobar 3 years ago
parent
commit
2c22ff94b4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Userland/Libraries/LibC/sys/resource.h

+ 2 - 0
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;