Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Dec 1996 15:28:24 -0500 (EST)
From:      Peter Dufault <dufault@hda.com>
To:        terry@lambert.org (Terry Lambert)
Cc:        scrappy@hub.org, erich@lodgenet.com, hackers@FreeBSD.ORG
Subject:   Re: Multiple Buffer allocation of Shared Memory
Message-ID:  <199612132028.PAA13437@hda.hda.com>
In-Reply-To: <199612131919.MAA15610@phaeton.artisoft.com> from Terry Lambert at "Dec 13, 96 12:19:52 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> Either way, I'd suggest opening O_RDWR if you plan to later map the file
> PROT_READ|PROT_WRITE.

Even if we don't now require it: P1003.1b says you must have opened
the file with write permission in the general PROT_WRITE case (other
than MAP_PRIVATE), and you must open in with read permission in
all cases.

-- 
Peter Dufault (dufault@hda.com)   Real-Time Machine Control and Simulation
HD Associates, Inc.               Voice: 508 433 6936



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