[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 31/33] Add glue to call the following syscalls to the freebsd_sys
From: |
Karim Taha |
Subject: |
[PATCH 31/33] Add glue to call the following syscalls to the freebsd_syscall function: |
Date: |
Tue, 8 Aug 2023 08:08:13 +0200 |
From: Warner Losh <imp@bsdimp.com>
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>
---
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 ade47a0d2f..73616a5be0 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.40.0
- [PATCH 21/33] Implement stat related syscalls, (continued)
- [PATCH 21/33] Implement stat related syscalls, Karim Taha, 2023/08/08
- [PATCH 22/33] Implement stat related syscalls, Karim Taha, 2023/08/08
- [PATCH 23/33] Implement freebsd11 stat related syscalls, Karim Taha, 2023/08/08
- [PATCH 24/33] Implement freebsd11 stat related syscalls, Karim Taha, 2023/08/08
- [PATCH 25/33] Implement freebsd11 stat related syscalls, Karim Taha, 2023/08/08
- [PATCH 26/33] Implement freebsd11 stat related syscalls, Karim Taha, 2023/08/08
- [PATCH 27/33] Implement freebsd11 stat related syscalls, Karim Taha, 2023/08/08
- [PATCH 28/33] Implement do_freebsd_realpathat syscall, Karim Taha, 2023/08/08
- [PATCH 29/33] Add os-stat.c to the build, Karim Taha, 2023/08/08
- [PATCH 30/33] Add glue to call the following syscalls to the freebsd_syscall function:, Karim Taha, 2023/08/08
- [PATCH 31/33] Add glue to call the following syscalls to the freebsd_syscall function:,
Karim Taha <=
- [PATCH 32/33] Add glue to call the following syscalls to the freebsd_syscall function:, Karim Taha, 2023/08/08
- [PATCH 33/33] Add glue to call the following syscalls to the freebsd_syscall function:, Karim Taha, 2023/08/08