define RLIMIT_RTTIME, bump RLIMIT_NLIMITS

Submitted by Leah Neukirchen on Jan. 11, 2020, 7:16 p.m.

Details

Message ID 20200111191658.1507-2-leah@vuxu.org
State New
Series "define RLIMIT_RTTIME, bump RLIMIT_NLIMITS"
Headers show

Commit Message

Leah Neukirchen Jan. 11, 2020, 7:16 p.m.
This macro exists since Linux 2.6.25 and is defined in glibc since 2011.

Signed-off-by: Leah Neukirchen <leah@vuxu.org>
---
 include/sys/resource.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/include/sys/resource.h b/include/sys/resource.h
index e0c86ae3..3068328d 100644
--- a/include/sys/resource.h
+++ b/include/sys/resource.h
@@ -90,7 +90,8 @@  int prlimit(pid_t, int, const struct rlimit *, struct rlimit *);
 #define RLIMIT_MSGQUEUE 12
 #define RLIMIT_NICE    13
 #define RLIMIT_RTPRIO  14
-#define RLIMIT_NLIMITS 15
+#define RLIMIT_RTTIME  15
+#define RLIMIT_NLIMITS 16
 
 #define RLIM_NLIMITS RLIMIT_NLIMITS