mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
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
5e0c812c7c
commit
25e5bdab9e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53713
@ -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);
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
|
@ -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_
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user