qemu/bsd-user/freebsd
Warner Losh deeff83b47 bsd-user/freebsd/os-syscall.c: Add get_errno and host_to_target_errno
Add the helper functions get_errno and host_to_target_errno. get_errno
returns either the system call results, or the -errno when system call
indicates failure by returning -1. Host_to_target_errno returns errno
(since on FreeBSD they are the same on all architectures) along with a
comment about why it's the identity.

Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
2022-02-26 10:01:38 -07:00
..
host-os.h bsd-user: Include host-os.h from main 2021-09-10 14:13:06 -06: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: Add get_errno and host_to_target_errno 2022-02-26 10:01:38 -07: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 bsd-user/target_os_elf: If ELF_HWCAP2 is defined, publish it 2021-10-18 12:51:39 -06:00
target_os_siginfo.h bsd-user: Complete FreeBSD siginfo 2022-01-28 15:52:38 -07:00
target_os_signal.h bsd-user: Create setup_sigframe_arch to setup sigframe context 2022-01-28 15:52:38 -07:00
target_os_stack.h bsd-user: Move stack initializtion into a per-os file. 2021-09-10 14:13:06 -06:00
target_os_thread.h bsd-user: pull in target_arch_thread.h update target_arch_elf.h 2021-09-10 14:13:06 -06: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 bsd-user/target_os-user.h: Remove support for FreeBSD older than 12.0 2021-10-18 12:51:39 -06:00
target_os_vmparam.h bsd-user: Create target specific vmparam.h 2021-09-10 14:13:06 -06:00