Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Feb 2001 17:00:02 -0800 (PST)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        freebsd-bugs@FreeBSD.org
Subject:   i386/24886: Cant msync memory mapped file onto desk.
Message-ID:  <200102060100.f16102817331@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/24886; it has been noted by GNATS.

From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To: ikqumei@computer.org
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: i386/24886: Cant msync memory mapped file onto desk.
Date: Mon, 5 Feb 2001 19:50:44 -0500 (EST)

 <<On Mon, 5 Feb 2001 15:58:41 -0800 (PST), ikqumei@computer.org said:
 
 > 		ofbuf = (char*)mmap(NULL, ofsz, PROT_READ|PROT_WRITE, /*MAP_DENYWRITE*/MAP_PRIVATE, hOldFile, 0);
 
 You have specified a private memory mapping.  Modifications made to
 such mappings are *never* visible anywhere outside that mapping.  Use
 MAP_SHARED to create a mapping which modifies globally-visible state.
 
 -GAWollman
 
 
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102060100.f16102817331>