Apache2
apr_arch_file_io.h File Reference
#include "apr.h"
#include "apr_private.h"
#include "apr_general.h"
#include "apr_tables.h"
#include "apr_file_io.h"
#include "apr_file_info.h"
#include "apr_errno.h"
#include "apr_lib.h"
#include "apr_poll.h"
#include "apr_time.h"
#include <sys/stat.h>
#include <fsio.h>
Include dependency graph for apr_arch_file_io.h:

Go to the source code of this file.

Data Structures

struct  apr_rotating_info_t
 
struct  apr_file_t
 
struct  apr_dir_t
 
struct  apr_stat_entry_t
 

Macros

#define APR_FILE_DEFAULT_BUFSIZE   4096
 
#define APR_FILE_BUFSIZE   APR_FILE_DEFAULT_BUFSIZE
 
#define file_lock(f)
 
#define file_unlock(f)
 
#define lseek(f, o, w)   lseek64(f,o,w)
 
#define ftruncate(f, l)   ftruncate64(f,l)
 
#define MAX_SERVER_NAME   64
 
#define MAX_VOLUME_NAME   64
 
#define MAX_PATH_NAME   256
 
#define MAX_FILE_NAME   256
 
#define DRIVE_ONLY   1
 

Typedefs

typedef struct stat struct_stat
 
typedef struct apr_rotating_info_t apr_rotating_info_t
 
typedef struct apr_stat_entry_t apr_stat_entry_t
 

Functions

apr_status_t filepath_root_case (char **rootpath, char *root, apr_pool_t *p)
 
apr_status_t filepath_has_drive (const char *rootpath, int only, apr_pool_t *p)
 
apr_status_t filepath_compare_drive (const char *path1, const char *path2, apr_pool_t *p)
 
apr_status_t apr_unix_file_cleanup (void *)
 
apr_status_t apr_unix_child_file_cleanup (void *)
 
mode_t apr_unix_perms2mode (apr_fileperms_t perms)
 
apr_fileperms_t apr_unix_mode2perms (mode_t mode)
 
apr_status_t apr_file_flush_locked (apr_file_t *thefile)
 
apr_status_t apr_file_info_get_locked (apr_finfo_t *finfo, apr_int32_t wanted, apr_file_t *thefile)
 

Macro Definition Documentation

◆ APR_FILE_BUFSIZE

#define APR_FILE_BUFSIZE   APR_FILE_DEFAULT_BUFSIZE

◆ APR_FILE_DEFAULT_BUFSIZE

#define APR_FILE_DEFAULT_BUFSIZE   4096

◆ DRIVE_ONLY

#define DRIVE_ONLY   1

◆ file_lock

#define file_lock (   f)
Value:
do { \
if ((f)->thlock) \
apr_thread_mutex_lock((f)->thlock); \
} while (0)

◆ file_unlock

#define file_unlock (   f)
Value:
do { \
if ((f)->thlock) \
apr_thread_mutex_unlock((f)->thlock); \
} while (0)

◆ ftruncate

#define ftruncate (   f,
 
)    ftruncate64(f,l)

◆ lseek

#define lseek (   f,
  o,
 
)    lseek64(f,o,w)

◆ MAX_FILE_NAME

#define MAX_FILE_NAME   256

◆ MAX_PATH_NAME

#define MAX_PATH_NAME   256

◆ MAX_SERVER_NAME

#define MAX_SERVER_NAME   64

◆ MAX_VOLUME_NAME

#define MAX_VOLUME_NAME   64

Typedef Documentation

◆ apr_rotating_info_t

◆ apr_stat_entry_t

◆ struct_stat

typedef struct stat struct_stat

Function Documentation

◆ apr_file_flush_locked()

apr_status_t apr_file_flush_locked ( apr_file_t thefile)

◆ apr_file_info_get_locked()

apr_status_t apr_file_info_get_locked ( apr_finfo_t finfo,
apr_int32_t  wanted,
apr_file_t thefile 
)

◆ apr_unix_child_file_cleanup()

apr_status_t apr_unix_child_file_cleanup ( void *  )

◆ apr_unix_file_cleanup()

apr_status_t apr_unix_file_cleanup ( void *  )

◆ apr_unix_mode2perms()

apr_fileperms_t apr_unix_mode2perms ( mode_t  mode)

◆ apr_unix_perms2mode()

mode_t apr_unix_perms2mode ( apr_fileperms_t  perms)

◆ filepath_compare_drive()

apr_status_t filepath_compare_drive ( const char *  path1,
const char *  path2,
apr_pool_t p 
)

◆ filepath_has_drive()

apr_status_t filepath_has_drive ( const char *  rootpath,
int  only,
apr_pool_t p 
)

◆ filepath_root_case()

apr_status_t filepath_root_case ( char **  rootpath,
char *  root,
apr_pool_t p 
)