aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/syscall_defs.h
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2023-08-19 20:23:27 -0600
committerWarner Losh <imp@bsdimp.com>2023-08-28 12:16:18 -0600
commit243c725fe7489b15aa441a20b0298035481da2f9 (patch)
treea16517ffcb45f65d37d840ec2f1eefab43605a18 /bsd-user/syscall_defs.h
parent54d07b44aa534277d72fa570498bd379c06d9a40 (diff)
bsd-user: Define safe_fcntl macro in bsd-user/syscall_defs.h
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>
Diffstat (limited to 'bsd-user/syscall_defs.h')
-rw-r--r--bsd-user/syscall_defs.h2
1 files changed, 2 insertions, 0 deletions
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)