aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/freebsd
diff options
context:
space:
mode:
authorStacey Son <sson@FreeBSD.org>2023-09-25 21:27:05 +0300
committerWarner Losh <imp@bsdimp.com>2023-10-03 17:14:07 -0600
commit4f0be683e399e7685608b83240da099ea45d84e6 (patch)
treebc968e7cb72dddd9a662b2bc022aefc53676643f /bsd-user/freebsd
parenta99d74034754b1d8735d814cf17db6bf0eb4bfd1 (diff)
downloadqemu-4f0be683e399e7685608b83240da099ea45d84e6.zip
qemu-4f0be683e399e7685608b83240da099ea45d84e6.tar.gz
qemu-4f0be683e399e7685608b83240da099ea45d84e6.tar.bz2
bsd-user: Implement shm_open(2)
Co-authored-by: Kyle Evans <kevans@FreeBSD.org> Signed-off-by: Stacey Son <sson@FreeBSD.org> Signed-off-by: Kyle Evans <kevans@FreeBSD.org> Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230925182709.4834-20-kariem.taha2.7@gmail.com>
Diffstat (limited to 'bsd-user/freebsd')
-rw-r--r--bsd-user/freebsd/os-syscall.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c
index 92793ab..0d4c311 100644
--- a/bsd-user/freebsd/os-syscall.c
+++ b/bsd-user/freebsd/os-syscall.c
@@ -843,6 +843,10 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1,
ret = do_bsd_mincore(arg1, arg2, arg3);
break;
+ case TARGET_FREEBSD_NR_freebsd12_shm_open: /* shm_open(2) */
+ ret = do_bsd_shm_open(arg1, arg2, arg3);
+ break;
+
#if defined(__FreeBSD_version) && __FreeBSD_version >= 1300048
case TARGET_FREEBSD_NR_shm_open2: /* shm_open2(2) */
ret = do_freebsd_shm_open2(arg1, arg2, arg3, arg4, arg5);