[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 33/33] Add glue to call the following syscalls to the freebsd_sys
From: |
Karim Taha |
Subject: |
[PATCH 33/33] Add glue to call the following syscalls to the freebsd_syscall function: |
Date: |
Tue, 8 Aug 2023 08:08:15 +0200 |
From: Warner Losh <imp@bsdimp.com>
freebsd11_getdents
getdirentries
freebsd11_getdirentries
fcntl
Signed-off-by: Warner Losh <imp@bsdimp.com>
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com>
---
bsd-user/freebsd/os-syscall.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c
index 916a754bf8..e9b1b663af 100644
--- a/bsd-user/freebsd/os-syscall.c
+++ b/bsd-user/freebsd/os-syscall.c
@@ -576,6 +576,22 @@ static abi_long freebsd_syscall(void *cpu_env, int num,
abi_long arg1,
ret = do_freebsd_getfsstat(arg1, arg2, arg3);
break;
+ case TARGET_FREEBSD_NR_freebsd11_getdents: /* getdents(2) */
+ ret = do_freebsd11_getdents(arg1, arg2, arg3);
+ break;
+
+ case TARGET_FREEBSD_NR_getdirentries: /* getdirentries(2) */
+ ret = do_freebsd_getdirentries(arg1, arg2, arg3, arg4);
+ break;
+
+ case TARGET_FREEBSD_NR_freebsd11_getdirentries: /* getdirentries(2) */
+ ret = do_freebsd11_getdirentries(arg1, arg2, arg3, arg4);
+ break;
+ case TARGET_FREEBSD_NR_fcntl: /* fcntl(2) */
+ ret = do_freebsd_fcntl(arg1, arg2, arg3);
+ break;
+
+
/*
* sys{ctl, arch, call}
*/
--
2.40.0
- [PATCH 23/33] Implement freebsd11 stat related syscalls, (continued)
- [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, 2023/08/08
- [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 <=