summaryrefslogtreecommitdiff
path: root/regress/sys/kern
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2006-02-15 12:09:35 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2006-02-15 12:09:35 +0000
commitb367eeeb4ff220ac67f35a55a077ff336ef04b71 (patch)
tree14dc25f1ae7c6e7f6e806092636790b64e0aa3fe /regress/sys/kern
parentc45fd7c608b66f1d42900136a6e4fe7d6cfc84b5 (diff)
use proper msync
Diffstat (limited to 'regress/sys/kern')
-rw-r--r--regress/sys/kern/mmap3/mmaptest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/sys/kern/mmap3/mmaptest.c b/regress/sys/kern/mmap3/mmaptest.c
index 19506736b72..bf46847f10d 100644
--- a/regress/sys/kern/mmap3/mmaptest.c
+++ b/regress/sys/kern/mmap3/mmaptest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mmaptest.c,v 1.4 2003/08/02 01:24:36 david Exp $ */
+/* $OpenBSD: mmaptest.c,v 1.5 2006/02/15 12:09:34 mickey Exp $ */
/*
* Copyright (c) 2002 Marc Espie.
*
@@ -60,6 +60,7 @@ main(int argc, char *argv[])
if (!a2)
err(1, "mmap");
a2[10] = 3;
+ msync(a2, 256, MS_SYNC|MS_INVALIDATE);
if (ftruncate(fd, 128))
err(1, "ftruncate");
if (close(fd))