[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 11/33] Define safe_fcntl macro in bsd-user/syscall_defs.h
From: |
Karim Taha |
Subject: |
[PATCH 11/33] Define safe_fcntl macro in bsd-user/syscall_defs.h |
Date: |
Tue, 8 Aug 2023 08:07:53 +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>
---
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 608731f0ac..52ebadbe2c 100644
--- a/bsd-user/syscall_defs.h
+++ b/bsd-user/syscall_defs.h
@@ -438,6 +438,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
- Re: [PATCH 06/33] Add struct target_freebsd11_stat to bsd-user/syscall_defs, (continued)
[PATCH 11/33] Define safe_fcntl macro in bsd-user/syscall_defs.h,
Karim Taha <=
[PATCH 08/33] Add structs target_freebsd11_nstat and target_freebsd11_statfs to bsd-user/syscall_defs.h, Karim Taha, 2023/08/08
[PATCH 09/33] Add struct target_statfs to bsd-user/syscall_defs.h, Karim Taha, 2023/08/08
[PATCH 12/33] Rename target_freebsd_time_t to target_time_t, Karim Taha, 2023/08/08