[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 07/51] bsd-user: Implement target_to_host_rlim and host_to_target_
From: |
Warner Losh |
Subject: |
[PULL 07/51] bsd-user: Implement target_to_host_rlim and host_to_target_rlim conversion. |
Date: |
Tue, 3 Oct 2023 17:31:31 -0600 |
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>
Reviewed-by: Warner Losh <imp@bsdimp.com>
Message-Id: <20230925182425.3163-8-kariem.taha2.7@gmail.com>
---
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 68410a0aa9d..19e39a2f764 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.41.0
- [PULL 00/51] Bsd user mmap patches, Warner Losh, 2023/10/03
- [PULL 01/51] bsd-user: define TARGET_RFSPAWN for rfork to use vfork(2) semantics, and fix RLIM_INFINITY, Warner Losh, 2023/10/03
- [PULL 03/51] bsd-user: Implement host_to_target_siginfo., Warner Losh, 2023/10/03
- [PULL 05/51] bsd-user: add extern declarations for bsd-proc.c conversion functions, Warner Losh, 2023/10/03
- [PULL 02/51] bsd-user: Define procctl(2) related structs, Warner Losh, 2023/10/03
- [PULL 07/51] bsd-user: Implement target_to_host_rlim and host_to_target_rlim conversion.,
Warner Losh <=
- [PULL 06/51] bsd-user: Implement target_to_host_resource conversion function, Warner Losh, 2023/10/03
- [PULL 08/51] bsd-user: Implement host_to_target_rusage and host_to_target_wrusage., Warner Losh, 2023/10/03
- [PULL 10/51] bsd-user: Get number of cpus., Warner Losh, 2023/10/03
- [PULL 09/51] bsd-user: Implement host_to_target_waitstatus conversion., Warner Losh, 2023/10/03
- [PULL 13/51] bsd-user: Implement getrusage(2)., Warner Losh, 2023/10/03
- [PULL 11/51] bsd-user: Implement getgroups(2) and setgroups(2) system calls., Warner Losh, 2023/10/03
- [PULL 12/51] bsd-user: Implement umask(2), setlogin(2) and getlogin(2), Warner Losh, 2023/10/03
- [PULL 04/51] bsd-user: Add freebsd_exec_common and do_freebsd_procctl to qemu.h., Warner Losh, 2023/10/03
- [PULL 14/51] bsd-user: Implement getrlimit(2) and setrlimit(2), Warner Losh, 2023/10/03
- [PULL 15/51] bsd-user: Implement several get/set system calls:, Warner Losh, 2023/10/03