Skip to content

Commit

Permalink
bsd-user: Define safe_fcntl macro in bsd-user/syscall_defs.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kevans91 authored and bsdimp committed Aug 28, 2023
1 parent 54d07b4 commit 243c725
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bsd-user/syscall_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 243c725

Please sign in to comment.