aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/freebsd
diff options
context:
space:
mode:
authorWarner Losh <imp@bsdimp.com>2023-08-13 10:41:52 +0200
committerWarner Losh <imp@bsdimp.com>2023-08-28 12:16:18 -0600
commitd7e9a545084ba1ded8fe864697db174cc3e6ebe2 (patch)
treebf389a12d609c2fad5e8486b6b1b6c7785e04d50 /bsd-user/freebsd
parent6fe97c6cf7969bcf809a89ecabc30acf10b77735 (diff)
downloadqemu-d7e9a545084ba1ded8fe864697db174cc3e6ebe2.zip
qemu-d7e9a545084ba1ded8fe864697db174cc3e6ebe2.tar.gz
qemu-d7e9a545084ba1ded8fe864697db174cc3e6ebe2.tar.bz2
bsd-user: Add glue for statfs related system calls
Add glue to call the following syscalls to the freebsd_syscall: freebsd11_statfs statfs freebsd11_fstatfs fstatfs freebsd11_getfsstat getfsstat 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>
Diffstat (limited to 'bsd-user/freebsd')
-rw-r--r--bsd-user/freebsd/os-syscall.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c
index 73616a5..916a754 100644
--- a/bsd-user/freebsd/os-syscall.c
+++ b/bsd-user/freebsd/os-syscall.c
@@ -552,6 +552,30 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1,
ret = do_freebsd_fhstatfs(arg1, arg2);
break;
+ case TARGET_FREEBSD_NR_freebsd11_statfs: /* statfs(2) */
+ ret = do_freebsd11_statfs(arg1, arg2);
+ break;
+
+ case TARGET_FREEBSD_NR_statfs: /* statfs(2) */
+ ret = do_freebsd_statfs(arg1, arg2);
+ break;
+
+ case TARGET_FREEBSD_NR_freebsd11_fstatfs: /* fstatfs(2) */
+ ret = do_freebsd11_fstatfs(arg1, arg2);
+ break;
+
+ case TARGET_FREEBSD_NR_fstatfs: /* fstatfs(2) */
+ ret = do_freebsd_fstatfs(arg1, arg2);
+ break;
+
+ case TARGET_FREEBSD_NR_freebsd11_getfsstat: /* getfsstat(2) */
+ ret = do_freebsd11_getfsstat(arg1, arg2, arg3);
+ break;
+
+ case TARGET_FREEBSD_NR_getfsstat: /* getfsstat(2) */
+ ret = do_freebsd_getfsstat(arg1, arg2, arg3);
+ break;
+
/*
* sys{ctl, arch, call}
*/