linux-user/syscall: Translate TARGET_RLIMIT_RTTIME
authorSerge Belyshev <belyshev@depni.sinp.msu.ru>
Sat, 29 Jan 2022 19:48:23 +0000 (22:48 +0300)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 1 Feb 2022 07:01:44 +0000 (08:01 +0100)
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
linux-user/syscall.c

index f04c93b12596565331db91cc6e306af4ca83602c..539d8c46772e8ce04950e7788f4466e8cd83b568 100644 (file)
@@ -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
index b3948d13a9dd963bbcdc484b7c6b072bcc7cca0b..b9b18a7eaffbd954845e153972397b90678eec4f 100644 (file)
@@ -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: