Subject: Re: memcpy segfaults
To: Bill Studenmund <email@example.com>
From: Chris G. Demetriou <firstname.lastname@example.org>
Date: 02/08/2000 14:50:37
Bill Studenmund <email@example.com> 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
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.
Chris Demetriou - firstname.lastname@example.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.