[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 13/36] bsd-user: Define safe_fcntl macro in bsd-user/syscall_defs.
From: |
Warner Losh |
Subject: |
[PULL 13/36] bsd-user: Define safe_fcntl macro in bsd-user/syscall_defs.h |
Date: |
Mon, 28 Aug 2023 17:37:58 -0600 |
From: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/syscall_defs.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bsd-user/syscall_defs.h b/bsd-user/syscall_defs.h
index 96ae90b0631..c6699c9943e 100644
--- a/bsd-user/syscall_defs.h
+++ b/bsd-user/syscall_defs.h
@@ -437,6 +437,8 @@ type safe_##name(type1 arg1, type2 arg2, type3 arg3, type4
arg4, \
return safe_syscall(SYS_##name, arg1, arg2, arg3, arg4, arg5, arg6); \
}
+#define safe_fcntl(...) safe_syscall(SYS_fcntl, __VA_ARGS__)
+
/* So far all target and host bitmasks are the same */
#undef target_to_host_bitmask
#define target_to_host_bitmask(x, tbl) (x)
--
2.41.0
- [PULL 01/36] bsd-user: Remove ELF_START_MMAP and image_info.start_mmap, (continued)
- [PULL 01/36] bsd-user: Remove ELF_START_MMAP and image_info.start_mmap, Warner Losh, 2023/08/28
- [PULL 02/36] bsd-user: Remove image_info.mmap, Warner Losh, 2023/08/28
- [PULL 03/36] bsd-user: Remove image_info.start_brk, Warner Losh, 2023/08/28
- [PULL 11/36] bsd-user: Add struct target_statfs, Warner Losh, 2023/08/28
- [PULL 10/36] bsd-user: Add structs target_freebsd11_{nstat,statfs}, Warner Losh, 2023/08/28
- [PULL 12/36] bsd-user: Add struct target_freebsd_fhandle and fcntl flags, Warner Losh, 2023/08/28
- [PULL 14/36] bsd-user: Rename target_freebsd_time_t to target_time_t, Warner Losh, 2023/08/28
- [PULL 07/36] bsd-user: Declarations of h2t and t2h conversion functions., Warner Losh, 2023/08/28
- [PULL 05/36] bsd-user: Disable clang warnings, Warner Losh, 2023/08/28
- [PULL 04/36] bsd-user: Move _WANT_FREEBSD macros to include/qemu/osdep.h, Warner Losh, 2023/08/28
- [PULL 13/36] bsd-user: Define safe_fcntl macro in bsd-user/syscall_defs.h,
Warner Losh <=
- [PULL 16/36] bsd-user: Implement h2t_freebsd_fhandle t2h_freebsd_fhandle, Warner Losh, 2023/08/28
- [PULL 18/36] bsd-user: Implement target_to_host_fcntl_cmd, Warner Losh, 2023/08/28
- [PULL 06/36] bsd-user; Update the definitions of __put_user and __get_user macros, Warner Losh, 2023/08/28
- [PULL 08/36] bsd-user: Add struct target_freebsd11_stat to bsd-user/syscall_defs, Warner Losh, 2023/08/28
- [PULL 09/36] bsd-user: Add struct target_stat to bsd-user/syscall_defs.h, Warner Losh, 2023/08/28
- [PULL 17/36] bsd-user: Implement h2t_freebds11_statfs, Warner Losh, 2023/08/28
- [PULL 20/36] bsd-user: Implement stat related syscalls, Warner Losh, 2023/08/28
- [PULL 22/36] bsd-user: Implement statfs related syscalls, Warner Losh, 2023/08/28
- [PULL 24/36] bsd-user: Implement stat related syscalls, Warner Losh, 2023/08/28
- [PULL 15/36] bsd-user: Implement h2t_freebsd11_stat h2t_freebsd_nstat, Warner Losh, 2023/08/28