mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-16 01:03:31 +00:00
bsd-user: Add getdents and fcntl related system calls
Add glue to call the following syscalls to the freebsd_syscall: freebsd11_getdents getdirentries freebsd11_getdirentries fcntl 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> Signed-off-by: Warner Losh <imp@bsdimp.com>
This commit is contained in:
parent
d7e9a54508
commit
97a3c57114
|
@ -576,6 +576,22 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1,
|
||||||
ret = do_freebsd_getfsstat(arg1, arg2, arg3);
|
ret = do_freebsd_getfsstat(arg1, arg2, arg3);
|
||||||
break;
|
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}
|
* sys{ctl, arch, call}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue