qemu-e2k/bsd-user
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
..
arm bsd-user: Remove ELF_START_MMAP and image_info.start_mmap 2023-08-28 12:16:18 -06:00
freebsd bsd-user: Implement do_obreak function 2023-10-03 17:14:07 -06:00
host bsd-user: Catch up with sys/param.h requirement for machine/pmap.h 2022-10-26 14:09:17 -06:00
i386 bsd-user: Remove ELF_START_MMAP and image_info.start_mmap 2023-08-28 12:16:18 -06:00
include
netbsd Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
openbsd Clean up ill-advised or unusual header guards 2022-05-11 16:50:01 +02:00
x86_64 bsd-user: Remove ELF_START_MMAP and image_info.start_mmap 2023-08-28 12:16:18 -06:00
bsd-file.h bulk: Do not declare function prototypes using 'extern' keyword 2023-08-31 19:47:43 +02:00
bsd-mem.c bsd-user: Implement shmid_ds conversion between host and target. 2023-10-03 17:14:07 -06:00
bsd-mem.h bsd-user: Implement do_obreak function 2023-10-03 17:14:07 -06:00
bsd-proc.c bsd-user: Get number of cpus. 2023-10-03 17:14:06 -06:00
bsd-proc.h bsd-user: Implement getpriority(2) and setpriority(2). 2023-10-03 17:14:06 -06:00
bsdload.c
elfcore.c
elfload.c bsd-user: Remove image_info.start_brk 2023-08-28 12:16:18 -06:00
errno_defs.h bsd-user: spelling fixes 2023-09-20 07:54:34 +03:00
main.c bsd-user: Implement freebsd_exec_common, used in implementing execve/fexecve. 2023-10-03 17:14:06 -06:00
meson.build bsd-user: Add bsd-mem.c to meson.build 2023-10-03 17:14:06 -06:00
mmap.c bsd-user: Remove last_brk 2023-08-06 16:46:13 -07:00
qemu-bsd.h bsd-user: Declarations for ipc_perm and shmid_ds conversion functions 2023-10-03 17:14:06 -06:00
qemu.h bsd-user: Implement freebsd_exec_common, used in implementing execve/fexecve. 2023-10-03 17:14:06 -06:00
signal-common.h bsd-user: Implement host_to_target_siginfo. 2023-10-03 17:14:06 -06:00
signal.c bsd-user: Implement host_to_target_siginfo. 2023-10-03 17:14:06 -06:00
strace.c bsd-user: Clean up includes 2023-02-08 07:16:23 +01:00
syscall_defs.h bsd-user: Implment madvise(2) to match the linux-user implementation. 2023-10-03 17:14:07 -06:00
trace-events trace-events: Fix the name of the tracing.rst file 2023-09-08 13:08:51 +03:00
trace.h
uaccess.c