Subject: Re: memcpy segfaults
To: Bill Studenmund <wrstuden@nas.nasa.gov>
From: Mike Cheponis <mac@Wireless.Com>
List: current-users
Date: 02/08/2000 15:55:48
Ahh, what -is- the standard?

Incidentally, that copyfile.c program came from "UNIX System Programming" by
Keith Haviland, Dina Gray, and Ben Salama, Second Edition, Addison-Wesley
1998 pp 316-318

The "without PROT_READ" case worked fine on bsd/os 4.0.1 and also on RH 6.x

-Mike

On Tue, 8 Feb 2000, Bill Studenmund wrote:

> On 8 Feb 2000, Chris G. Demetriou wrote:
> 
> > 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.
> 
> We should follow the standard. :-)
> 
> Take care,
> 
> Bill