Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

Stat Functions
[File Information]

Collaboration diagram for Stat Functions:


Data Structures

struct  apr_finfo_t

Defines

#define APR_FINFO_LINK   0x00000001
#define APR_FINFO_MTIME   0x00000010
#define APR_FINFO_CTIME   0x00000020
#define APR_FINFO_ATIME   0x00000040
#define APR_FINFO_SIZE   0x00000100
#define APR_FINFO_CSIZE   0x00000200
#define APR_FINFO_DEV   0x00001000
#define APR_FINFO_INODE   0x00002000
#define APR_FINFO_NLINK   0x00004000
#define APR_FINFO_TYPE   0x00008000
#define APR_FINFO_USER   0x00010000
#define APR_FINFO_GROUP   0x00020000
#define APR_FINFO_UPROT   0x00100000
#define APR_FINFO_GPROT   0x00200000
#define APR_FINFO_WPROT   0x00400000
#define APR_FINFO_ICASE   0x01000000
#define APR_FINFO_NAME   0x02000000
#define APR_FINFO_MIN   0x00008170
#define APR_FINFO_IDENT   0x00003000
#define APR_FINFO_OWNER   0x00030000
#define APR_FINFO_PROT   0x00700000
#define APR_FINFO_NORM   0x0073b170
#define APR_FINFO_DIRENT   0x02000000

Typedefs

typedef apr_finfo_t apr_finfo_t

Functions

 APR_DECLARE (apr_status_t) apr_stat(apr_finfo_t *finfo

Variables

const char * fname
const char apr_int32_t wanted
const char apr_int32_t apr_pool_tcont
const char * fname

Define Documentation

#define APR_FINFO_ATIME   0x00000040
 

Access Time

Definition at line 138 of file apr_file_info.h.

Referenced by fillin_fileinfo(), finfo_equal(), and FS3_to_finfo().

#define APR_FINFO_CSIZE   0x00000200
 

Storage size consumed by the file

Definition at line 140 of file apr_file_info.h.

Referenced by finfo_equal(), and FS3_to_finfo().

#define APR_FINFO_CTIME   0x00000020
 

Creation Time

Definition at line 137 of file apr_file_info.h.

Referenced by fillin_fileinfo(), finfo_equal(), and FS3_to_finfo().

#define APR_FINFO_DEV   0x00001000
 

Device

Definition at line 141 of file apr_file_info.h.

Referenced by dav_fs_move_resource(), and finfo_equal().

#define APR_FINFO_DIRENT   0x02000000
 

an atomic unix apr_dir_read()

Definition at line 158 of file apr_file_info.h.

Referenced by check_speling(), dav_fs_walker(), process_resource_config_nofnmatch(), read_types_multi(), and test_rewind().

#define APR_FINFO_GPROT   0x00200000
 

Group protection bits

Definition at line 148 of file apr_file_info.h.

Referenced by find_file(), guess_protection_bits(), includes_filter(), includes_setup(), more_finfo(), and resolve_prot().

#define APR_FINFO_GROUP   0x00020000
 

Group

Definition at line 146 of file apr_file_info.h.

Referenced by finfo_equal(), lookup_variable(), more_finfo(), and resolve_prot().

#define APR_FINFO_ICASE   0x01000000
 

if dev is case insensitive

Definition at line 150 of file apr_file_info.h.

#define APR_FINFO_IDENT   0x00003000
 

dev and inode

Definition at line 154 of file apr_file_info.h.

Referenced by APR_DECLARE(), dav_fs_build_key(), and fill_out_finfo().

#define APR_FINFO_INODE   0x00002000
 

Inode

Definition at line 142 of file apr_file_info.h.

Referenced by apr_dir_read(), dav_fs_is_same_resource(), and finfo_equal().

#define APR_FINFO_LINK   0x00000001
 

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

Definition at line 135 of file apr_file_info.h.

Referenced by fillin_fileinfo(), FS3_to_finfo(), resolve_ident(), and resolve_symlink().

#define APR_FINFO_MIN   0x00008170
 

type, mtime, ctime, atime, size

Definition at line 153 of file apr_file_info.h.

Referenced by apply_rewrite_cond(), cache_the_file(), cmd_rewritemap(), dav_fs_load_lock_record(), exists_and_readable(), fill_out_finfo(), find_file(), index_directory(), lookup_map(), prefix_stat(), translate_userdir(), and util_ldap_set_cert_auth().

#define APR_FINFO_MTIME   0x00000010
 

Modification Time

Definition at line 136 of file apr_file_info.h.

Referenced by fillin_fileinfo(), finfo_equal(), FS3_to_finfo(), and test_mtime_set().

#define APR_FINFO_NAME   0x02000000
 

->name in proper case

Definition at line 151 of file apr_file_info.h.

Referenced by APR_DECLARE(), apr_dir_read(), finfo_equal(), index_directory(), resolve_symlink(), SSL_X509_INFO_load_path(), STACK_OF(), and test_uncleared_errno().

#define APR_FINFO_NLINK   0x00004000
 

Number of links

Definition at line 143 of file apr_file_info.h.

Referenced by APR_DECLARE(), fill_out_finfo(), and finfo_equal().

#define APR_FINFO_NORM   0x0073b170
 

an atomic unix apr_stat()

Definition at line 157 of file apr_file_info.h.

Referenced by AP_DECLARE(), APR_DECLARE(), dav_fs_copymove_state(), dav_fs_get_parent_resource(), dav_fs_walker(), open_postfile(), test_file_dup(), test_file_readwrite(), test_info_get(), test_stat(), and test_stat_eq_finfo().

#define APR_FINFO_OWNER   0x00030000
 

user and group

Definition at line 155 of file apr_file_info.h.

Referenced by fill_out_finfo(), more_finfo(), resolve_ident(), and resolve_symlink().

#define APR_FINFO_PROT   0x00700000
 

all protections

Definition at line 156 of file apr_file_info.h.

Referenced by apr_file_transfer_contents(), fill_out_finfo(), finfo_equal(), FS3_to_finfo(), more_finfo(), and resolve_ident().

#define APR_FINFO_SIZE   0x00000100
 

Size of the file

Definition at line 139 of file apr_file_info.h.

Referenced by APR_DECLARE(), APU_DECLARE(), dav_fs_load_locknull_list(), fillin_fileinfo(), find_content_length(), finfo_equal(), FS3_to_finfo(), log_script(), log_scripterror(), main(), open_entity(), ServerSupportFunction(), ssl_expr_eval_func_file(), ssl_util_path_check(), test_buffered_write_size(), and test_truncate().

#define APR_FINFO_TYPE   0x00008000
 

Type

Definition at line 144 of file apr_file_info.h.

Referenced by AP_DECLARE(), apr_dir_read(), exists(), fillin_fileinfo(), finfo_equal(), FS3_to_finfo(), gettemp(), isapi_cmd_cachefile(), read_types_multi(), ssl_util_path_check(), SSL_X509_INFO_load_path(), STACK_OF(), test_mkdir(), test_mkdir_recurs(), test_remove(), and test_uncleared_errno().

#define APR_FINFO_UPROT   0x00100000
 

User protection bits

Definition at line 147 of file apr_file_info.h.

Referenced by dav_fs_insert_prop(), guess_protection_bits(), more_finfo(), and resolve_prot().

#define APR_FINFO_USER   0x00010000
 

User

Definition at line 145 of file apr_file_info.h.

Referenced by finfo_equal(), lookup_variable(), more_finfo(), and resolve_prot().

#define APR_FINFO_WPROT   0x00400000
 

World protection bits

Definition at line 149 of file apr_file_info.h.

Referenced by guess_protection_bits(), and resolve_prot().


Typedef Documentation

typedef struct apr_finfo_t apr_finfo_t
 

file info structure

Definition at line 133 of file apr_file_info.h.


Function Documentation

APR_DECLARE apr_status_t   ) 
 

get the specified file's stats. The file is specified by filename, instead of using a pre-opened file.

Parameters:
finfo Where to store the information about the file, which is never touched if the call fails.
fname The name of the file to stat.
wanted The desired apr_finfo_t fields, as a bit flag of APR_FINFO_ values
cont the pool to use to allocate the new file.

Definition at line 24 of file netware/dso.c.


Variable Documentation

apr_anylock_t void apr_pool_t * cont
 

Definition at line 72 of file apr_rmm.h.

const char * fname
 

Definition at line 96 of file apr_proc_mutex.h.

Referenced by add_setenvif(), ap_default_log_writer_init(), apprentice(), dav_dbm_open(), dav_fs_add_locknull_state(), dav_fs_deleteset(), dav_fs_load_lock_record(), dav_fs_remove_locknull_member(), file_bucket_read(), open_error_log(), open_log(), open_rewritelog(), open_scoreboard(), test_mod_neg(), and test_truncate().

const char* fname
 

Definition at line 229 of file apr_file_info.h.

apr_int32_t wanted
 

Definition at line 260 of file apr_file_info.h.

Referenced by ssl_io_input_read().