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 1999-11-26 10:20:10 +00:00
parent e9a637e9c9
commit b35fbc0583
7 changed files with 25 additions and 5 deletions

View File

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

View File

@ -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);
}

View File

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

View File

@ -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);
}

View File

@ -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_

View File

@ -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

View File

@ -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"