summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSerge Belyshev <belyshev@depni.sinp.msu.ru>2022-01-29 22:48:23 +0300
committerLaurent Vivier <laurent@vivier.eu>2022-02-01 08:01:44 +0100
commit244fd08323088db73590ff2317dfe86f810b51d7 (patch)
tree7e4f950503e58c4243f8d15ab7664d60240c9555
parentb13e49bc86961c6725b2ebddd53898fe1366f6dc (diff)
downloadfocaccia-qemu-244fd08323088db73590ff2317dfe86f810b51d7.tar.gz
focaccia-qemu-244fd08323088db73590ff2317dfe86f810b51d7.zip
linux-user/syscall: Translate TARGET_RLIMIT_RTTIME
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>
-rw-r--r--linux-user/generic/target_resource.h1
-rw-r--r--linux-user/syscall.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/generic/target_resource.h b/linux-user/generic/target_resource.h
index f04c93b125..539d8c4677 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 b3948d13a9..b9b18a7eaf 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: