mod_perl logo perl icon
previous page: APR::BucketType - Perl API for APR bucket typespage up: mod_perl 2.0 APInext page: APR::Date - Perl API for APR date manipulating functions

APR::Const - Perl Interface for APR Constants






Practical mod_perl

Practical mod_perl

By Stas Bekman, Eric Cholet
The mod_perl Developer's Cookbook

The mod_perl Developer's Cookbook

By Geoffrey Young, Paul Lindner, Randy Kobes
mod_perl Pocket Reference

mod_perl Pocket Reference

By Andrew Ford
Writing Apache Modules with Perl and C

Writing Apache Modules with Perl and C

By Lincoln Stein, Doug MacEachern
Embedding Perl in HTML with Mason

Embedding Perl in HTML with Mason

By Dave Rolsky, Ken Williams
mod_perl2 User's Guide

mod_perl2 User's Guide

By Stas Bekman, Jim Brandt


Table of Contents

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


TOP

Description

This package contains constants specific to APR features.

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



TOP

Constants



TOP

:common

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

The :common group is for XXX constants.



TOP

APR::Const::SUCCESS



TOP

:error

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

The :error group is for XXX constants.



TOP

APR::Const::EABOVEROOT



TOP

APR::Const::EABSOLUTE



TOP

APR::Const::EACCES

Due 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.



TOP

APR::Const::EAGAIN

The 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.



TOP

APR::Const::EBADDATE



TOP

APR::Const::EBADF



TOP

APR::Const::EBADIP



TOP

APR::Const::EBADMASK



TOP

APR::Const::EBADPATH



TOP

APR::Const::EBUSY



TOP

APR::Const::ECONNABORTED

Due 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.



TOP

APR::Const::ECONNREFUSED



TOP

APR::Const::ECONNRESET

Due 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.



TOP

APR::Const::EDSOOPEN



TOP

APR::Const::EEXIST



TOP

APR::Const::EFTYPE



TOP

APR::Const::EGENERAL



TOP

APR::Const::EHOSTUNREACH



TOP

APR::Const::EINCOMPLETE



TOP

APR::Const::EINIT



TOP

APR::Const::EINPROGRESS



TOP

APR::Const::EINTR



TOP

APR::Const::EINVAL



TOP

APR::Const::EINVALSOCK



TOP

APR::Const::EMFILE



TOP

APR::Const::EMISMATCH



TOP

APR::Const::ENAMETOOLONG



TOP

APR::Const::END



TOP

APR::Const::ENETUNREACH



TOP

APR::Const::ENFILE



TOP

APR::Const::ENODIR



TOP

APR::Const::ENOENT

Due 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.



TOP

APR::Const::ENOLOCK



TOP

APR::Const::ENOMEM



TOP

APR::Const::ENOPOLL



TOP

APR::Const::ENOPOOL



TOP

APR::Const::ENOPROC



TOP

APR::Const::ENOSHMAVAIL



TOP

APR::Const::ENOSOCKET



TOP

APR::Const::ENOSPC



TOP

APR::Const::ENOSTAT



TOP

APR::Const::ENOTDIR



TOP

APR::Const::ENOTEMPTY



TOP

APR::Const::ENOTHDKEY



TOP

APR::Const::ENOTHREAD



TOP

APR::Const::ENOTIME



TOP

APR::Const::ENOTIMPL

Something is not implemented



TOP

APR::Const::ENOTSOCK



TOP

APR::Const::EOF

Due 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.



TOP

APR::Const::EPATHWILD



TOP

APR::Const::EPIPE



TOP

APR::Const::EPROC_UNKNOWN



TOP

APR::Const::ERELATIVE



TOP

APR::Const::ESPIPE



TOP

APR::Const::ESYMNOTFOUND



TOP

APR::Const::ETIMEDOUT



TOP

APR::Const::EXDEV



TOP

:fopen

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

The :fopen group is for XXX constants.



TOP

APR::Const::FOPEN_BINARY



TOP

APR::Const::FOPEN_BUFFERED



TOP

APR::Const::FOPEN_CREATE



TOP

APR::Const::FOPEN_DELONCLOSE



TOP

APR::Const::FOPEN_EXCL



TOP

APR::Const::FOPEN_PEND



TOP

APR::Const::FOPEN_READ



TOP

APR::Const::FOPEN_TRUNCATE



TOP

APR::Const::FOPEN_WRITE



TOP

:filepath

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

The :filepath group is for XXX constants.



TOP

APR::Const::FILEPATH_ENCODING_LOCALE



TOP

APR::Const::FILEPATH_ENCODING_UNKNOWN



TOP

APR::Const::FILEPATH_ENCODING_UTF8



TOP

APR::Const::FILEPATH_NATIVE



TOP

APR::Const::FILEPATH_NOTABOVEROOT



TOP

APR::Const::FILEPATH_NOTABSOLUTE



TOP

APR::Const::FILEPATH_NOTRELATIVE



TOP

APR::Const::FILEPATH_SECUREROOT



TOP

APR::Const::FILEPATH_SECUREROOTTEST



TOP

APR::Const::FILEPATH_TRUENAME



TOP

:fprot

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

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



TOP

APR::Const::FPROT_GEXECUTE

Execute by group



TOP

APR::Const::FPROT_GREAD

Read by group



TOP

APR::Const::FPROT_GSETID

Set group id



TOP

APR::Const::FPROT_GWRITE

Write by group



TOP

APR::Const::FPROT_OS_DEFAULT

use OS's default permissions



TOP

APR::Const::FPROT_UEXECUTE

Execute by user



TOP

APR::Const::FPROT_UREAD

Read by user



TOP

APR::Const::FPROT_USETID

Set user id



TOP

APR::Const::FPROT_UWRITE

Write by user



TOP

APR::Const::FPROT_WEXECUTE

Execute by others



TOP

APR::Const::FPROT_WREAD

Read by others



TOP

APR::Const::FPROT_WSTICKY

Sticky bit



TOP

APR::Const::FPROT_WWRITE

Write by others



TOP

:filetype

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

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



TOP

APR::Const::FILETYPE_BLK

a file is a block device



TOP

APR::Const::FILETYPE_CHR

a file is a character device



TOP

APR::Const::FILETYPE_DIR

a file is a directory



TOP

APR::Const::FILETYPE_LNK

a file is a symbolic link



TOP

APR::Const::FILETYPE_NOFILE

the file type is undedetermined.



TOP

APR::Const::FILETYPE_PIPE

a file is a FIFO or a pipe.



TOP

APR::Const::FILETYPE_REG

a file is a regular file.



TOP

APR::Const::FILETYPE_SOCK

a file is a [unix domain] socket.



TOP

APR::Const::FILETYPE_UNKFILE

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



TOP

:finfo

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

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



TOP

APR::Const::FINFO_ATIME

Access Time



TOP

APR::Const::FINFO_CSIZE

Storage size consumed by the file



TOP

APR::Const::FINFO_CTIME

Creation Time



TOP

APR::Const::FINFO_DEV

Device



TOP

APR::Const::FINFO_DIRENT

an atomic unix apr_dir_read()



TOP

APR::Const::FINFO_GPROT

Group protection bits



TOP

APR::Const::FINFO_GROUP

Group id



TOP

APR::Const::FINFO_ICASE

whether device is case insensitive



TOP

APR::Const::FINFO_IDENT

device and inode



TOP

APR::Const::FINFO_INODE

Inode



TOP

APR::Const::FINFO_LINK

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



TOP