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.
This commit is contained in:
Marcel Moolenaar 1999-11-26 10:20:10 +00:00
parent 5e0c812c7c
commit 25e5bdab9e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53713
7 changed files with 25 additions and 5 deletions

View File

@ -88,7 +88,6 @@ DUMMY(afs_syscall);
DUMMY(setfsuid); DUMMY(setfsuid);
DUMMY(setfsgid); DUMMY(setfsgid);
DUMMY(getsid); DUMMY(getsid);
DUMMY(fdatasync);
DUMMY(sysctl); DUMMY(sysctl);
DUMMY(setresuid); DUMMY(setresuid);
DUMMY(getresuid); DUMMY(getresuid);

View File

@ -880,3 +880,14 @@ linux_getcwd(struct proc *p, struct linux_getcwd_args *args)
} }
return (error); 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);
}

View File

@ -88,7 +88,6 @@ DUMMY(afs_syscall);
DUMMY(setfsuid); DUMMY(setfsuid);
DUMMY(setfsgid); DUMMY(setfsgid);
DUMMY(getsid); DUMMY(getsid);
DUMMY(fdatasync);
DUMMY(sysctl); DUMMY(sysctl);
DUMMY(setresuid); DUMMY(setresuid);
DUMMY(getresuid); DUMMY(getresuid);

View File

@ -880,3 +880,14 @@ linux_getcwd(struct proc *p, struct linux_getcwd_args *args)
} }
return (error); 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);
}

View File

@ -3,7 +3,7 @@
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$ * $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_ #ifndef _LINUX_SYSPROTO_H_

View File

@ -3,7 +3,7 @@
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$ * $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 #define LINUX_SYS_linux_setup 0

View File

@ -3,7 +3,7 @@
* *
* DO NOT EDIT-- this file is automatically generated. * DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$ * $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" #include "opt_compat.h"