man 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 CWAPR features.

Refer to CWthe Apache2::Const description section for more information.

Constants

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

The CW:common group is for XXX constants.

CIAPR::Const::SUCCESS

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

The CW:error group is for XXX constants.

CIAPR::Const::EABOVEROOT

since: 2.0.00

CIAPR::Const::EABSOLUTE

since: 2.0.00

CIAPR::Const::EACCES

since: 2.0.00

Due to possible variants in conditions matching CWEACCES, for checking error codes against this you most likely want to use the CWAPR::Status::is_EACCES function instead.

CIAPR::Const::EAGAIN

since: 2.0.00

The error Resource temporarily unavailable, may be returned by many different system calls, especially IO calls. Most likely you want to use the CWAPR::Status::is_EAGAIN function instead.

CIAPR::Const::EBADDATE

since: 2.0.00

CIAPR::Const::EBADF

since: 2.0.00

CIAPR::Const::EBADIP

since: 2.0.00

CIAPR::Const::EBADMASK

since: 2.0.00

CIAPR::Const::EBADPATH

since: 2.0.00

CIAPR::Const::EBUSY

since: 2.0.00

CIAPR::Const::ECONNABORTED

since: 2.0.00

Due to possible variants in conditions matching CWECONNABORTED, for checking error codes against this you most likely want to use the CWAPR::Status::is_ECONNABORTED function instead.

CIAPR::Const::ECONNREFUSED

since: 2.0.00

CIAPR::Const::ECONNRESET

since: 2.0.00

Due to possible variants in conditions matching CWECONNRESET, for checking error codes against this you most likely want to use the CWAPR::Status::is_ECONNRESET function instead.

CIAPR::Const::EDSOOPEN

since: 2.0.00

CIAPR::Const::EEXIST

since: 2.0.00

CIAPR::Const::EFTYPE

since: 2.0.00

CIAPR::Const::EGENERAL

since: 2.0.00

CIAPR::Const::EHOSTUNREACH

since: 2.0.00

CIAPR::Const::EINCOMPLETE

since: 2.0.00

CIAPR::Const::EINIT

since: 2.0.00

CIAPR::Const::EINPROGRESS

since: 2.0.00

CIAPR::Const::EINTR

since: 2.0.00

CIAPR::Const::EINVAL

since: 2.0.00

CIAPR::Const::EINVALSOCK

since: 2.0.00

CIAPR::Const::EMFILE

since: 2.0.00

CIAPR::Const::EMISMATCH

since: 2.0.00

CIAPR::Const::ENAMETOOLONG

since: 2.0.00

CIAPR::Const::END

since: 2.0.00

CIAPR::Const::ENETUNREACH

since: 2.0.00

CIAPR::Const::ENFILE

since: 2.0.00

CIAPR::Const::ENODIR

since: 2.0.00

CIAPR::Const::ENOENT

since: 2.0.00

Due to possible variants in conditions matching CWENOENT, for checking error codes against this you most likely want to use the CWAPR::Status::is_ENOENT function instead.

CIAPR::Const::ENOLOCK

since: 2.0.00

CIAPR::Const::ENOMEM

since: 2.0.00

CIAPR::Const::ENOPOLL

since: 2.0.00

CIAPR::Const::ENOPOOL

since: 2.0.00

CIAPR::Const::ENOPROC

since: 2.0.00

CIAPR::Const::ENOSHMAVAIL

since: 2.0.00

CIAPR::Const::ENOSOCKET

since: 2.0.00

CIAPR::Const::ENOSPC

since: 2.0.00

CIAPR::Const::ENOSTAT

since: 2.0.00

CIAPR::Const::ENOTDIR

since: 2.0.00

CIAPR::Const::ENOTEMPTY

since: 2.0.00

CIAPR::Const::ENOTHDKEY

since: 2.0.00

CIAPR::Const::ENOTHREAD

since: 2.0.00

CIAPR::Const::ENOTIME

since: 2.0.00

CIAPR::Const::ENOTIMPL

Something is not implemented

since: 2.0.00

CIAPR::Const::ENOTSOCK

since: 2.0.00

CIAPR::Const::EOF

since: 2.0.00

Due to possible variants in conditions matching CWEOF, for checking error codes against this you most likely want to use the CWAPR::Status::is_EOF function instead.

CIAPR::Const::EPATHWILD

since: 2.0.00

CIAPR::Const::EPIPE

since: 2.0.00

CIAPR::Const::EPROC_UNKNOWN

since: 2.0.00

CIAPR::Const::ERELATIVE

since: 2.0.00

CIAPR::Const::ESPIPE

since: 2.0.00

CIAPR::Const::ESYMNOTFOUND

since: 2.0.00

CIAPR::Const::ETIMEDOUT

since: 2.0.00

CIAPR::Const::EXDEV

since: 2.0.00
  use APR::Const -compile => qw(:fopen);

The CW:fopen group is for XXX constants.

CIAPR::Const::FOPEN_BINARY

since: 2.0.00

CIAPR::Const::FOPEN_BUFFERED

since: 2.0.00

CIAPR::Const::FOPEN_CREATE

since: 2.0.00

CIAPR::Const::FOPEN_DELONCLOSE

since: 2.0.00

CIAPR::Const::FOPEN_EXCL

since: 2.0.00

CIAPR::Const::FOPEN_PEND

since: 2.0.00

CIAPR::Const::FOPEN_READ

since: 2.0.00

CIAPR::Const::FOPEN_TRUNCATE

since: 2.0.00

CIAPR::Const::FOPEN_WRITE

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

The CW:filepath group is for XXX constants.

CIAPR::Const::FILEPATH_ENCODING_LOCALE

since: 2.0.00

CIAPR::Const::FILEPATH_ENCODING_UNKNOWN

since: 2.0.00

CIAPR::Const::FILEPATH_ENCODING_UTF8

since: 2.0.00

CIAPR::Const::FILEPATH_NATIVE

since: 2.0.00

CIAPR::Const::FILEPATH_NOTABOVEROOT

since: 2.0.00

CIAPR::Const::FILEPATH_NOTABSOLUTE

since: 2.0.00

CIAPR::Const::FILEPATH_NOTRELATIVE

since: 2.0.00

CIAPR::Const::FILEPATH_SECUREROOT

since: 2.0.00

CIAPR::Const::FILEPATH_SECUREROOTTEST

since: 2.0.00

CIAPR::Const::FILEPATH_TRUENAME

since: 2.0.00
  use APR::Const -compile => qw(:fprot);

The CW:fprot group is used by CW$finfo->protection.

CIAPR::Const::FPROT_GEXECUTE

Execute by group

since: 2.0.00

CIAPR::Const::FPROT_GREAD

Read by group

since: 2.0.00

CIAPR::Const::FPROT_GSETID

Set group id

since: 2.0.00

CIAPR::Const::FPROT_GWRITE

Write by group

since: 2.0.00

CIAPR::Const::FPROT_OS_DEFAULT

use OS's default permissions

since: 2.0.00

CIAPR::Const::FPROT_UEXECUTE

Execute by user

since: 2.0.00

CIAPR::Const::FPROT_UREAD

Read by user

since: 2.0.00

CIAPR::Const::FPROT_USETID

Set user id

since: 2.0.00

CIAPR::Const::FPROT_UWRITE

Write by user

since: 2.0.00

CIAPR::Const::FPROT_WEXECUTE

Execute by others

since: 2.0.00

CIAPR::Const::FPROT_WREAD

Read by others

since: 2.0.00

CIAPR::Const::FPROT_WSTICKY

Sticky bit

since: 2.0.00

CIAPR::Const::FPROT_WWRITE

Write by others

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

The CW:filetype group is used by CW$finfo->filetype.

CIAPR::Const::FILETYPE_BLK

a file is a block device

since: 2.0.00

CIAPR::Const::FILETYPE_CHR

a file is a character device

since: 2.0.00

CIAPR::Const::FILETYPE_DIR

a file is a directory

since: 2.0.00

CIAPR::Const::FILETYPE_LNK

a file is a symbolic link

since: 2.0.00

CIAPR::Const::FILETYPE_NOFILE

the file type is undedetermined.

since: 2.0.00

CIAPR::Const::FILETYPE_PIPE

a file is a FIFO or a pipe.

since: 2.0.00

CIAPR::Const::FILETYPE_REG

a file is a regular file.

since: 2.0.00

CIAPR::Const::FILETYPE_SOCK

a file is a [unix domain] socket.

since: 2.0.00

CIAPR::Const::FILETYPE_UNKFILE

a file is of some other unknown type or the type cannot be determined.

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

The CW:finfo group is used by CWCIstat()CW and CW$finfo->valid.

CIAPR::Const::FINFO_ATIME

Access Time

since: 2.0.00

CIAPR::Const::FINFO_CSIZE

Storage size consumed by the file

since: 2.0.00

CIAPR::Const::FINFO_CTIME

Creation Time

since: 2.0.00

CIAPR::Const::FINFO_DEV

Device

since: 2.0.00

CIAPR::Const::FINFO_DIRENT

an atomic unix apr_dir_read()

since: 2.0.00

CIAPR::Const::FINFO_GPROT

Group protection bits

since: 2.0.00

CIAPR::Const::FINFO_GROUP

Group id

since: 2.0.00

CIAPR::Const::FINFO_ICASE

whether device is case insensitive

since: 2.0.00

CIAPR::Const::FINFO_IDENT

device and inode

since: 2.0.00

CIAPR::Const::FINFO_INODE

Inode

since: 2.0.00

CIAPR::Const::FINFO_LINK

Stat the link not the file itself if it is a link

since: 2.0.00

CIAPR::Const::FINFO_MIN

type, mtime, ctime, atime, size

since: 2.0.00

CIAPR::Const::FINFO_MTIME

Modification Time

since: 2.0.00

CIAPR::Const::FINFO_NAME

name in proper case

since: 2.0.00

CIAPR::Const::FINFO_NLINK

Number of links

since: 2.0.00

CIAPR::Const::FINFO_NORM

All fields provided by an atomic unix apr_stat()

since: 2.0.00

CIAPR::Const::FINFO_OWNER

user and group

since: 2.0.00

CIAPR::Const::FINFO_PROT

all protections

since: 2.0.00

CIAPR::Const::FINFO_SIZE

Size of the file

since: 2.0.00

CIAPR::Const::FINFO_TYPE

Type

since: 2.0.00

CIAPR::Const::FINFO_UPROT

User protection bits

since: 2.0.00

CIAPR::Const::FINFO_USER

User id

since: 2.0.00

CIAPR::Const::FINFO_WPROT

World protection bits

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

The CW:flock group is for XXX constants.

CIAPR::Const::FLOCK_EXCLUSIVE

since: 2.0.00

CIAPR::Const::FLOCK_NONBLOCK

since: 2.0.00

CIAPR::Const::FLOCK_SHARED

since: 2.0.00

CIAPR::Const::FLOCK_TYPEMASK

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

The CW:hook group is for XXX constants.

CIAPR::Const::HOOK_FIRST

since: 2.0.00

CIAPR::Const::HOOK_LAST

since: 2.0.00

CIAPR::Const::HOOK_MIDDLE

since: 2.0.00

CIAPR::Const::HOOK_REALLY_FIRST

since: 2.0.00

CIAPR::Const::HOOK_REALLY_LAST

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

The CW:limit group is for XXX constants.

CIAPR::Const::LIMIT_CPU

since: 2.0.00

CIAPR::Const::LIMIT_MEM

since: 2.0.00

CIAPR::Const::LIMIT_NOFILE

since: 2.0.00

CIAPR::Const::LIMIT_NPROC

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

The CW:lockmech group is for XXX constants.

CIAPR::Const::LOCK_DEFAULT

since: 2.0.00

CIAPR::Const::LOCK_FCNTL

since: 2.0.00

CIAPR::Const::LOCK_FLOCK

since: 2.0.00

CIAPR::Const::LOCK_POSIXSEM

since: 2.0.00

CIAPR::Const::LOCK_PROC_PTHREAD

since: 2.0.00

CIAPR::Const::LOCK_SYSVSEM

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

The CW:poll group is used by CWpoll.

CIAPR::Const::POLLERR

since: 2.0.00

Pending error

CIAPR::Const::POLLHUP

since: 2.0.00

Hangup occurred

CIAPR::Const::POLLIN

since: 2.0.00

Can read without blocking

CIAPR::Const::POLLNVAL

since: 2.0.00

Descriptior invalid

CIAPR::Const::POLLOUT

since: 2.0.00

Can write without blocking

CIAPR::Const::POLLPRI

since: 2.0.00

Priority data available

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

The CW:read_type group is for IO constants.

CIAPR::Const::BLOCK_READ

since: 2.0.00

the read function blocks

CIAPR::Const::NONBLOCK_READ

since: 2.0.00

the read function does not block

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

The CW:shutdown_how group is for XXX constants.

CIAPR::Const::SHUTDOWN_READ

since: 2.0.00

CIAPR::Const::SHUTDOWN_READWRITE

since: 2.0.00

CIAPR::Const::SHUTDOWN_WRITE

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

The CW:socket group is for the CWAPR::Socket object constants, in methods CWopt_get and CWopt_set.

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

CIAPR::Const::SO_DEBUG

Possible values:

XXX

since: 2.0.00

Turns on debugging information

CIAPR::Const::SO_DISCONNECTED

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

Possible values:

XXX

since: 2.0.00

CIAPR::Const::SO_KEEPALIVE

Keeps connections active

Possible values:

XXX

since: 2.0.00

CIAPR::Const::SO_LINGER

Lingers on close if data is present

since: 2.0.00

CIAPR::Const::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::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.

since: 2.0.00

CIAPR::Const::SO_RCVBUF

Controls the CWReceiveBufferSize setting

Possible values:

XXX

since: 2.0.00

CIAPR::Const::SO_REUSEADDR

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

Possible values:

XXX

since: 2.0.00

CIAPR::Const::SO_SNDBUF

Controls the CWSendBufferSize setting

Possible values:

XXX

since: 2.0.00
  use APR::Const -compile => qw(:status);

The CW: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 CW:status constants.

CIAPR::Const::TIMEUP

The operation did not finish before the timeout.

since: 2.0.00

Due to possible variants in conditions matching CWTIMEUP, for checking error codes against this you most likely want to use the CWAPR::Status::is_TIMEUP function instead.

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

The CW:table group is for CWoverlap() and CWcompress() constants. See CWAPR::Table for details.

CIAPR::Const::OVERLAP_TABLES_MERGE

since: 2.0.00

See CWAPR::Table::compress and CWAPR::Table::overlap.

CIAPR::Const::OVERLAP_TABLES_SET

since: 2.0.00

See CWAPR::Table::compress and CWAPR::Table::overlap.

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

The CW:uri group of constants is for manipulating URIs.

CIAPR::Const::URI_ACAP_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_FTP_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_GOPHER_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_HTTPS_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_HTTP_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_IMAP_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_LDAP_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_NFS_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_NNTP_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_POP_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_PROSPERO_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_RTSP_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_SIP_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_SNEWS_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_SSH_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_TELNET_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_TIP_DEFAULT_PORT

since: 2.0.00

CIAPR::Const::URI_UNP_OMITPASSWORD

since: 2.0.00

See CWAPR::URI::unparse.

CIAPR::Const::URI_UNP_OMITPATHINFO

since: 2.0.00

See CWAPR::URI::unparse.

CIAPR::Const::URI_UNP_OMITQUERY

since: 2.0.00

See CWAPR::URI::unparse.

CIAPR::Const::URI_UNP_OMITSITEPART

since: 2.0.00

See CWAPR::URI::unparse.

CIAPR::Const::URI_UNP_OMITUSER

since: 2.0.00

See CWAPR::URI::unparse.

CIAPR::Const::URI_UNP_OMITUSERINFO

since: 2.0.00

CIAPR::Const::URI_UNP_REVEALPASSWORD

since: 2.0.00

See CWAPR::URI::unparse.

CIAPR::Const::URI_WAIS_DEFAULT_PORT

since: 2.0.00

Other Constants

CIAPR::PerlIO::PERLIO_LAYERS_ARE_ENABLED

since: 2.0.00

See CWAPR::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.