[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 34/36] bsd-user: Add glue for statfs related system calls
From: |
Warner Losh |
Subject: |
[PULL 34/36] bsd-user: Add glue for statfs related system calls |
Date: |
Mon, 28 Aug 2023 17:38:19 -0600 |
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>
---
bsd-user/freebsd/os-syscall.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c
index 73616a5be08..916a754bf8b 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}
*/
--
2.41.0
- [PULL 28/36] bsd-user: Implement freebsd11 getdirents related syscalls, (continued)
- [PULL 28/36] bsd-user: Implement freebsd11 getdirents related syscalls, Warner Losh, 2023/08/28
- [PULL 33/36] bsd-user: Add glue for getfh and related syscalls, Warner Losh, 2023/08/28
- [PULL 32/36] bsd-user: Add glue for the freebsd11_stat syscalls, Warner Losh, 2023/08/28
- [PULL 36/36] bsd-user: Add missing break after do_bsd_preadv, Warner Losh, 2023/08/28
- [PULL 27/36] bsd-user: Implement freebsd11 statfs related syscalls, Warner Losh, 2023/08/28
- [PULL 35/36] bsd-user: Add getdents and fcntl related system calls, Warner Losh, 2023/08/28
- [PULL 26/36] bsd-user: Implement freebsd11 fstat and fhstat related syscalls, Warner Losh, 2023/08/28
- [PULL 29/36] bsd-user: Implement freebsd11 netbsd stat related syscalls, Warner Losh, 2023/08/28
- [PULL 31/36] bsd-user: Add os-stat.c to the build, Warner Losh, 2023/08/28
- [PULL 30/36] bsd-user: Implement do_freebsd_realpathat syscall, Warner Losh, 2023/08/28
- [PULL 34/36] bsd-user: Add glue for statfs related system calls,
Warner Losh <=
- Re: [PULL 00/36] 2023q3 bsd user patches, Stefan Hajnoczi, 2023/08/29