APR::Const - Perl Interface for APR Constants


NAME

APR::Const - Perl Interface for APR Constants


Synopsis

  # 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 ...);


Description

This package contains constants specific to APR features.

Refer to the Apache::Const description section|docs::2.0::api::Apache::Const/Description> for more information.


Constants

:common

  use APR::Const -compile => qw(:common);

The :common group is for XXX constants.

APR::SUCCESS

since: 1.99_12

:error

  use APR::Const -compile => qw(:error);

The :error group is for XXX constants.

APR::EABOVEROOT

since: 1.99_12

APR::EABSOLUTE

since: 1.99_12

APR::EACCES

since: 1.99_12

APR::EAGAIN

since: 1.99_12

The error Resource temporarily unavailable, may be returned by many different system calls, especially IO calls.

APR::EBADDATE

since: 1.99_12

APR::EBADF

since: 1.99_12

APR::EBADIP

since: 1.99_12

APR::EBADMASK

since: 1.99_12

APR::EBADPATH

since: 1.99_12

APR::EBUSY

since: 1.99_12

APR::ECONNABORTED

since: 1.99_12

APR::ECONNREFUSED

since: 1.99_12

APR::ECONNRESET

since: 1.99_12

APR::EDSOOPEN

since: 1.99_12

APR::EEXIST

since: 1.99_12

APR::EFTYPE

since: 1.99_12

APR::EGENERAL

since: 1.99_12

APR::EHOSTUNREACH

since: 1.99_12

APR::EINCOMPLETE

since: 1.99_12

APR::EINIT

since: 1.99_12

APR::EINPROGRESS

since: 1.99_12

APR::EINTR

since: 1.99_12

APR::EINVAL

since: 1.99_12

APR::EINVALSOCK

since: 1.99_12

APR::EMFILE

since: 1.99_12

APR::EMISMATCH

since: 1.99_12

APR::ENAMETOOLONG

since: 1.99_12

APR::END

since: 1.99_12

APR::ENETUNREACH

since: 1.99_12

APR::ENFILE

since: 1.99_12

APR::ENODIR

since: 1.99_12

APR::ENOENT

since: 1.99_12

APR::ENOLOCK

since: 1.99_12

APR::ENOMEM

since: 1.99_12

APR::ENOPOLL

since: 1.99_12

APR::ENOPOOL

since: 1.99_12

APR::ENOPROC

since: 1.99_12

APR::ENOSHMAVAIL

since: 1.99_12

APR::ENOSOCKET

since: 1.99_12

APR::ENOSPC

since: 1.99_12

APR::ENOSTAT

since: 1.99_12

APR::ENOTDIR

since: 1.99_12

APR::ENOTEMPTY

since: 1.99_12

APR::ENOTHDKEY

since: 1.99_12

APR::ENOTHREAD

since: 1.99_12

APR::ENOTIME

since: 1.99_12

APR::ENOTIMPL

since: 1.99_12

APR::ENOTSOCK

since: 1.99_12

APR::EOF

since: 1.99_12

APR::EPATHWILD

since: 1.99_12

APR::EPIPE

since: 1.99_12

APR::EPROC_UNKNOWN

since: 1.99_12

APR::ERELATIVE

since: 1.99_12

APR::ESPIPE

since: 1.99_12

APR::ESYMNOTFOUND

since: 1.99_12

APR::ETIMEDOUT

since: 1.99_12

APR::EXDEV

since: 1.99_12

:filemode

  use APR::Const -compile => qw(:filemode);

The :filemode group is for XXX constants.

APR::BINARY

since: 1.99_12

APR::BUFFERED

since: 1.99_12

APR::CREATE

since: 1.99_12

APR::DELONCLOSE

since: 1.99_12

APR::EXCL

since: 1.99_12

APR::PEND

since: 1.99_12

APR::READ

since: 1.99_12

APR::TRUNCATE

since: 1.99_12

APR::WRITE

since: 1.99_12

:filepath

  use APR::Const -compile => qw(:filepath);

The :filepath group is for XXX constants.

APR::FILEPATH_ENCODING_LOCALE

since: 1.99_12

APR::FILEPATH_ENCODING_UNKNOWN

since: 1.99_12

APR::FILEPATH_ENCODING_UTF8

since: 1.99_12

APR::FILEPATH_NATIVE

since: 1.99_12

APR::FILEPATH_NOTABOVEROOT

since: 1.99_12

APR::FILEPATH_NOTABSOLUTE

since: 1.99_12

APR::FILEPATH_NOTRELATIVE

since: 1.99_12

APR::FILEPATH_SECUREROOT

since: 1.99_12

APR::FILEPATH_SECUREROOTTEST

since: 1.99_12

APR::FILEPATH_TRUENAME

since: 1.99_12

:fileperms

  use APR::Const -compile => qw(:fileperms);

The :fileperms group is for XXX constants.

APR::GEXECUTE

since: 1.99_12

APR::GREAD

since: 1.99_12

APR::GWRITE

since: 1.99_12

APR::UEXECUTE

since: 1.99_12

APR::UREAD

since: 1.99_12

APR::UWRITE

since: 1.99_12

APR::WEXECUTE

since: 1.99_12

APR::WREAD

since: 1.99_12

APR::WWRITE

since: 1.99_12

:filetype

  use APR::Const -compile => qw(:filetype);

The :filetype group is for XXX constants.

APR::NOFILE

since: 1.99_12

APR::REG

since: 1.99_12

APR::DIR

since: 1.99_12

APR::CHR

since: 1.99_12

APR::BLK

since: 1.99_12

APR::PIPE

since: 1.99_12

APR::LNK

since: 1.99_12

APR::SOCK

since: 1.99_12

APR::UNKFILE

since: 1.99_12

:finfo

  use APR::Const -compile => qw(:finfo);

The :finfo group is for XXX constants.

APR::FINFO_ATIME

since: 1.99_12

APR::FINFO_CSIZE

since: 1.99_12

APR::FINFO_CTIME

since: 1.99_12

APR::FINFO_DEV

since: 1.99_12

APR::FINFO_DIRENT

since: 1.99_12

APR::FINFO_GPROT

since: 1.99_12

APR::FINFO_GROUP

since: 1.99_12

APR::FINFO_ICASE

since: 1.99_12

APR::FINFO_IDENT

since: 1.99_12

APR::FINFO_INODE

since: 1.99_12

APR::FINFO_LINK

since: 1.99_12

APR::FINFO_MIN

since: 1.99_12

APR::FINFO_MTIME

since: 1.99_12

APR::FINFO_NAME

since: 1.99_12

APR::FINFO_NLINK

since: 1.99_12

APR::FINFO_NORM

since: 1.99_12

APR::FINFO_OWNER

since: 1.99_12

APR::FINFO_PROT

since: 1.99_12

APR::FINFO_SIZE

since: 1.99_12

APR::FINFO_TYPE

since: 1.99_12

APR::FINFO_UPROT

since: 1.99_12

APR::FINFO_USER

since: 1.99_12

APR::FINFO_WPROT

since: 1.99_12

:flock

  use APR::Const -compile => qw(:flock);

The :flock group is for XXX constants.

APR::FLOCK_EXCLUSIVE

since: 1.99_12

APR::FLOCK_NONBLOCK

since: 1.99_12

APR::FLOCK_SHARED

since: 1.99_12

APR::FLOCK_TYPEMASK

since: 1.99_12

:hook

  use APR::Const -compile => qw(:hook);

The :hook group is for XXX constants.

APR::HOOK_FIRST

since: 1.99_12

APR::HOOK_LAST

since: 1.99_12

APR::HOOK_MIDDLE

since: 1.99_12

APR::HOOK_REALLY_FIRST

since: 1.99_12

APR::HOOK_REALLY_LAST

since: 1.99_12

:limit

  use APR::Const -compile => qw(:limit);

The :limit group is for XXX constants.

APR::LIMIT_CPU

since: 1.99_12

APR::LIMIT_MEM

since: 1.99_12

APR::LIMIT_NOFILE

since: 1.99_12

APR::LIMIT_NPROC

since: 1.99_12

:lockmech

  use APR::Const -compile => qw(:lockmech);

The :lockmech group is for XXX constants.

APR::LOCK_DEFAULT

since: 1.99_12

APR::LOCK_FCNTL

since: 1.99_12

APR::LOCK_FLOCK

since: 1.99_12

APR::LOCK_POSIXSEM

since: 1.99_12

APR::LOCK_PROC_PTHREAD

since: 1.99_12

APR::LOCK_SYSVSEM

since: 1.99_12

:poll

  use APR::Const -compile => qw(:poll);

The :poll group is for XXX constants.

APR::POLLERR

since: 1.99_12

APR::POLLHUP

since: 1.99_12

APR::POLLIN

since: 1.99_12

APR::POLLNVAL

since: 1.99_12

APR::POLLOUT

since: 1.99_12

APR::POLLPRI

since: 1.99_12

:read_type

  use APR::Const -compile => qw(:read_type);

The :read_type group is for IO constants.

APR::BLOCK_READ

since: 1.99_12

the read function blocks

APR::NONBLOCK_READ

since: 1.99_12

the read function does not block

:shutdown_how

  use APR::Const -compile => qw(:shutdown_how);

The :shutdown_how group is for XXX constants.

APR::SHUTDOWN_READ

since: 1.99_12

APR::SHUTDOWN_READWRITE

since: 1.99_12

APR::SHUTDOWN_WRITE

since: 1.99_12

:socket

  use APR::Const -compile => qw(:socket);

The :socket group is for the APR::Socket|docs::2.0::api::APR::Socket object constants, in methods opt_get|docs::2.0::api::APR::Socket/C_opt_get_ and opt_set|docs::2.0::api::APR::Socket/C_opt_set_.

The following section discusses in detail each of the :socket constants.

APR::SO_DEBUG

Possible values:

XXX

since: 1.99_12

Turns on debugging information

APR::SO_DISCONNECTED

Queries the disconnected state of the socket. (Currently only used on Windows)

Possible values:

XXX

since: 1.99_12

APR::SO_KEEPALIVE

Keeps connections active

Possible values:

XXX

since: 1.99_12

APR::SO_LINGER

Lingers on close if data is present

since: 1.99_12

APR::SO_NONBLOCK

Turns 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::SO_NONBLOCK)) {
      $socket->opt_set(APR::SO_NONBLOCK => 0);
  }

You don't have to query for this option, before setting it. It was done for the demonstration purpose.

since: 1.99_12

APR::SO_RCVBUF

Controls the ReceiveBufferSize setting

Possible values:

XXX

since: 1.99_12

APR::SO_REUSEADDR

The rules used in validating addresses supplied to bind should allow reuse of local addresses.

Possible values:

XXX

since: 1.99_12

APR::SO_SNDBUF

Controls the SendBufferSize setting

Possible values:

XXX

since: 1.99_12

:status

  use 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::TIMEUP

The operation did not finish before the timeout.

since: 1.99_14

:table

  use APR::Const -compile => qw(:table);

The :table group is for overlap() and compress() constants. See APR::Table|docs::2.0::api::APR::Table for details.

APR::OVERLAP_TABLES_MERGE

since: 1.99_12

See APR::Table::compress|docs::2.0::api::APR::Table/C_compress_ and APR::Table::overlap|docs::2.0::api::APR::Table/C_overlap_.

APR::OVERLAP_TABLES_SET

since: 1.99_12

See APR::Table::compress|docs::2.0::api::APR::Table/C_compress_ and APR::Table::overlap|docs::2.0::api::APR::Table/C_overlap_.

:uri

  use APR::Const -compile => qw(:uri);

The :uri group of constants is for manipulating URIs.

APR::URI_ACAP_DEFAULT_PORT

since: 1.99_12

APR::URI_FTP_DEFAULT_PORT

since: 1.99_12

APR::URI_GOPHER_DEFAULT_PORT

since: 1.99_12

APR::URI_HTTPS_DEFAULT_PORT

since: 1.99_12

APR::URI_HTTP_DEFAULT_PORT

since: 1.99_12

APR::URI_IMAP_DEFAULT_PORT

since: 1.99_12

APR::URI_LDAP_DEFAULT_PORT

since: 1.99_12

APR::URI_NFS_DEFAULT_PORT

since: 1.99_12

APR::URI_NNTP_DEFAULT_PORT

since: 1.99_12

APR::URI_POP_DEFAULT_PORT

since: 1.99_12

APR::URI_PROSPERO_DEFAULT_PORT

since: 1.99_12

APR::URI_RTSP_DEFAULT_PORT

since: 1.99_12

APR::URI_SIP_DEFAULT_PORT

since: 1.99_12

APR::URI_SNEWS_DEFAULT_PORT

since: 1.99_12

APR::URI_SSH_DEFAULT_PORT

since: 1.99_12

APR::URI_TELNET_DEFAULT_PORT

since: 1.99_12

APR::URI_TIP_DEFAULT_PORT

since: 1.99_12

APR::URI_UNP_OMITPASSWORD

since: 1.99_12

See APR::URI::unparse|docs::2.0::api::APR::URI/C_unparse_.

APR::URI_UNP_OMITPATHINFO

since: 1.99_12

See APR::URI::unparse|docs::2.0::api::APR::URI/C_unparse_.

APR::URI_UNP_OMITQUERY

since: 1.99_12

See APR::URI::unparse|docs::2.0::api::APR::URI/C_unparse_.

APR::URI_UNP_OMITSITEPART

since: 1.99_12

See APR::URI::unparse|docs::2.0::api::APR::URI/C_unparse_.

APR::URI_UNP_OMITUSER

since: 1.99_12

See APR::URI::unparse|docs::2.0::api::APR::URI/C_unparse_.

APR::URI_UNP_OMITUSERINFO

since: 1.99_12

APR::URI_UNP_REVEALPASSWORD

since: 1.99_12

See APR::URI::unparse|docs::2.0::api::APR::URI/C_unparse_.

APR::URI_WAIS_DEFAULT_PORT

since: 1.99_12

Other Constants

APR::PerlIO::PERLIO_LAYERS_ARE_ENABLED

since: 1.99_10

See APR::PerlIO::Constants|docs::2.0::api::APR::PerlIO/Constants)


See Also

mod_perl 2.0 documentation.


Copyright

mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.


Authors

The mod_perl development team and numerous contributors.

 APR::Const - Perl Interface for APR Constants