[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 8/8] linux-user/syscall: Translate TARGET_RLIMIT_RTTIME
From: |
Laurent Vivier |
Subject: |
[PULL 8/8] linux-user/syscall: Translate TARGET_RLIMIT_RTTIME |
Date: |
Mon, 7 Feb 2022 09:27:59 +0100 |
From: Serge Belyshev <belyshev@depni.sinp.msu.ru>
Signed-off-by: Serge Belyshev <belyshev@depni.sinp.msu.ru>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <87a6fel3w8.fsf_-_@depni.sinp.msu.ru>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
linux-user/generic/target_resource.h | 1 +
linux-user/syscall.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/linux-user/generic/target_resource.h
b/linux-user/generic/target_resource.h
index f04c93b12596..539d8c46772e 100644
--- a/linux-user/generic/target_resource.h
+++ b/linux-user/generic/target_resource.h
@@ -33,5 +33,6 @@ struct target_rlimit64 {
#define TARGET_RLIMIT_MSGQUEUE 12
#define TARGET_RLIMIT_NICE 13
#define TARGET_RLIMIT_RTPRIO 14
+#define TARGET_RLIMIT_RTTIME 15
#endif
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index b3948d13a9dd..b9b18a7eaffb 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -1053,6 +1053,8 @@ static inline int target_to_host_resource(int code)
return RLIMIT_RSS;
case TARGET_RLIMIT_RTPRIO:
return RLIMIT_RTPRIO;
+ case TARGET_RLIMIT_RTTIME:
+ return RLIMIT_RTTIME;
case TARGET_RLIMIT_SIGPENDING:
return RLIMIT_SIGPENDING;
case TARGET_RLIMIT_STACK:
--
2.34.1
- [PULL 0/8] Linux user for 7.0 patches, Laurent Vivier, 2022/02/07
- [PULL 5/8] linux-user: sigprocmask check read perms first, Laurent Vivier, 2022/02/07
- [PULL 2/8] linux-user/alpha: Fix target rlimits for alpha and rearrange for clarity, Laurent Vivier, 2022/02/07
- [PULL 4/8] linux-user: rt_sigprocmask, check read perms first, Laurent Vivier, 2022/02/07
- [PULL 6/8] linux-user: Implement starttime field in self stat emulation, Laurent Vivier, 2022/02/07
- [PULL 7/8] linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h, Laurent Vivier, 2022/02/07
- [PULL 1/8] linux-user: Remove unnecessary 'aligned' attribute from TaskState, Laurent Vivier, 2022/02/07
- [PULL 3/8] linux-user: Fix inotify on aarch64, Laurent Vivier, 2022/02/07
- [PULL 8/8] linux-user/syscall: Translate TARGET_RLIMIT_RTTIME,
Laurent Vivier <=
- Re: [PULL 0/8] Linux user for 7.0 patches, Peter Maydell, 2022/02/07