Apache HTTPD
Macros | Functions
dir.c File Reference
#include "apr_arch_file_io.h"
#include "apr_strings.h"
#include "apr_portable.h"

Go to the source code of this file.

Macros

#define NAME_MAX   255
 
#define PATH_SEPARATOR   '/'
 

Functions

static apr_status_t dir_cleanup (void *thedir)
 
static const charpath_canonicalize (const char *path, apr_pool_t *pool)
 
static charpath_remove_last_component (const char *path, apr_pool_t *pool)
 
apr_status_t apr_dir_open (apr_dir_t **new, const char *dirname, apr_pool_t *pool)
 
apr_status_t apr_dir_close (apr_dir_t *thedir)
 
apr_status_t apr_dir_read (apr_finfo_t *finfo, apr_int32_t wanted, apr_dir_t *thedir)
 
apr_status_t apr_dir_rewind (apr_dir_t *thedir)
 
apr_status_t apr_dir_make (const char *path, apr_fileperms_t perm, apr_pool_t *pool)
 
apr_status_t apr_dir_make_recursive (const char *path, apr_fileperms_t perm, apr_pool_t *pool)
 
apr_status_t apr_dir_remove (const char *path, apr_pool_t *pool)
 
apr_status_t apr_os_dir_get (apr_os_dir_t **thedir, apr_dir_t *dir)
 
apr_status_t apr_os_dir_put (apr_dir_t **dir, apr_os_dir_t *thedir, apr_pool_t *pool)
 

Macro Definition Documentation

◆ NAME_MAX

#define NAME_MAX   255

Definition at line 28 of file dir.c.

◆ PATH_SEPARATOR

#define PATH_SEPARATOR   '/'

Definition at line 42 of file dir.c.

Function Documentation

◆ apr_dir_close()

apr_status_t apr_dir_close ( apr_dir_t thedir)

Definition at line 109 of file dir.c.

◆ apr_dir_make()

apr_status_t apr_dir_make ( const char path,
apr_fileperms_t  perm,
apr_pool_t pool 
)

Definition at line 297 of file dir.c.

◆ apr_dir_make_recursive()

apr_status_t apr_dir_make_recursive ( const char path,
apr_fileperms_t  perm,
apr_pool_t pool 
)

Definition at line 310 of file dir.c.

◆ apr_dir_open()

apr_status_t apr_dir_open ( apr_dir_t **  new,
const char dirname,
apr_pool_t pool 
)

Definition at line 75 of file dir.c.

◆ apr_dir_read()

apr_status_t apr_dir_read ( apr_finfo_t finfo,
apr_int32_t  wanted,
apr_dir_t thedir 
)

< ->name in proper case

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

< ->name in proper case

Definition at line 142 of file dir.c.

◆ apr_dir_remove()

apr_status_t apr_dir_remove ( const char path,
apr_pool_t pool 
)

Definition at line 343 of file dir.c.

◆ apr_dir_rewind()

apr_status_t apr_dir_rewind ( apr_dir_t thedir)

Definition at line 291 of file dir.c.

◆ apr_os_dir_get()

apr_status_t apr_os_dir_get ( apr_os_dir_t **  thedir,
apr_dir_t dir 
)

Definition at line 353 of file dir.c.

◆ apr_os_dir_put()

apr_status_t apr_os_dir_put ( apr_dir_t **  dir,
apr_os_dir_t thedir,
apr_pool_t pool 
)

Definition at line 362 of file dir.c.

◆ dir_cleanup()

static apr_status_t dir_cleanup ( void *  thedir)
static

Definition at line 31 of file dir.c.

◆ path_canonicalize()

static const char * path_canonicalize ( const char path,
apr_pool_t pool 
)
static

Definition at line 45 of file dir.c.

◆ path_remove_last_component()

static char * path_remove_last_component ( const char path,
apr_pool_t pool 
)
static

Definition at line 62 of file dir.c.