APR::Const - Perl Interface for APR Constants
# make the constants available but don't import them
use APR::Const -compile => qw(constant names ...);
# w/o the => syntax sugar
use APR::Const ("-compile", qw(constant names ...));
# compile and import the constants
use APR::Const qw(constant names ...);
This package contains constants specific to APR features.
Refer to the Apache2::Const description section for more information.
:commonuse APR::Const -compile => qw(:common);
The :common group is for XXX constants.
APR::Const::SUCCESS:erroruse APR::Const -compile => qw(:error);
The :error group is for XXX constants.
APR::Const::EABOVEROOTAPR::Const::EABSOLUTEAPR::Const::EACCESDue to possible variants in conditions matching EACCES, for checking error codes against this you most likely want to use the APR::Status::is_EACCES function instead.
APR::Const::EAGAINThe error Resource temporarily unavailable, may be returned by many different system calls, especially IO calls. Most likely you want to use the APR::Status::is_EAGAIN function instead.
APR::Const::EBADDATEAPR::Const::EBADFAPR::Const::EBADIPAPR::Const::EBADMASKAPR::Const::EBADPATHAPR::Const::EBUSYAPR::Const::ECONNABORTEDDue to possible variants in conditions matching ECONNABORTED, for checking error codes against this you most likely want to use the APR::Status::is_ECONNABORTED function instead.
APR::Const::ECONNREFUSEDAPR::Const::ECONNRESETDue to possible variants in conditions matching ECONNRESET, for checking error codes against this you most likely want to use the APR::Status::is_ECONNRESET function instead.
APR::Const::EDSOOPENAPR::Const::EEXISTAPR::Const::EFTYPEAPR::Const::EGENERALAPR::Const::EHOSTUNREACHAPR::Const::EINCOMPLETEAPR::Const::EINITAPR::Const::EINPROGRESSAPR::Const::EINTRAPR::Const::EINVALAPR::Const::EINVALSOCKAPR::Const::EMFILEAPR::Const::EMISMATCHAPR::Const::ENAMETOOLONGAPR::Const::ENDAPR::Const::ENETUNREACHAPR::Const::ENFILEAPR::Const::ENODIRAPR::Const::ENOENTDue to possible variants in conditions matching ENOENT, for checking error codes against this you most likely want to use the APR::Status::is_ENOENT function instead.
APR::Const::ENOLOCKAPR::Const::ENOMEMAPR::Const::ENOPOLLAPR::Const::ENOPOOLAPR::Const::ENOPROCAPR::Const::ENOSHMAVAILAPR::Const::ENOSOCKETAPR::Const::ENOSPCAPR::Const::ENOSTATAPR::Const::ENOTDIRAPR::Const::ENOTEMPTYAPR::Const::ENOTHDKEYAPR::Const::ENOTHREADAPR::Const::ENOTIMEAPR::Const::ENOTIMPLSomething is not implemented
APR::Const::ENOTSOCKAPR::Const::EOFDue to possible variants in conditions matching EOF, for checking error codes against this you most likely want to use the APR::Status::is_EOF function instead.
APR::Const::EPATHWILDAPR::Const::EPIPEAPR::Const::EPROC_UNKNOWNAPR::Const::ERELATIVEAPR::Const::ESPIPEAPR::Const::ESYMNOTFOUNDAPR::Const::ETIMEDOUTAPR::Const::EXDEV:fopenuse APR::Const -compile => qw(:fopen);
The :fopen group is for XXX constants.
APR::Const::FOPEN_BINARYAPR::Const::FOPEN_BUFFEREDAPR::Const::FOPEN_CREATEAPR::Const::FOPEN_DELONCLOSEAPR::Const::FOPEN_EXCLAPR::Const::FOPEN_PENDAPR::Const::FOPEN_READAPR::Const::FOPEN_TRUNCATEAPR::Const::FOPEN_WRITE:filepathuse APR::Const -compile => qw(:filepath);
The :filepath group is for XXX constants.
APR::Const::FILEPATH_ENCODING_LOCALEAPR::Const::FILEPATH_ENCODING_UNKNOWNAPR::Const::FILEPATH_ENCODING_UTF8APR::Const::FILEPATH_NATIVEAPR::Const::FILEPATH_NOTABOVEROOTAPR::Const::FILEPATH_NOTABSOLUTEAPR::Const::FILEPATH_NOTRELATIVEAPR::Const::FILEPATH_SECUREROOTAPR::Const::FILEPATH_SECUREROOTTESTAPR::Const::FILEPATH_TRUENAME:fprotuse APR::Const -compile => qw(:fprot);
The :fprot group is used by $finfo->protection.
APR::Const::FPROT_GEXECUTEExecute by group
APR::Const::FPROT_GREADRead by group
APR::Const::FPROT_GSETIDSet group id
APR::Const::FPROT_GWRITEWrite by group
APR::Const::FPROT_OS_DEFAULTuse OS's default permissions
APR::Const::FPROT_UEXECUTEExecute by user
APR::Const::FPROT_UREADRead by user
APR::Const::FPROT_USETIDSet user id
APR::Const::FPROT_UWRITEWrite by user
APR::Const::FPROT_WEXECUTEExecute by others
APR::Const::FPROT_WREADRead by others
APR::Const::FPROT_WSTICKYSticky bit
APR::Const::FPROT_WWRITEWrite by others
:filetypeuse APR::Const -compile => qw(:filetype);
The :filetype group is used by $finfo->filetype.
APR::Const::FILETYPE_BLKa file is a block device
APR::Const::FILETYPE_CHRa file is a character device
APR::Const::FILETYPE_DIRa file is a directory
APR::Const::FILETYPE_LNKa file is a symbolic link
APR::Const::FILETYPE_NOFILEthe file type is undedetermined.
APR::Const::FILETYPE_PIPEa file is a FIFO or a pipe.
APR::Const::FILETYPE_REGa file is a regular file.
APR::Const::FILETYPE_SOCKa file is a [unix domain] socket.
APR::Const::FILETYPE_UNKFILEa file is of some other unknown type or the type cannot be determined.
:finfouse APR::Const -compile => qw(:finfo);
The :finfo group is used by stat() and $finfo->valid.
APR::Const::FINFO_ATIMEAccess Time
APR::Const::FINFO_CSIZEStorage size consumed by the file
APR::Const::FINFO_CTIMECreation Time
APR::Const::FINFO_DEVDevice
APR::Const::FINFO_DIRENTan atomic unix apr_dir_read()
APR::Const::FINFO_GPROTGroup protection bits
APR::Const::FINFO_GROUPGroup id
APR::Const::FINFO_ICASEwhether device is case insensitive
APR::Const::FINFO_IDENTdevice and inode
APR::Const::FINFO_INODEInode
APR::Const::FINFO_LINKStat the link not the file itself if it is a link
APR::Const::FINFO_MINtype, mtime, ctime, atime, size
APR::Const::FINFO_MTIMEModification Time
APR::Const::FINFO_NAMEname in proper case
APR::Const::FINFO_NLINKNumber of links
APR::Const::FINFO_NORMAll fields provided by an atomic unix apr_stat()
APR::Const::FINFO_OWNERuser and group
APR::Const::FINFO_PROTall protections
APR::Const::FINFO_SIZESize of the file
APR::Const::FINFO_TYPEType
APR::Const::FINFO_UPROTUser protection bits
APR::Const::FINFO_USERUser id
APR::Const::FINFO_WPROTWorld protection bits
:flockuse APR::Const -compile => qw(:flock);
The :flock group is for XXX constants.
APR::Const::FLOCK_EXCLUSIVEAPR::Const::FLOCK_NONBLOCKAPR::Const::FLOCK_SHAREDAPR::Const::FLOCK_TYPEMASK:hookuse APR::Const -compile => qw(:hook);
The :hook group is for XXX constants.
APR::Const::HOOK_FIRSTAPR::Const::HOOK_LASTAPR::Const::HOOK_MIDDLEAPR::Const::HOOK_REALLY_FIRSTAPR::Const::HOOK_REALLY_LAST:limituse APR::Const -compile => qw(:limit);
The :limit group is for XXX constants.
APR::Const::LIMIT_CPUAPR::Const::LIMIT_MEMAPR::Const::LIMIT_NOFILEAPR::Const::LIMIT_NPROC:lockmechuse APR::Const -compile => qw(:lockmech);
The :lockmech group is for XXX constants.
APR::Const::LOCK_DEFAULTAPR::Const::LOCK_FCNTLAPR::Const::LOCK_FLOCKAPR::Const::LOCK_POSIXSEMAPR::Const::LOCK_PROC_PTHREADAPR::Const::LOCK_SYSVSEM:polluse APR::Const -compile => qw(:poll);
The :poll group is used by poll.
APR::Const::POLLERRPending error
APR::Const::POLLHUPHangup occurred
APR::Const::POLLINCan read without blocking
APR::Const::POLLNVALDescriptor invalid
APR::Const::POLLOUTCan write without blocking
APR::Const::POLLPRIPriority data available
:read_typeuse APR::Const -compile => qw(:read_type);
The :read_type group is for IO constants.
APR::Const::BLOCK_READthe read function blocks
APR::Const::NONBLOCK_READthe read function does not block
:shutdown_howuse APR::Const -compile => qw(:shutdown_how);
The :shutdown_how group is for XXX constants.
APR::Const::SHUTDOWN_READAPR::Const::SHUTDOWN_READWRITEAPR::Const::SHUTDOWN_WRITE:socketuse APR::Const -compile => qw(:socket);
The :socket group is for the APR::Socket object constants, in methods opt_get and opt_set.
The following section discusses in detail each of the :socket constants.
APR::Const::SO_DEBUGPossible values:
XXX
Turns on debugging information
APR::Const::SO_DISCONNECTEDQueries the disconnected state of the socket. (Currently only used on Windows)
Possible values:
XXX
APR::Const::SO_KEEPALIVEKeeps connections active
Possible values:
XXX
APR::Const::SO_LINGERLingers on close if data is present
APR::Const::SO_NONBLOCKTurns blocking IO mode on/off for socket.
Possible values:
1 nonblocking
0 blocking
For example, to set a socket to a blocking IO mode:
use APR::Socket ();
use APR::Const -compile => qw(SO_NONBLOCK);
...
if ($socket->opt_get(APR::Const::SO_NONBLOCK)) {
$socket->opt_set(APR::Const::SO_NONBLOCK => 0);
}
You don't have to query for this option, before setting it. It was done for the demonstration purpose.
APR::Const::SO_RCVBUFControls the ReceiveBufferSize setting
Possible values:
XXX
APR::Const::SO_REUSEADDRThe rules used in validating addresses supplied to bind should allow reuse of local addresses.
Possible values:
XXX
APR::Const::SO_SNDBUFControls the SendBufferSize setting
Possible values:
XXX
:statususe APR::Const -compile => qw(:status);
The :status group is for the API that return status code, or set the error variable XXXXXX.
The following section discusses in detail each of the available :status constants.
APR::Const::TIMEUPThe operation did not finish before the timeout.
Due to possible variants in conditions matching TIMEUP, for checking error codes against this you most likely want to use the APR::Status::is_TIMEUP function instead.
:tableuse APR::Const -compile => qw(:table);
The :table group is for overlap() and compress() constants. See APR::Table for details.
APR::Const::OVERLAP_TABLES_MERGESee APR::Table::compress and APR::Table::overlap.
APR::Const::OVERLAP_TABLES_SETSee APR::Table::compress and APR::Table::overlap.
:uriuse APR::Const -compile => qw(:uri);
The :uri group of constants is for manipulating URIs.
APR::Const::URI_ACAP_DEFAULT_PORTAPR::Const::URI_FTP_DEFAULT_PORTAPR::Const::URI_GOPHER_DEFAULT_PORTAPR::Const::URI_HTTPS_DEFAULT_PORTAPR::Const::URI_HTTP_DEFAULT_PORTAPR::Const::URI_IMAP_DEFAULT_PORTAPR::Const::URI_LDAP_DEFAULT_PORTAPR::Const::URI_NFS_DEFAULT_PORTAPR::Const::URI_NNTP_DEFAULT_PORTAPR::Const::URI_POP_DEFAULT_PORTAPR::Const::URI_PROSPERO_DEFAULT_PORTAPR::Const::URI_RTSP_DEFAULT_PORTAPR::Const::URI_SIP_DEFAULT_PORTAPR::Const::URI_SNEWS_DEFAULT_PORTAPR::Const::URI_SSH_DEFAULT_PORTAPR::Const::URI_TELNET_DEFAULT_PORTAPR::Const::URI_TIP_DEFAULT_PORTAPR::Const::URI_UNP_OMITPASSWORDSee APR::URI::unparse.
APR::Const::URI_UNP_OMITPATHINFOSee APR::URI::unparse.
APR::Const::URI_UNP_OMITQUERYSee APR::URI::unparse.
APR::Const::URI_UNP_OMITSITEPARTSee APR::URI::unparse.
APR::Const::URI_UNP_OMITUSERSee APR::URI::unparse.
APR::Const::URI_UNP_OMITUSERINFOAPR::Const::URI_UNP_REVEALPASSWORDSee APR::URI::unparse.
APR::Const::URI_WAIS_DEFAULT_PORTAPR::PerlIO::PERLIO_LAYERS_ARE_ENABLEDmod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.