xemu/bsd-user/freebsd
Warner Losh 1ed771b21c bsd-user/freebsd/os-syscall.c: lock_iovec
lock_iovec will lock an I/O vec and the memory to which it refers and
create a iovec in the host space that refers to it, with full error
unwinding. Add helper_iovec_unlock to unlock the partially locked iovec
in case there's an error. The code will be used in iovec_unlock when
that is committed.

Note: memory handling likely could be rewritten to use q_autofree. That
will be explored in the future since what we have now works well enough.

Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
2022-06-10 22:00:48 -06:00
..
host-os.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
meson.build bsd-user: Move system call building to os-syscall.c 2022-02-26 10:01:38 -07:00
os-strace.h bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
os-sys.c bsd-user/sysarch: Move to using do_freebsd_arch_sysarch interface 2021-10-18 12:51:39 -06:00
os-syscall.c bsd-user/freebsd/os-syscall.c: lock_iovec 2022-06-10 22:00:48 -06:00
strace.list bsd-user/strace.list: Remove support for FreeBSD versions older than 12.0 2021-10-18 12:51:39 -06:00
syscall_nr.h bsd-user: regenerate FreeBSD's system call numbers 2021-01-11 14:59:21 +01:00
target_os_elf.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
target_os_siginfo.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
target_os_signal.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
target_os_stack.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
target_os_thread.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
target_os_ucontext.h bsd-user/freebsd/target_os_ucontext.h: Prefer env as arg name for CPUArchState args 2022-01-30 17:13:50 -07:00
target_os_user.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
target_os_vmparam.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00