Subject: Re: memcpy segfaults
To: Chris G. Demetriou <cgd@netbsd.org>
From: Lennart Augustsson <lennart@augustsson.net>
List: current-users
Date: 02/09/2000 00:04:20
"Chris G. Demetriou" wrote:

> Bill Studenmund <wrstuden@nas.nasa.gov> writes:
> > So the question is should a PROT_READ be silently added? I suspect not,
> > since a program might really want a write-only mapping, which it can't
> > get.
>
> There are two responses to this:
>
> * "what somebody random might thing what somebody might expect," and
>
> * "what standards say that people can expect in portable programs."
>
> the latter indicates that PROT_READ can -- and if necessary to support
> the user supplying only PROT_WRITE must -- be added.

I don't think there's any choice here, we must go with the standard.

--

        -- Lennart