diff options
author | Karim Taha <kariem.taha2.7@gmail.com> | 2023-09-25 21:27:02 +0300 |
---|---|---|
committer | Warner Losh <imp@bsdimp.com> | 2023-10-03 17:14:07 -0600 |
commit | 0c1ced42c84bdd8beeef6c40dff8d143cf409f15 (patch) | |
tree | fac1941d2603164722a8c9e4610d119859a0f77c /bsd-user/freebsd/os-syscall.c | |
parent | 0a49ef02a643864a9c6a36ebaf452e0d30c96b0b (diff) | |
download | qemu-0c1ced42c84bdd8beeef6c40dff8d143cf409f15.zip qemu-0c1ced42c84bdd8beeef6c40dff8d143cf409f15.tar.gz qemu-0c1ced42c84bdd8beeef6c40dff8d143cf409f15.tar.bz2 |
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>
Diffstat (limited to 'bsd-user/freebsd/os-syscall.c')
-rw-r--r-- | bsd-user/freebsd/os-syscall.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c index 7a7ae26..b8c44ce 100644 --- a/bsd-user/freebsd/os-syscall.c +++ b/bsd-user/freebsd/os-syscall.c @@ -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; |