qemu/bsd-user/freebsd
Stacey Son a99d740347 bsd-user: Implement do_obreak function
Match linux-user, by manually applying the following commits, in order:

d28b3c90cf   linux-user: Make sure initial brk(0) is page-aligned
15ad98536a   linux-user: Fix qemu brk() to not zero bytes on current page
dfe49864af   linux-user: Prohibit brk() to to shrink below initial heap address
eac78a4b0b   linux-user: Fix signed math overflow in brk() syscall
c6cc059eca   linux-user: Do not call get_errno() in do_brk()
e69e032d1a   linux-user: Use MAP_FIXED_NOREPLACE for do_brk()
cb9d5d1fda   linux-user: Do nothing if too small brk is specified
2aea137a42   linux-user: Do not align brk with host page size

Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230925182709.4834-19-kariem.taha2.7@gmail.com>
2023-10-03 17:14:07 -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: Implement get_filename_from_fd. 2023-10-03 17:14:06 -06:00
os-misc.h bsd-user: Implement shm_rename(2) system call 2023-10-03 17:14:06 -06:00
os-proc.c bsd-user: Implement procctl(2) along with necessary conversion functions. 2023-10-03 17:14:06 -06:00
os-proc.h bsd-user: Implement pdfork(2) system call. 2023-10-03 17:14:06 -06:00
os-stat.c bsd-uesr: Implement h2t_freebsd_stat and h2t_freebsd_statfs functions 2023-08-28 12:16:18 -06:00
os-stat.h bsd-user: Implement do_freebsd_realpathat syscall 2023-08-28 12:16:18 -06: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: implement sysctlbyname(2) 2023-03-01 11:09:19 -07:00
os-syscall.c bsd-user: Implement do_obreak function 2023-10-03 17:14:07 -06:00
qemu-os.h bsd-user: Declarations of h2t and t2h conversion functions. 2023-08-28 12:16:18 -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 bsd-user: spelling fixes 2023-09-20 07:54:34 +03: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 bsd-user: spelling fixes 2023-09-20 07:54:34 +03: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 bsd-user: spelling fixes 2023-09-20 07:54:34 +03:00
target_os_vmparam.h Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00