[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 33/36] bsd-user: Add glue for getfh and related syscalls
From: |
Warner Losh |
Subject: |
[PULL 33/36] bsd-user: Add glue for getfh and related syscalls |
Date: |
Mon, 28 Aug 2023 17:38:18 -0600 |
Add glue to call the following syscalls to the freebsd_syscall:
getfh
lgetfh
fhopen
freebsd11_fhstat
freebsd11_fhstatfs
fhstat
fhstatfs
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 | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c
index ade47a0d2f2..73616a5be08 100644
--- a/bsd-user/freebsd/os-syscall.c
+++ b/bsd-user/freebsd/os-syscall.c
@@ -524,6 +524,34 @@ static abi_long freebsd_syscall(void *cpu_env, int num,
abi_long arg1,
ret = do_freebsd11_nlstat(arg1, arg2);
break;
+ case TARGET_FREEBSD_NR_getfh: /* getfh(2) */
+ ret = do_freebsd_getfh(arg1, arg2);
+ break;
+
+ case TARGET_FREEBSD_NR_lgetfh: /* lgetfh(2) */
+ ret = do_freebsd_lgetfh(arg1, arg2);
+ break;
+
+ case TARGET_FREEBSD_NR_fhopen: /* fhopen(2) */
+ ret = do_freebsd_fhopen(arg1, arg2);
+ break;
+
+ case TARGET_FREEBSD_NR_freebsd11_fhstat: /* fhstat(2) */
+ ret = do_freebsd11_fhstat(arg1, arg2);
+ break;
+
+ case TARGET_FREEBSD_NR_fhstat: /* fhstat(2) */
+ ret = do_freebsd_fhstat(arg1, arg2);
+ break;
+
+ case TARGET_FREEBSD_NR_freebsd11_fhstatfs: /* fhstatfs(2) */
+ ret = do_freebsd11_fhstatfs(arg1, arg2);
+ break;
+
+ case TARGET_FREEBSD_NR_fhstatfs: /* fhstatfs(2) */
+ ret = do_freebsd_fhstatfs(arg1, arg2);
+ break;
+
/*
* sys{ctl, arch, call}
*/
--
2.41.0
- [PULL 17/36] bsd-user: Implement h2t_freebds11_statfs, (continued)
- [PULL 17/36] bsd-user: Implement h2t_freebds11_statfs, Warner Losh, 2023/08/28
- [PULL 20/36] bsd-user: Implement stat related syscalls, Warner Losh, 2023/08/28
- [PULL 22/36] bsd-user: Implement statfs related syscalls, Warner Losh, 2023/08/28
- [PULL 24/36] bsd-user: Implement stat related syscalls, Warner Losh, 2023/08/28
- [PULL 15/36] bsd-user: Implement h2t_freebsd11_stat h2t_freebsd_nstat, Warner Losh, 2023/08/28
- [PULL 19/36] bsd-uesr: Implement h2t_freebsd_stat and h2t_freebsd_statfs functions, Warner Losh, 2023/08/28
- [PULL 21/36] bsd-user: Implement statfh related syscalls, Warner Losh, 2023/08/28
- [PULL 23/36] bsd-user: Implement getdents related syscalls, Warner Losh, 2023/08/28
- [PULL 25/36] bsd-user: Implement freebsd11 stat related syscalls, Warner Losh, 2023/08/28
- [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 <=
- [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, 2023/08/28
- Re: [PULL 00/36] 2023q3 bsd user patches, Stefan Hajnoczi, 2023/08/29