Skip to content

Commit 97a3c57

Browse files
committed
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 <[email protected]> Signed-off-by: Karim Taha <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Signed-off-by: Warner Losh <[email protected]>
1 parent d7e9a54 commit 97a3c57

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

bsd-user/freebsd/os-syscall.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,22 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1,
576576
ret = do_freebsd_getfsstat(arg1, arg2, arg3);
577577
break;
578578

579+
case TARGET_FREEBSD_NR_freebsd11_getdents: /* getdents(2) */
580+
ret = do_freebsd11_getdents(arg1, arg2, arg3);
581+
break;
582+
583+
case TARGET_FREEBSD_NR_getdirentries: /* getdirentries(2) */
584+
ret = do_freebsd_getdirentries(arg1, arg2, arg3, arg4);
585+
break;
586+
587+
case TARGET_FREEBSD_NR_freebsd11_getdirentries: /* getdirentries(2) */
588+
ret = do_freebsd11_getdirentries(arg1, arg2, arg3, arg4);
589+
break;
590+
case TARGET_FREEBSD_NR_fcntl: /* fcntl(2) */
591+
ret = do_freebsd_fcntl(arg1, arg2, arg3);
592+
break;
593+
594+
579595
/*
580596
* sys{ctl, arch, call}
581597
*/

0 commit comments

Comments
 (0)