diff options
author | Warner Losh <imp@bsdimp.com> | 2022-06-11 21:32:19 -0600 |
---|---|---|
committer | Warner Losh <imp@bsdimp.com> | 2022-06-13 15:48:09 -0600 |
commit | 77d3522b3fb6da9f39ada61fe7c2d0121c10de7f (patch) | |
tree | d49dd3f074e090dd5def2c6a765840e07de26c0e /bsd-user/syscall_defs.h | |
parent | dcb40541ebca7ec98a14d461593b3cd7282b4fac (diff) | |
download | qemu-77d3522b3fb6da9f39ada61fe7c2d0121c10de7f.zip qemu-77d3522b3fb6da9f39ada61fe7c2d0121c10de7f.tar.gz qemu-77d3522b3fb6da9f39ada61fe7c2d0121c10de7f.tar.bz2 |
bsd-user: Implement open, openat and close
Add the open, openat and close system calls. We need to lock paths, so
implmenent that as well.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Jung-uk Kim <jkim@FreeBSD.org>
Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'bsd-user/syscall_defs.h')
-rw-r--r-- | bsd-user/syscall_defs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bsd-user/syscall_defs.h b/bsd-user/syscall_defs.h index f5797b2..b6d113d 100644 --- a/bsd-user/syscall_defs.h +++ b/bsd-user/syscall_defs.h @@ -226,4 +226,8 @@ type safe_##name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, \ return safe_syscall(SYS_##name, arg1, arg2, arg3, arg4, arg5, arg6); \ } +/* 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) + #endif /* SYSCALL_DEFS_H */ |