17 #ifndef APR_FILE_INFO_H
18 #define APR_FILE_INFO_H
32 #if APR_HAVE_SYS_UIO_H
79 #define APR_FPROT_USETID 0x8000
80 #define APR_FPROT_UREAD 0x0400
81 #define APR_FPROT_UWRITE 0x0200
82 #define APR_FPROT_UEXECUTE 0x0100
84 #define APR_FPROT_GSETID 0x4000
85 #define APR_FPROT_GREAD 0x0040
86 #define APR_FPROT_GWRITE 0x0020
87 #define APR_FPROT_GEXECUTE 0x0010
89 #define APR_FPROT_WSTICKY 0x2000
90 #define APR_FPROT_WREAD 0x0004
91 #define APR_FPROT_WWRITE 0x0002
92 #define APR_FPROT_WEXECUTE 0x0001
94 #define APR_FPROT_OS_DEFAULT 0x0FFF
97 #define APR_FPROT_FILE_SOURCE_PERMS 0x1000
100 #define APR_USETID APR_FPROT_USETID
101 #define APR_UREAD APR_FPROT_UREAD
102 #define APR_UWRITE APR_FPROT_UWRITE
103 #define APR_UEXECUTE APR_FPROT_UEXECUTE
104 #define APR_GSETID APR_FPROT_GSETID
105 #define APR_GREAD APR_FPROT_GREAD
106 #define APR_GWRITE APR_FPROT_GWRITE
107 #define APR_GEXECUTE APR_FPROT_GEXECUTE
108 #define APR_WSTICKY APR_FPROT_WSTICKY
109 #define APR_WREAD APR_FPROT_WREAD
110 #define APR_WWRITE APR_FPROT_WWRITE
111 #define APR_WEXECUTE APR_FPROT_WEXECUTE
112 #define APR_OS_DEFAULT APR_FPROT_OS_DEFAULT
113 #define APR_FILE_SOURCE_PERMS APR_FPROT_FILE_SOURCE_PERMS
126 #if (defined WIN32) || (defined NETWARE)
145 #define APR_FINFO_LINK 0x00000001
146 #define APR_FINFO_MTIME 0x00000010
147 #define APR_FINFO_CTIME 0x00000020
148 #define APR_FINFO_ATIME 0x00000040
149 #define APR_FINFO_SIZE 0x00000100
150 #define APR_FINFO_CSIZE 0x00000200
151 #define APR_FINFO_DEV 0x00001000
152 #define APR_FINFO_INODE 0x00002000
153 #define APR_FINFO_NLINK 0x00004000
154 #define APR_FINFO_TYPE 0x00008000
155 #define APR_FINFO_USER 0x00010000
156 #define APR_FINFO_GROUP 0x00020000
157 #define APR_FINFO_UPROT 0x00100000
158 #define APR_FINFO_GPROT 0x00200000
159 #define APR_FINFO_WPROT 0x00400000
160 #define APR_FINFO_ICASE 0x01000000
161 #define APR_FINFO_NAME 0x02000000
163 #define APR_FINFO_MIN 0x00008170
164 #define APR_FINFO_IDENT 0x00003000
165 #define APR_FINFO_OWNER 0x00030000
166 #define APR_FINFO_PROT 0x00700000
167 #define APR_FINFO_NORM 0x0073b170
168 #define APR_FINFO_DIRENT 0x02000000
287 #define APR_FILEPATH_NOTABOVEROOT 0x01
290 #define APR_FILEPATH_SECUREROOTTEST 0x02
295 #define APR_FILEPATH_SECUREROOT 0x03
298 #define APR_FILEPATH_NOTRELATIVE 0x04
301 #define APR_FILEPATH_NOTABSOLUTE 0x08
305 #define APR_FILEPATH_NATIVE 0x10
311 #define APR_FILEPATH_TRUENAME 0x20
337 const
char **filepath,
355 const
char *rootpath,
404 #define APR_FILEPATH_ENCODING_UNKNOWN 0
407 #define APR_FILEPATH_ENCODING_LOCALE 1
410 #define APR_FILEPATH_ENCODING_UTF8 2
apr_status_t apr_filepath_set(const char *path, apr_pool_t *p)
apr_status_t apr_dir_open(apr_dir_t **new_dir, const char *dirname, apr_pool_t *pool)
Definition: apr_file_info.h:68
const char * fname
Definition: apr_file_info.h:208
apr_int32_t valid
Definition: apr_file_info.h:179
apr_status_t apr_filepath_list_merge(char **liststr, apr_array_header_t *pathelts, apr_pool_t *p)
apr_off_t size
Definition: apr_file_info.h:198
apr_int32_t nlink
Definition: apr_file_info.h:196
uid_t apr_uid_t
Definition: apr_user.h:45
apr_off_t csize
Definition: apr_file_info.h:200
struct apr_file_t * filehand
Definition: apr_file_info.h:212
apr_status_t apr_dir_read(apr_finfo_t *finfo, apr_int32_t wanted, apr_dir_t *thedir)
Definition: apr_file_info.h:71
Definition: apr_file_info.h:63
apr_time_t atime
Definition: apr_file_info.h:202
apr_status_t apr_filepath_root(const char **rootpath, const char **filepath, apr_int32_t flags, apr_pool_t *p)
struct apr_file_t apr_file_t
Definition: apr_file_io.h:209
apr_int64_t apr_time_t
Definition: apr_time.h:45
apr_status_t apr_filepath_get(char **path, apr_int32_t flags, apr_pool_t *p)
apr_time_t mtime
Definition: apr_file_info.h:204
apr_fileperms_t protection
Definition: apr_file_info.h:181
apr_int32_t apr_fileperms_t
Definition: apr_file_info.h:125
apr_status_t apr_filepath_merge(char **newpath, const char *rootpath, const char *addpath, apr_int32_t flags, apr_pool_t *p)
apr_status_t apr_filepath_encoding(int *style, apr_pool_t *p)
Definition: apr_file_info.h:65
APR Platform Definitions.
dev_t apr_dev_t
Definition: apr_file_info.h:135
apr_time_t ctime
Definition: apr_file_info.h:206
const char * name
Definition: apr_file_info.h:210
Definition: apr_file_info.h:64
apr_dev_t device
Definition: apr_file_info.h:194
Definition: apr_file_info.h:66
apr_uid_t user
Definition: apr_file_info.h:188
apr_status_t apr_dir_rewind(apr_dir_t *thedir)
Definition: apr_file_info.h:67
gid_t apr_gid_t
Definition: apr_user.h:54
Definition: apr_file_info.h:70
apr_filetype_e filetype
Definition: apr_file_info.h:186
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
int apr_status_t
Definition: apr_errno.h:44
apr_status_t apr_filepath_list_split(apr_array_header_t **pathelts, const char *liststr, apr_pool_t *p)
apr_gid_t group
Definition: apr_file_info.h:190
struct apr_dir_t apr_dir_t
Definition: apr_file_info.h:121
apr_status_t apr_dir_close(apr_dir_t *thedir)
apr_ino_t inode
Definition: apr_file_info.h:192
apr_status_t apr_stat(apr_finfo_t *finfo, const char *fname, apr_int32_t wanted, apr_pool_t *pool)
apr_filetype_e
Definition: apr_file_info.h:62
Definition: apr_file_info.h:174
apr_pool_t * pool
Definition: apr_file_info.h:176
Definition: apr_file_info.h:69