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:
parent
e9a637e9c9
commit
b35fbc0583
@ -88,7 +88,6 @@ DUMMY(afs_syscall);
|
||||
DUMMY(setfsuid);
|
||||
DUMMY(setfsgid);
|
||||
DUMMY(getsid);
|
||||
DUMMY(fdatasync);
|
||||
DUMMY(sysctl);
|
||||
DUMMY(setresuid);
|
||||
DUMMY(getresuid);
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -88,7 +88,6 @@ DUMMY(afs_syscall);
|
||||
DUMMY(setfsuid);
|
||||
DUMMY(setfsgid);
|
||||
DUMMY(getsid);
|
||||
DUMMY(fdatasync);
|
||||
DUMMY(sysctl);
|
||||
DUMMY(setresuid);
|
||||
DUMMY(getresuid);
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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_
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user