[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 10/32] Define safe_fcntl macro in bsd-user/syscall_defs.h
From: |
Karim Taha |
Subject: |
[PATCH v2 10/32] Define safe_fcntl macro in bsd-user/syscall_defs.h |
Date: |
Sun, 13 Aug 2023 05:09:51 +0200 |
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>
---
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 68db9cf4b2..bdcdc4c0fe 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 */
#define target_to_host_bitmask(x, tbl) (x)
#define host_to_target_bitmask(x, tbl) (x)
--
2.40.0
- [PATCH v2 01/32] Move _WANT_FREEBSD macros to include/qemu/osdep.h, (continued)
- [PATCH v2 01/32] Move _WANT_FREEBSD macros to include/qemu/osdep.h, Karim Taha, 2023/08/13
- [PATCH v2 02/32] Disable clang warnings, Karim Taha, 2023/08/13
- [PATCH v2 03/32] Update the definitions of __put_user and __get_user macros, Karim Taha, 2023/08/13
- [PATCH v2 04/32] Declarations of h2t and t2h conversion functions., Karim Taha, 2023/08/13
- [PATCH v2 05/32] Add struct target_freebsd11_stat to bsd-user/syscall_defs, Karim Taha, 2023/08/13
- [PATCH v2 06/32] Add struct target_stat to bsd-user/syscall_defs.h, Karim Taha, 2023/08/13
- [PATCH v2 07/32] Add structs target_freebsd11_nstat and target_freebsd11_statfs to bsd-user/syscall_defs.h, Karim Taha, 2023/08/13
- [PATCH v2 08/32] Add struct target_statfs to bsd-user/syscall_defs.h, Karim Taha, 2023/08/13
- [PATCH v2 10/32] Define safe_fcntl macro in bsd-user/syscall_defs.h,
Karim Taha <=
- [PATCH v2 11/32] Rename target_freebsd_time_t to target_time_t, Karim Taha, 2023/08/13
- [PATCH v2 09/32] Add struct target_freebsd_fhandle and fcntl flags to bsd-user/syscall_defs.h, Karim Taha, 2023/08/13
- [PATCH v2 13/32] Implement h2t_freebsd_fhandle t2h_freebsd_fhandle functions, Karim Taha, 2023/08/13
- [PATCH v2 15/32] Implement target_to_host_fcntl_cmd, Karim Taha, 2023/08/13
- [PATCH v2 17/32] Implement stat related syscalls, Karim Taha, 2023/08/13
- [PATCH v2 21/32] Implement stat related syscalls, Karim Taha, 2023/08/13
- [PATCH v2 12/32] Implement h2t_freebsd11_stat h2t_freebsd_nstat, Karim Taha, 2023/08/13
- [PATCH v2 14/32] Implement h2t_freebds11_statfs, Karim Taha, 2023/08/13
- [PATCH v2 16/32] Implement h2t_freebsd_stat and h2t_freebsd_statfs functions, Karim Taha, 2023/08/13
- [PATCH v2 18/32] Implement stat related syscalls, Karim Taha, 2023/08/13