mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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>
This commit is contained in:
parent
dcb40541eb
commit
77d3522b3f
3 changed files with 69 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue