Subject: Re: pipe(2) and invalid fildes
To: None <sommerfeld@orchard.arlington.ma.us>
From: Darren Reed <darrenr@reed.wattle.id.au>
List: tech-kern
Date: 10/02/2001 12:30:23
In some email I received from Bill Sommerfeld, sie wrote:
> > > We should leave EFAULT in the man page, and we should clarify that we
> > > reserve the right to change the implementation in the future.
> > >
> > > The difference between getting EFAULT and getting SIGSEGV/SIGBUS is
> > > purely an implementation artifact.
> >
> > Well, EFAULT can't be returned by pipe(2) currently. So it seems
> > wrong to document it as possible return value in manpage.
>
> you miss the point.
>
> we want to reserve the right for pipe(2) to possibly return EFAULT in
> the future.
Then in the future the man page for pipe(2) should be changed to document
that it now returns EFAULT.
Changing the man page now to exclude mentioning EFAULT does not preclude
changing the implementation at a later date.
The only reason to leave it "as is", now, is laziness & apathy.
Darren