aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/freebsd
diff options
context:
space:
mode:
Diffstat (limited to 'bsd-user/freebsd')
-rw-r--r--bsd-user/freebsd/os-syscall.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c
index a824785..f7d0990 100644
--- a/bsd-user/freebsd/os-syscall.c
+++ b/bsd-user/freebsd/os-syscall.c
@@ -273,6 +273,18 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1,
ret = do_bsd_close(arg1);
break;
+ case TARGET_FREEBSD_NR_fdatasync: /* fdatasync(2) */
+ ret = do_bsd_fdatasync(arg1);
+ break;
+
+ case TARGET_FREEBSD_NR_fsync: /* fsync(2) */
+ ret = do_bsd_fsync(arg1);
+ break;
+
+ case TARGET_FREEBSD_NR_freebsd12_closefrom: /* closefrom(2) */
+ ret = do_bsd_closefrom(arg1);
+ break;
+
default:
qemu_log_mask(LOG_UNIMP, "Unsupported syscall: %d\n", num);
ret = -TARGET_ENOSYS;