xemu/bsd-user
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
..
arm bsd-user/arm/target_arch_thread.h: Assume a FreeBSD target 2022-02-26 10:01:38 -07:00
freebsd bsd-user/freebsd/os-syscall.c: Add get_errno and host_to_target_errno 2022-02-26 10:01:38 -07:00
host bsd-user/host/x86_64/host-signal.h: Implement host_signal_* 2022-01-28 15:52:39 -07:00
i386 bsd-user/i386/target_arch_cpu.h: Remove openbsd syscall 2022-02-26 10:01:38 -07:00
include user: move common-user includes to a subdirectory of {bsd,linux}-user/ 2022-01-12 14:08:29 +01:00
netbsd bsd-user: elf cleanup 2021-09-10 14:13:06 -06:00
openbsd bsd-user: elf cleanup 2021-09-10 14:13:06 -06:00
x86_64 bsd-user/x86_64/target_arch_thread.h: Assume a FreeBSD target 2022-02-26 10:01:38 -07:00
bsdload.c bsd-user: TARGET_NGROUPS unused in this file, remove 2021-09-10 14:13:06 -06:00
elfcore.c bsd-user: add stubbed out core dump support 2021-09-10 14:13:06 -06:00
elfload.c bsd-user: Refactor load_elf_sections and is_target_elf_binary 2021-09-10 14:13:06 -06:00
errno_defs.h bsd-user: Create special-errno.h 2021-12-19 20:47:33 -08:00
main.c bsd-user: Remove bsd_type 2022-02-26 10:01:38 -07:00
meson.build bsd-user: Move system call building to os-syscall.c 2022-02-26 10:01:38 -07:00
mmap.c bsd-user/mmap.c: assert that target_mprotect cannot fail 2021-10-18 12:51:38 -06:00
qemu.h bsd-user/freebsd/os-syscall.c: Add get_errno and host_to_target_errno 2022-02-26 10:01:38 -07:00
signal-common.h bsd-user/signal.c: Only copy the _capsicum for FreeBSD_version > 1400026 2022-02-01 14:43:20 -07:00
signal.c exec/exec-all: Move 'qemu/log.h' include in units requiring it 2022-02-21 10:18:06 +01:00
strace.c bsd-user/strace.c: print_taken_signal 2022-01-28 15:53:41 -07:00
syscall_defs.h bsd-user/signal.c: Implement dump_core_and_abort 2022-01-28 15:53:41 -07:00
trace-events bsd-user: Add trace events for bsd-user 2022-01-28 15:53:41 -07:00
trace.h bsd-user: Add trace events for bsd-user 2022-01-28 15:53:41 -07:00
uaccess.c bsd-user: style tweak: keyword space ( 2021-05-11 11:07:22 -06:00