Date: Wed, 7 Feb 2001 00:10:03 -0800 (PST) From: "Iyad Qumei" <ikqumei@computer.org> To: freebsd-bugs@FreeBSD.org Subject: Re: i386/24886: Cant msync memory mapped file onto desk. Message-ID: <200102070810.f178A3086319@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: "Iyad Qumei" <ikqumei@computer.org> To: "Garrett Wollman" <wollman@khavrinen.lcs.mit.edu> Cc: <freebsd-gnats-submit@FreeBSD.ORG> 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" <wollman@khavrinen.lcs.mit.edu> To: <ikqumei@computer.org> Cc: <freebsd-gnats-submit@FreeBSD.ORG> Sent: Monday, February 05, 2001 4:50 PM Subject: i386/24886: Cant msync memory mapped file onto desk. > <<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?200102070810.f178A3086319>