From: Kyle Evans Date: Sun, 20 Aug 2023 02:23:27 +0000 (-0600) Subject: bsd-user: Define safe_fcntl macro in bsd-user/syscall_defs.h X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=243c725fe7489b15aa441a20b0298035481da2f9;p=qmiga%2Fqemu.git bsd-user: Define safe_fcntl macro in bsd-user/syscall_defs.h Signed-off-by: Kyle Evans Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- diff --git a/bsd-user/syscall_defs.h b/bsd-user/syscall_defs.h index 96ae90b063..c6699c9943 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)