You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs-cvs@perl.apache.org by st...@apache.org on 2005/05/12 01:10:05 UTC
svn commit: r169716 -
/perl/modperl/docs/trunk/src/docs/2.0/api/APR/Status.pod
Author: stas
Date: Wed May 11 16:10:05 2005
New Revision: 169716
URL: http://svn.apache.org/viewcvs?rev=169716&view=rev
Log:
sort the sub entries
Modified:
perl/modperl/docs/trunk/src/docs/2.0/api/APR/Status.pod
Modified: perl/modperl/docs/trunk/src/docs/2.0/api/APR/Status.pod
URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/APR/Status.pod?rev=169716&r1=169715&r2=169716&view=diff
==============================================================================
--- perl/modperl/docs/trunk/src/docs/2.0/api/APR/Status.pod (original)
+++ perl/modperl/docs/trunk/src/docs/2.0/api/APR/Status.pod Wed May 11 16:10:05 2005
@@ -56,6 +56,48 @@
+=head2 C<is_EACCES>
+
+Check if the error is matching C<EACCES> and its variants (corresponds
+to the C<APR_STATUS_IS_EACCES> macro).
+
+ $status = APR::Status::is_EACCES($error_code);
+
+=over 4
+
+=item arg1: C<$error_code> (integer or C<L<APR::Error
+object|docs::2.0::api::APR::Error>> )
+
+The error code or to check, normally C<$@> blessed into C<L<APR::Error
+object|docs::2.0::api::APR::Error>>.
+
+=item ret: C<$status> ( boolean )
+
+=item since: 1.999.24
+
+=back
+
+An example of using C<is_EACCES> is when reading the contents of a
+file where access may be forbidden:
+
+ eval { $obj->slurp_filename(0) };
+ if ($@) {
+ return Apache2::Const::FORBIDDEN
+ if ref $@ eq 'APR::Error' && APR::Status::is_EACCES($@);
+ die $@;
+ }
+
+Due to possible variants in conditions matching C<EACCES>,
+the use of this function is recommended for checking error codes
+against this value, rather than just using
+C<L<APR::Const::EACCES|docs::2.0::api::APR::Const/C_APR__Const__EACCES_>>
+directly.
+
+
+
+
+
+
=head2 C<is_EAGAIN>
@@ -103,47 +145,6 @@
win32. Thefore make sure to use this macro and not
C<APR::Const::EAGAIN> unless you know what you are doing.
-
-
-
-
-
-=head2 C<is_EACCES>
-
-Check if the error is matching C<EACCES> and its variants (corresponds
-to the C<APR_STATUS_IS_EACCES> macro).
-
- $status = APR::Status::is_EACCES($error_code);
-
-=over 4
-
-=item arg1: C<$error_code> (integer or C<L<APR::Error
-object|docs::2.0::api::APR::Error>> )
-
-The error code or to check, normally C<$@> blessed into C<L<APR::Error
-object|docs::2.0::api::APR::Error>>.
-
-=item ret: C<$status> ( boolean )
-
-=item since: 1.999.24
-
-=back
-
-An example of using C<is_EACCES> is when reading the contents of a
-file where access may be forbidden:
-
- eval { $obj->slurp_filename(0) };
- if ($@) {
- return Apache2::Const::FORBIDDEN
- if ref $@ eq 'APR::Error' && APR::Status::is_EACCES($@);
- die $@;
- }
-
-Due to possible variants in conditions matching C<EACCES>,
-the use of this function is recommended for checking error codes
-against this value, rather than just using
-C<L<APR::Const::EACCES|docs::2.0::api::APR::Const/C_APR__Const__EACCES_>>
-directly.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org