📄 apr.pm
字号:
# Copyright 2001-2005 The Apache Software Foundation## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.#package APR;use DynaLoader ();our $VERSION = '0.009000';our @ISA = qw(DynaLoader);#dlopen("APR.so", RTDL_GLOBAL); so we only need to link libapr.a once# XXX: see xs/ModPerl/Const/Const.pm for issues of using 0x01use Config ();use constant DL_GLOBAL => ( $Config::Config{dlsrc} eq 'dl_dlopen.xs' && $^O ne 'openbsd' ) ? 0x01 : 0x0;sub dl_load_flags { DL_GLOBAL }unless (defined &APR::XSLoader::BOOTSTRAP) { __PACKAGE__->bootstrap($VERSION); *APR::XSLoader::BOOTSTRAP = sub () { 1 };}1;__END__=head1 NAMEAPR - Perl Interface for Apache Portable Runtime (libapr andlibaprutil Libraries)=head1 Synopsis use APR ();=head1 DescriptionOn load this modules prepares the APR enviroment (initializes memorypools, data structures, etc.)You don't need to use this module explicitly, since it's alreadyloaded internally by all C<APR::*> modules.=head1 Using APR modules outside mod_perl 2.0You'd use the C<APR::*> modules outside mod_perl 2.0, just like you'duse it with mod_perl 2.0. For example to get a random unique stringyou could call: % perl -MApache2 -MAPR::UUID -le 'print APR::UUID->new->format'=head1 See AlsoL<mod_perl 2.0 documentation|docs::2.0::index>.=head1 Copyrightmod_perl 2.0 and its core modules are copyrighted underThe Apache Software License, Version 2.0.=head1 AuthorsL<The mod_perl development team and numerouscontributors|about::contributors::people>.=cut
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -