[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 07/28] bsd-user: Implement target_to_host_rlim and host_to_tar
From: |
Karim Taha |
Subject: |
[PATCH v2 07/28] bsd-user: Implement target_to_host_rlim and host_to_target_rlim conversion. |
Date: |
Mon, 18 Sep 2023 00:37:42 +0300 |
From: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
bsd-user/bsd-proc.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/bsd-user/bsd-proc.c b/bsd-user/bsd-proc.c
index 68410a0aa9..19e39a2f76 100644
--- a/bsd-user/bsd-proc.c
+++ b/bsd-user/bsd-proc.c
@@ -38,3 +38,13 @@ int target_to_host_resource(int code)
return code;
}
+rlim_t target_to_host_rlim(abi_llong target_rlim)
+{
+ return tswap64(target_rlim);
+}
+
+abi_llong host_to_target_rlim(rlim_t rlim)
+{
+ return tswap64(rlim);
+}
+
--
2.42.0
- Re: [PATCH v2 02/28] bsd-user: Define procctl(2) related structs, (continued)
- [PATCH v2 01/28] bsd-user: define TARGET_RFSPAWN for rfork to use vfork(2) semantics, and fix RLIM_INFINITY, Karim Taha, 2023/09/17
- [PATCH v2 03/28] bsd-user: Implement host_to_target_siginfo., Karim Taha, 2023/09/17
- [PATCH v2 04/28] bsd-user: Add freebsd_exec_common and do_freebsd_procctl to qemu.h., Karim Taha, 2023/09/17
- [PATCH v2 05/28] bsd-user: add extern declarations for bsd-proc.c conversion functions, Karim Taha, 2023/09/17
- [PATCH v2 06/28] bsd-user: Implement target_to_host_resource conversion function, Karim Taha, 2023/09/17
- [PATCH v2 07/28] bsd-user: Implement target_to_host_rlim and host_to_target_rlim conversion.,
Karim Taha <=
- [PATCH v2 08/28] bsd-user: Implement host_to_target_rusage and host_to_target_wrusage., Karim Taha, 2023/09/17
- [PATCH v2 09/28] bsd-user: Implement host_to_target_waitstatus conversion., Karim Taha, 2023/09/17
- [PATCH v2 10/28] bsd-user: Get number of cpus., Karim Taha, 2023/09/17
- [PATCH v2 11/28] bsd-user: Implement getgroups(2) and setgroups(2) system calls., Karim Taha, 2023/09/17
- [PATCH v2 12/28] bsd-user: Implement umask(2), setlogin(2) and getlogin(2), Karim Taha, 2023/09/17