mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
bsd-user: Implment madvise(2) to match the linux-user implementation.
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230925182709.4834-17-kariem.taha2.7@gmail.com>
This commit is contained in:
@@ -831,6 +831,10 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1,
|
||||
ret = do_bsd_munlockall();
|
||||
break;
|
||||
|
||||
case TARGET_FREEBSD_NR_madvise: /* madvise(2) */
|
||||
ret = do_bsd_madvise(arg1, arg2, arg3);
|
||||
break;
|
||||
|
||||
case TARGET_FREEBSD_NR_minherit: /* minherit(2) */
|
||||
ret = do_bsd_minherit(arg1, arg2, arg3);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user