aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/bsd-mem.h
diff options
context:
space:
mode:
authorWarner Losh <imp@bsdimp.com>2023-09-25 21:27:09 +0300
committerWarner Losh <imp@bsdimp.com>2023-10-03 17:14:07 -0600
commitdfa1d915756b2d9d22946cbd7d2587f30cdcb7a3 (patch)
treef50bc6667fccb492b8811035e7b98ae07834914d /bsd-user/bsd-mem.h
parent4e00b7d85d0dcc2064c68168163d3a411e32798f (diff)
bsd-user: Add stubs for vadvise(), sbrk() and sstk()
The above system calls are not supported by qemu. Signed-off-by: Warner Losh <imp@bsdimp.com> Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230925182709.4834-24-kariem.taha2.7@gmail.com>
Diffstat (limited to 'bsd-user/bsd-mem.h')
-rw-r--r--bsd-user/bsd-mem.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/bsd-user/bsd-mem.h b/bsd-user/bsd-mem.h
index c512a4e375..c3e72e3b86 100644
--- a/bsd-user/bsd-mem.h
+++ b/bsd-user/bsd-mem.h
@@ -431,4 +431,22 @@ static inline abi_long do_bsd_shmdt(abi_ulong shmaddr)
return ret;
}
+static inline abi_long do_bsd_vadvise(void)
+{
+ /* See sys_ovadvise() in vm_unix.c */
+ return -TARGET_EINVAL;
+}
+
+static inline abi_long do_bsd_sbrk(void)
+{
+ /* see sys_sbrk() in vm_mmap.c */
+ return -TARGET_EOPNOTSUPP;
+}
+
+static inline abi_long do_bsd_sstk(void)
+{
+ /* see sys_sstk() in vm_mmap.c */
+ return -TARGET_EOPNOTSUPP;
+}
+
#endif /* BSD_USER_BSD_MEM_H */