mailing list of musl libc
 help / color / mirror / Atom feed
* [PATCH] define RLIMIT_RTTIME, bump RLIMIT_NLIMITS
@ 2020-01-11 18:42 Leah Neukirchen
  2020-01-11 19:16 ` [PATCH v2] " Leah Neukirchen
  2020-01-11 19:16 ` [PATCH] " Leah Neukirchen
  0 siblings, 2 replies; 3+ messages in thread
From: Leah Neukirchen @ 2020-01-11 18:42 UTC (permalink / raw)
  To: musl

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(-)

diff --git a/include/sys/resource.h b/include/sys/resource.h
index e0c86ae3..392a38f6 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  16
+#define RLIMIT_NLIMITS 16
 
 #define RLIM_NLIMITS RLIMIT_NLIMITS
 
-- 
2.24.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2] define RLIMIT_RTTIME, bump RLIMIT_NLIMITS
  2020-01-11 18:42 [PATCH] define RLIMIT_RTTIME, bump RLIMIT_NLIMITS Leah Neukirchen
@ 2020-01-11 19:16 ` Leah Neukirchen
  2020-01-11 19:16 ` [PATCH] " Leah Neukirchen
  1 sibling, 0 replies; 3+ messages in thread
From: Leah Neukirchen @ 2020-01-11 19:16 UTC (permalink / raw)
  To: musl

As pointed out by veremitz, the first version of the patch got the
value of RLIMIT_RTTIME wrong.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] define RLIMIT_RTTIME, bump RLIMIT_NLIMITS
  2020-01-11 18:42 [PATCH] define RLIMIT_RTTIME, bump RLIMIT_NLIMITS Leah Neukirchen
  2020-01-11 19:16 ` [PATCH v2] " Leah Neukirchen
@ 2020-01-11 19:16 ` Leah Neukirchen
  1 sibling, 0 replies; 3+ messages in thread
From: Leah Neukirchen @ 2020-01-11 19:16 UTC (permalink / raw)
  To: musl

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(-)

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
 
-- 
2.24.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-11 19:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-11 18:42 [PATCH] define RLIMIT_RTTIME, bump RLIMIT_NLIMITS Leah Neukirchen
2020-01-11 19:16 ` [PATCH v2] " Leah Neukirchen
2020-01-11 19:16 ` [PATCH] " Leah Neukirchen

mailing list of musl libc

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/musl

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 musl musl/ http://inbox.vuxu.org/musl \
		musl@inbox.vuxu.org
	public-inbox-index musl

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.musl


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/musl/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git