From b35fbc0583b334f31488bb2ae111602a84688322 Mon Sep 17 00:00:00 2001 From: marcel Date: Fri, 26 Nov 1999 10:20:10 +0000 Subject: [PATCH] Implement fdatasync in terms of fsync. The regeneration of proto.h, syscall.h and sysent.h was probably forgotten after the last change syscalls.master. --- sys/alpha/linux/linux_dummy.c | 1 - sys/compat/linux/linux_file.c | 11 +++++++++++ sys/i386/linux/linux_dummy.c | 1 - sys/i386/linux/linux_file.c | 11 +++++++++++ sys/i386/linux/linux_proto.h | 2 +- sys/i386/linux/linux_syscall.h | 2 +- sys/i386/linux/linux_sysent.c | 2 +- 7 files changed, 25 insertions(+), 5 deletions(-) diff --git a/sys/alpha/linux/linux_dummy.c b/sys/alpha/linux/linux_dummy.c index 04c3b4a84d52..ce5586bbeadd 100644 --- a/sys/alpha/linux/linux_dummy.c +++ b/sys/alpha/linux/linux_dummy.c @@ -88,7 +88,6 @@ DUMMY(afs_syscall); DUMMY(setfsuid); DUMMY(setfsgid); DUMMY(getsid); -DUMMY(fdatasync); DUMMY(sysctl); DUMMY(setresuid); DUMMY(getresuid); diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index d14b4a1e4f79..cee65db8a0af 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -880,3 +880,14 @@ linux_getcwd(struct proc *p, struct linux_getcwd_args *args) } return (error); } + +int +linux_fdatasync(p, uap) + struct proc *p; + struct linux_fdatasync_args *uap; +{ + struct fsync_args bsd; + + bsd.fd = uap->fd; + return fsync(p, &bsd); +} diff --git a/sys/i386/linux/linux_dummy.c b/sys/i386/linux/linux_dummy.c index 04c3b4a84d52..ce5586bbeadd 100644 --- a/sys/i386/linux/linux_dummy.c +++ b/sys/i386/linux/linux_dummy.c @@ -88,7 +88,6 @@ DUMMY(afs_syscall); DUMMY(setfsuid); DUMMY(setfsgid); DUMMY(getsid); -DUMMY(fdatasync); DUMMY(sysctl); DUMMY(setresuid); DUMMY(getresuid); diff --git a/sys/i386/linux/linux_file.c b/sys/i386/linux/linux_file.c index d14b4a1e4f79..cee65db8a0af 100644 --- a/sys/i386/linux/linux_file.c +++ b/sys/i386/linux/linux_file.c @@ -880,3 +880,14 @@ linux_getcwd(struct proc *p, struct linux_getcwd_args *args) } return (error); } + +int +linux_fdatasync(p, uap) + struct proc *p; + struct linux_fdatasync_args *uap; +{ + struct fsync_args bsd; + + bsd.fd = uap->fd; + return fsync(p, &bsd); +} diff --git a/sys/i386/linux/linux_proto.h b/sys/i386/linux/linux_proto.h index 48c4409b19b4..e0bfa3d8afd2 100644 --- a/sys/i386/linux/linux_proto.h +++ b/sys/i386/linux/linux_proto.h @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/i386/linux/syscalls.master,v 1.25 1999/09/22 22:01:51 luoqi Exp + * created from FreeBSD: src/sys/i386/linux/syscalls.master,v 1.26 1999/09/29 15:12:14 marcel Exp */ #ifndef _LINUX_SYSPROTO_H_ diff --git a/sys/i386/linux/linux_syscall.h b/sys/i386/linux/linux_syscall.h index b7e378d9dcbc..437aa9e477ad 100644 --- a/sys/i386/linux/linux_syscall.h +++ b/sys/i386/linux/linux_syscall.h @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/i386/linux/syscalls.master,v 1.25 1999/09/22 22:01:51 luoqi Exp + * created from FreeBSD: src/sys/i386/linux/syscalls.master,v 1.26 1999/09/29 15:12:14 marcel Exp */ #define LINUX_SYS_linux_setup 0 diff --git a/sys/i386/linux/linux_sysent.c b/sys/i386/linux/linux_sysent.c index d62b6161bc64..1c00aadff0b0 100644 --- a/sys/i386/linux/linux_sysent.c +++ b/sys/i386/linux/linux_sysent.c @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/i386/linux/syscalls.master,v 1.25 1999/09/22 22:01:51 luoqi Exp + * created from FreeBSD: src/sys/i386/linux/syscalls.master,v 1.26 1999/09/29 15:12:14 marcel Exp */ #include "opt_compat.h"