Apache HTTPD
Macros | Variables
Filepath Manipulation Functions

Macros

#define APR_FILEPATH_NOTABOVEROOT   0x01
 
#define APR_FILEPATH_SECUREROOTTEST   0x02
 
#define APR_FILEPATH_SECUREROOT   0x03
 
#define APR_FILEPATH_NOTRELATIVE   0x04
 
#define APR_FILEPATH_NOTABSOLUTE   0x08
 
#define APR_FILEPATH_NATIVE   0x10
 
#define APR_FILEPATH_TRUENAME   0x20
 
#define APR_FILEPATH_ENCODING_UNKNOWN   0
 
#define APR_FILEPATH_ENCODING_LOCALE   1
 
#define APR_FILEPATH_ENCODING_UTF8   2
 

Variables

const char ** filepath
 
const char apr_int32_t flags
 
const char apr_int32_t apr_pool_tp
 
const charrootpath
 
const char const charaddpath
 
const charliststr
 
apr_array_header_tpathelts
 

Detailed Description

Macro Definition Documentation

◆ APR_FILEPATH_ENCODING_LOCALE

#define APR_FILEPATH_ENCODING_LOCALE   1

The FilePath character encoding is locale-dependent

Definition at line 407 of file apr_file_info.h.

◆ APR_FILEPATH_ENCODING_UNKNOWN

#define APR_FILEPATH_ENCODING_UNKNOWN   0

The FilePath character encoding is unknown

Definition at line 404 of file apr_file_info.h.

◆ APR_FILEPATH_ENCODING_UTF8

#define APR_FILEPATH_ENCODING_UTF8   2

The FilePath character encoding is UTF-8

Definition at line 410 of file apr_file_info.h.

◆ APR_FILEPATH_NATIVE

#define APR_FILEPATH_NATIVE   0x10

Return the file system's native path format (e.g. path delimiters of ':' on MacOS9, '\' on Win32, etc.)

Definition at line 305 of file apr_file_info.h.

◆ APR_FILEPATH_NOTABOVEROOT

#define APR_FILEPATH_NOTABOVEROOT   0x01

Cause apr_filepath_merge to fail if addpath is above rootpath

Bug:
in APR 0.9 and 1.x, this flag's behavior is undefined if the rootpath is NULL or empty. In APR 2.0 this should be changed to imply NOTABSOLUTE if the rootpath is NULL or empty.

Definition at line 287 of file apr_file_info.h.

◆ APR_FILEPATH_NOTABSOLUTE

#define APR_FILEPATH_NOTABSOLUTE   0x08

Fail apr_filepath_merge if the merged path is absolute

Definition at line 301 of file apr_file_info.h.

◆ APR_FILEPATH_NOTRELATIVE

#define APR_FILEPATH_NOTRELATIVE   0x04

Fail apr_filepath_merge if the merged path is relative

Definition at line 298 of file apr_file_info.h.

◆ APR_FILEPATH_SECUREROOT

#define APR_FILEPATH_SECUREROOT   0x03

Cause apr_filepath_merge to fail if addpath is above rootpath, even given a rootpath /foo/bar and an addpath ../bar/bash

Definition at line 295 of file apr_file_info.h.

◆ APR_FILEPATH_SECUREROOTTEST

#define APR_FILEPATH_SECUREROOTTEST   0x02

internal: Only meaningful with APR_FILEPATH_NOTABOVEROOT

Definition at line 290 of file apr_file_info.h.

◆ APR_FILEPATH_TRUENAME

#define APR_FILEPATH_TRUENAME   0x20

Resolve the true case of existing directories and file elements of addpath, (resolving any aliases on Win32) and append a proper trailing slash if a directory

Definition at line 311 of file apr_file_info.h.

Variable Documentation

◆ addpath

const char const char* addpath

Definition at line 356 of file apr_file_info.h.

◆ filepath

const char** filepath

Definition at line 337 of file apr_file_info.h.

◆ flags

apr_int32_t flags

Definition at line 338 of file apr_file_info.h.

◆ liststr

const char* liststr

Definition at line 370 of file apr_file_info.h.

◆ p

Definition at line 339 of file apr_file_info.h.

◆ pathelts

apr_array_header_t* pathelts

Definition at line 383 of file apr_file_info.h.

◆ rootpath

const char* rootpath

Definition at line 355 of file apr_file_info.h.