From owner-freebsd-bugs Wed Feb 7 0:10:22 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DACD537B4EC for ; Wed, 7 Feb 2001 00:10:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f178A3086319; Wed, 7 Feb 2001 00:10:03 -0800 (PST) (envelope-from gnats) Date: Wed, 7 Feb 2001 00:10:03 -0800 (PST) Message-Id: <200102070810.f178A3086319@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Iyad Qumei" Subject: Re: i386/24886: Cant msync memory mapped file onto desk. Reply-To: "Iyad Qumei" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR i386/24886; it has been noted by GNATS. From: "Iyad Qumei" To: "Garrett Wollman" Cc: Subject: Re: i386/24886: Cant msync memory mapped file onto desk. Date: Wed, 7 Feb 2001 00:06:13 -0800 Thank you Garrett for the follow-up. I tried your suggestion and it did work. I just wanted to share with you this bit of information. I have originally wrote a similar code for redhat linux 6.2, and it works ok. However, as I went on to port to FreeBSD, I experienced this problem. The man pages confirmed to me your response, so I could conclude that FreeBSD is more strict that Redhat Linux!? Thanks again, Iyad Qumei. ----- Original Message ----- From: "Garrett Wollman" To: Cc: Sent: Monday, February 05, 2001 4:50 PM Subject: i386/24886: Cant msync memory mapped file onto desk. > < > > 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