• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionca4b8182186b246f925ada5eb22bf49a04249358 (tree)
Zeit2022-05-21 00:01:04
AutorRomain Naour <romain.naour@gmai...>
CommiterWaldemar Brodkorb

Log Message

define RLIMIT_RTTIME, bump RLIMIT_NLIMITS

This macro exists since Linux 2.6.25 [1] and is defined in glibc
since 2.14 [2] for sparc and most supported architectures.

RLIMIT_RTTIME has been added later for mips [3] and alpha [4].

For example, RLIMIT_RTTIME is needed to build qemu 7.0.0 with
Linux user-land emulation support [5].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=78f2c7db6068fd6ef75b8c120f04a388848eacb5
[2] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=67f86a251e0d36107fe28999281d46e76941c7b9
[3] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=8969f4df1a526aa60dd0bc1c4736cf02104d4a05
[4] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=53c2cb7641bd866398156625ef672bbd2d78a0d8
[5] https://git.qemu.org/?p=qemu.git;a=commitdiff;h=244fd08323088db73590ff2317dfe86f810b51d7

Signed-off-by: Romain Naour <romain.naour@gmail.com>

Ändern Zusammenfassung

Diff

--- a/libc/sysdeps/linux/alpha/bits/resource.h
+++ b/libc/sysdeps/linux/alpha/bits/resource.h
@@ -99,7 +99,13 @@ enum __rlimit_resource
9999 __RLIMIT_RTPRIO = 14,
100100 #define RLIMIT_RTPRIO __RLIMIT_RTPRIO
101101
102- __RLIMIT_NLIMITS = 15,
102+ /* Maximum CPU time in µs that a process scheduled under a real-time
103+ scheduling policy may consume without making a blocking system
104+ call before being forcibly descheduled. */
105+ __RLIMIT_RTTIME = 15,
106+#define RLIMIT_RTTIME __RLIMIT_RTTIME
107+
108+ __RLIMIT_NLIMITS = 16,
103109 __RLIM_NLIMITS = __RLIMIT_NLIMITS
104110 #define RLIMIT_NLIMITS __RLIMIT_NLIMITS
105111 #define RLIM_NLIMITS __RLIM_NLIMITS
--- a/libc/sysdeps/linux/common/bits/resource.h
+++ b/libc/sysdeps/linux/common/bits/resource.h
@@ -99,7 +99,13 @@ enum __rlimit_resource
9999 __RLIMIT_RTPRIO = 14,
100100 #define RLIMIT_RTPRIO __RLIMIT_RTPRIO
101101
102- __RLIMIT_NLIMITS = 15,
102+ /* Maximum CPU time in µs that a process scheduled under a real-time
103+ scheduling policy may consume without making a blocking system
104+ call before being forcibly descheduled. */
105+ __RLIMIT_RTTIME = 15,
106+#define RLIMIT_RTTIME __RLIMIT_RTTIME
107+
108+ __RLIMIT_NLIMITS = 16,
103109 __RLIM_NLIMITS = __RLIMIT_NLIMITS
104110 #define RLIMIT_NLIMITS __RLIMIT_NLIMITS
105111 #define RLIM_NLIMITS __RLIM_NLIMITS
--- a/libc/sysdeps/linux/mips/bits/resource.h
+++ b/libc/sysdeps/linux/mips/bits/resource.h
@@ -99,7 +99,13 @@ enum __rlimit_resource
9999 __RLIMIT_RTPRIO = 14,
100100 #define RLIMIT_RTPRIO __RLIMIT_RTPRIO
101101
102- __RLIMIT_NLIMITS = 15,
102+ /* Maximum CPU time in µs that a process scheduled under a real-time
103+ scheduling policy may consume without making a blocking system
104+ call before being forcibly descheduled. */
105+ __RLIMIT_RTTIME = 15,
106+#define RLIMIT_RTTIME __RLIMIT_RTTIME
107+
108+ __RLIMIT_NLIMITS = 16,
103109 __RLIM_NLIMITS = __RLIMIT_NLIMITS
104110 #define RLIMIT_NLIMITS __RLIMIT_NLIMITS
105111 #define RLIM_NLIMITS __RLIM_NLIMITS
--- a/libc/sysdeps/linux/sparc/bits/resource.h
+++ b/libc/sysdeps/linux/sparc/bits/resource.h
@@ -98,7 +98,13 @@ enum __rlimit_resource
9898 __RLIMIT_RTPRIO = 14,
9999 #define RLIMIT_RTPRIO __RLIMIT_RTPRIO
100100
101- __RLIMIT_NLIMITS = 15,
101+ /* Maximum CPU time in µs that a process scheduled under a real-time
102+ scheduling policy may consume without making a blocking system
103+ call before being forcibly descheduled. */
104+ __RLIMIT_RTTIME = 15,
105+#define RLIMIT_RTTIME __RLIMIT_RTTIME
106+
107+ __RLIMIT_NLIMITS = 16,
102108 __RLIM_NLIMITS = __RLIMIT_NLIMITS
103109 #define RLIMIT_NLIMITS __RLIMIT_NLIMITS
104110 #define RLIM_NLIMITS __RLIM_NLIMITS
--- a/libc/sysdeps/linux/sparc64/bits/resource.h
+++ b/libc/sysdeps/linux/sparc64/bits/resource.h
@@ -98,7 +98,13 @@ enum __rlimit_resource
9898 __RLIMIT_RTPRIO = 14,
9999 #define RLIMIT_RTPRIO __RLIMIT_RTPRIO
100100
101- __RLIMIT_NLIMITS = 15,
101+ /* Maximum CPU time in µs that a process scheduled under a real-time
102+ scheduling policy may consume without making a blocking system
103+ call before being forcibly descheduled. */
104+ __RLIMIT_RTTIME = 15,
105+#define RLIMIT_RTTIME __RLIMIT_RTTIME
106+
107+ __RLIMIT_NLIMITS = 16,
102108 __RLIM_NLIMITS = __RLIMIT_NLIMITS
103109 #define RLIMIT_NLIMITS __RLIMIT_NLIMITS
104110 #define RLIM_NLIMITS __RLIM_NLIMITS