develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [PATCH] perlfunc return-value addition for chroot(), etc.

Thread Previous
From:
Jeffrey Friedl
Date:
July 30, 2001 19:51
Subject:
Re: [PATCH] perlfunc return-value addition for chroot(), etc.
Message ID:
200107310251.TAA05472@ventrue.corp.yahoo.com

Jarkko Hietaniemi <jhi@iki.fi> wrote:
|> On Sun, Jul 29, 2001 at 10:16:53PM -0700, Jeffrey Friedl wrote:
|> > 
|> > My brother was confused due to chroot()'s return status being opposite
|> > of the system call's, so I added
|> > 
|> >    Returns true upon success, otherwise returns false and sets C<$!>
|> >    (errno).
|>
|> Ummm, I'm not so certain about this patch.  Yes, it's _correct_,
|> but isn't the behaviour
|> 
|>  Returns true upon success, otherwise returns false and sets C<$!> (errno).
|> 
|> pretty much comprehensive over almost all system calls (e.g. mkdir,
|> flock, chdir, opendir, ...)?

If this is indeed the case (that most are one way), doesn't that imply that
some aren't? It seems to me to be all the more reason to document them
explicitly.

In the case of chroot(), Perl is exactly opposite of the system call,
so I can understand the motivation to see it documented clearly in the
docs for chroot() [as opposed to some kind of global "they're all this
way unless mentioned otherwise].

	Jeffrey

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About