From: Jarkko Hietaniemi Date: Tue, 29 Jul 2003 08:24:45 +0000 (+0000) Subject: More perlio docs from Stas. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3077d0b167fd6e7a559c94bbca95a3ff397a2ed4;p=p5sagit%2Fp5-mst-13.2.git More perlio docs from Stas. p4raw-id: //depot/perl@20286 --- diff --git a/pod/perliol.pod b/pod/perliol.pod index 8b33e02..f8eb01e 100644 --- a/pod/perliol.pod +++ b/pod/perliol.pod @@ -420,12 +420,10 @@ struct. It should also C any unconsumed data that has been read and buffered from the layer below back to that layer, so that it can be re-provided to what ever is now above. -When a PerlIO * is destructed all the layers should pop back to -leave a NULL. However if ->Popped() returns true then perlio.c -assumes that either the layer has popped itself, or the layer is -super special and needs to be retained for other reasons. - -Returns 0 on success and failure. +Returns 0 on success and failure. If C returns I then +I assumes that either the layer has popped itself, or the +layer is super special and needs to be retained for other reasons. +In most cases it should return I. =item Open @@ -483,6 +481,10 @@ and wait to be "pushed". If a layer does provide C it should normally call the C method of next layer down (if any) and then push itself on top if that succeeds. +If C was performed and open has failed, it must +C itself, since if it's not, the layer won't be removed +and may cause bad problems. + Returns C on failure. =item Binmode