From 0c5a203325d0f285b38bbb4332f66e3a52916648 Mon Sep 17 00:00:00 2001 From: mdodd Date: Thu, 19 Sep 2002 19:02:54 +0000 Subject: Pass flags to msync() accounting for differences in the definition of MS_SYNC on FreeBSD and Linux. Submitted by: Christian Zander --- sys/compat/linux/linux_misc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/compat/linux/linux_misc.c') diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 0d10fbb..a2c9a24 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -604,6 +604,10 @@ linux_mremap(struct thread *td, struct linux_mremap_args *args) return error; } +#define LINUX_MS_ASYNC 0x0001 +#define LINUX_MS_INVALIDATE 0x0002 +#define LINUX_MS_SYNC 0x0004 + int linux_msync(struct thread *td, struct linux_msync_args *args) { @@ -611,7 +615,7 @@ linux_msync(struct thread *td, struct linux_msync_args *args) bsd_args.addr = (caddr_t)args->addr; bsd_args.len = args->len; - bsd_args.flags = 0; /* XXX ignore */ + bsd_args.flags = args->fl & ~LINUX_MS_SYNC; return msync(td, &bsd_args); } -- cgit v1.1