summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2002-09-19 19:02:54 +0000
committermdodd <mdodd@FreeBSD.org>2002-09-19 19:02:54 +0000
commit0c5a203325d0f285b38bbb4332f66e3a52916648 (patch)
tree2cc15f91eeaeb0ebfeb5d220e3c96450219f6dbd /sys/compat/linux/linux_misc.c
parente6b61cc65a3415189321903efbd59dbc346b7fb5 (diff)
downloadFreeBSD-src-0c5a203325d0f285b38bbb4332f66e3a52916648.zip
FreeBSD-src-0c5a203325d0f285b38bbb4332f66e3a52916648.tar.gz
Pass flags to msync() accounting for differences in the definition of
MS_SYNC on FreeBSD and Linux. Submitted by: Christian Zander <zander@minion.de>
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c6
1 files changed, 5 insertions, 1 deletions
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);
}
OpenPOWER on IntegriCloud