The flags argument was meant to be used for read vs write vs
read/write information. In hindsight it would have been better to make
-it a char *mode as in fopen/freopen. Flags arecurrently ignored, and
+it a char *mode as in fopen/freopen. Flags are currently ignored, and
code attempts to empirically determine the mode in which I<f> is open.
Once called the FILE * should I<ONLY> be closed by calling
C<PerlIO_close()> on the returned PerlIO *.
-
=item B<PerlIO_exportFILE(f,flags)>
Given a PerlIO * create a 'native' FILE * suitable for passing to code
pushing a new :stdio "layer" onto the PerlIO *), which may affect future
PerlIO operations on the original PerlIO *.
You should not call C<fclose()> on the file unless you call
-C<PerlIO_releaseFILE()> to disassociate it from the the PerlIO *.
+C<PerlIO_releaseFILE()> to disassociate it from the PerlIO *.
Calling this function repeatedly will create a FILE * on each call
(and will push an :stdio layer each time as well).
=item B<PerlIO_releaseFILE(p,f)>
Calling PerlIO_releaseFILE informs PerlIO that all use of FILE * is
-complete. It is removed from list of 'exported' FILE *s, and
-associated PerlIO * should revert to original behaviour.
+complete. It is removed from the list of 'exported' FILE *s, and the
+associated PerlIO * should revert to its original behaviour.
=item B<PerlIO_findFILE(f)>
Returns a native FILE * used by a stdio layer. If there is none, it
will create one with PerlIO_exportFILE. In either case the FILE *
-should be considered at belonging to PerlIO subsystem and should
+should be considered as belonging to PerlIO subsystem and should
only be closed by calling C<PerlIO_close()>.