Le 29/01/2022 à 20:48, Serge Belyshev a écrit :

Signed-off-by: Serge Belyshev <belys...@depni.sinp.msu.ru>
---
  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 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 5950222a77..6d41a741ac 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -1083,6 +1083,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:

Applied to my linux-user-for-7.0 branch.

Thanks,
Laurent


Reply via email to