Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/puffs/rump_nqmfs MAP_COPY is available only in _KER...



details:   https://anonhg.NetBSD.org/src/rev/ed8701c3664a
branches:  trunk
changeset: 753523:ed8701c3664a
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Mar 31 14:49:02 2010 +0000

description:
MAP_COPY is available only in _KERNEL .... uh, so don't use it here.

diffstat:

 usr.sbin/puffs/rump_nqmfs/rump_nqmfs.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 15ef9c1ae145 -r ed8701c3664a usr.sbin/puffs/rump_nqmfs/rump_nqmfs.c
--- a/usr.sbin/puffs/rump_nqmfs/rump_nqmfs.c    Wed Mar 31 14:45:59 2010 +0000
+++ b/usr.sbin/puffs/rump_nqmfs/rump_nqmfs.c    Wed Mar 31 14:49:02 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump_nqmfs.c,v 1.1 2010/03/08 12:46:34 pooka Exp $     */
+/*     $NetBSD: rump_nqmfs.c,v 1.2 2010/03/31 14:49:02 pooka Exp $     */
 
 /*
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -115,7 +115,7 @@
                err(1, "open fspec");
 
        membase = mmap(NULL, sb.st_size, PROT_READ | (rdonly ? 0 : PROT_WRITE),
-           MAP_FILE | (shared ? MAP_SHARED : MAP_COPY), fd, 0);
+           MAP_FILE | (shared ? MAP_SHARED : MAP_PRIVATE), fd, 0);
        if (membase == MAP_FAILED)
                err(1, "cannot mmap fpsec");
 



Home | Main Index | Thread Index | Old Index