diff options
author | marcel <marcel@FreeBSD.org> | 1999-11-26 10:20:10 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 1999-11-26 10:20:10 +0000 |
commit | b35fbc0583b334f31488bb2ae111602a84688322 (patch) | |
tree | 28edc739a2f175f086449d5d22d83ab7df2bc56f /sys | |
parent | e9a637e9c98a006de9801a4c9e4d78c438f2e0a2 (diff) | |
download | FreeBSD-src-b35fbc0583b334f31488bb2ae111602a84688322.zip FreeBSD-src-b35fbc0583b334f31488bb2ae111602a84688322.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/alpha/linux/linux_dummy.c | 1 | ||||
-rw-r--r-- | sys/compat/linux/linux_file.c | 11 | ||||
-rw-r--r-- | sys/i386/linux/linux_dummy.c | 1 | ||||
-rw-r--r-- | sys/i386/linux/linux_file.c | 11 | ||||
-rw-r--r-- | sys/i386/linux/linux_proto.h | 2 | ||||
-rw-r--r-- | sys/i386/linux/linux_syscall.h | 2 | ||||
-rw-r--r-- | 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 04c3b4a..ce5586b 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 d14b4a1..cee65db 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 04c3b4a..ce5586b 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 d14b4a1..cee65db 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 48c4409..e0bfa3d 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 b7e378d..437aa9e 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 d62b616..1c00aad 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" |