From: Serge Belyshev Date: Sat, 29 Jan 2022 19:48:23 +0000 (+0300) Subject: linux-user/syscall: Translate TARGET_RLIMIT_RTTIME X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=244fd08323088db73590ff2317dfe86f810b51d7;p=qemu.git linux-user/syscall: Translate TARGET_RLIMIT_RTTIME Signed-off-by: Serge Belyshev Reviewed-by: Laurent Vivier Reviewed-by: Laurent Vivier Message-Id: <87a6fel3w8.fsf_-_@depni.sinp.msu.ru> Signed-off-by: Laurent Vivier --- 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: