32 #ifdef HAVE_SYS_STAT_H
35 #if APR_HAVE_SYS_TYPES_H
36 #include <sys/types.h>
38 #ifdef HAVE_SYS_FCNTL_H
51 #if APR_HAS_UNICODE_FS
83 #define APR_FILE_MAX MAX_PATH
85 #define APR_FILE_DEFAULT_BUFSIZE 4096
87 #define APR_FILE_BUFSIZE APR_FILE_DEFAULT_BUFSIZE
91 #define S_IFIFO _S_IFIFO
92 #define S_IFBLK 0060000
93 #define S_IFLNK 0120000
94 #define S_IFSOCK 0140000
95 #define S_IFWHT 0160000
99 #define APR_OPENINFO 0x00100000
100 #define APR_OPENLINK 0x00200000
101 #define APR_READCONTROL 0x00400000
102 #define APR_WRITECONTROL 0x00800000
104 #define APR_STDIN_FLAG 0x02000000
105 #define APR_STDOUT_FLAG 0x04000000
106 #define APR_STDERR_FLAG 0x06000000
107 #define APR_STD_FLAGS (APR_STDIN_FLAG | APR_STDOUT_FLAG | APR_STDERR_FLAG)
108 #define APR_WRITEATTRS 0x08000000
112 #ifndef FILE_ATTRIBUTE_DEVICE
113 #define FILE_ATTRIBUTE_DEVICE 0x00000040
115 #ifndef FILE_ATTRIBUTE_REPARSE_POINT
116 #define FILE_ATTRIBUTE_REPARSE_POINT 0x00000400
118 #ifndef FILE_FLAG_OPEN_NO_RECALL
119 #define FILE_FLAG_OPEN_NO_RECALL 0x00100000
121 #ifndef FILE_FLAG_OPEN_REPARSE_POINT
122 #define FILE_FLAG_OPEN_REPARSE_POINT 0x00200000
124 #ifndef TRUSTEE_IS_WELL_KNOWN_GROUP
125 #define TRUSTEE_IS_WELL_KNOWN_GROUP 5
129 #define APR_FINFO_WIN32_DIR (APR_FINFO_NAME | APR_FINFO_TYPE \
130 | APR_FINFO_CTIME | APR_FINFO_ATIME \
131 | APR_FINFO_MTIME | APR_FINFO_SIZE)
134 #define APR_FREADONLY 0x10000000
138 int byhandle,
int finddata,
const char *fname,
146 #define MORE_OF_HANDLE 0
147 #define MORE_OF_WFSPEC 2
159 #define filedes filehand
193 #if APR_FILES_AS_SOCKETS
216 #define IS_FNCHAR(c) (apr_c_is_fnchar[(unsigned char)(c)] & 1)
217 #define IS_SHCHAR(c) ((apr_c_is_fnchar[(unsigned char)(c)] & 2) == 2)
APR Platform Definitions.
apr_uint16_t apr_wchar_t
Definition: apr_arch_utf8.h:26
APR Miscellaneous library routines.
APR Thread Mutex Routines.
dav_resource int dav_locktoken dav_response int flags
Definition: mod_dav.h:1458
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:557
int apr_status_t
Definition: apr_errno.h:44
apr_filetype_e
Definition: apr_file_info.h:62
@ APR_FILETYPE_FILE
Definition: apr_arch_file_io.h:162
@ APR_FILETYPE_PIPE
Definition: apr_arch_file_io.h:163
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
apr_int64_t apr_interval_time_t
Definition: apr_time.h:55
apr_status_t filepath_root_case(char **rootpath, char *root, apr_pool_t *p)
apr_status_t filepath_root_test(char *path, apr_pool_t *p)
apr_status_t filepath_drive_get(char **rootpath, char drive, apr_int32_t flags, apr_pool_t *p)
Definition: apr_arch_file_io.h:135
char * dirname
Definition: apr_arch_file_io.h:137
char * name
Definition: apr_arch_file_io.h:205
apr_pool_t * pool
Definition: apr_arch_file_io.h:136
HANDLE dirhand
Definition: apr_arch_file_io.h:202
apr_size_t rootlen
Definition: apr_arch_file_io.h:203
WIN32_FIND_DATAW * entry
Definition: apr_arch_file_io.h:206
int bof
Definition: apr_arch_file_io.h:207
Definition: apr_arch_file_io.h:107
apr_size_t dataRead
Definition: apr_arch_file_io.h:187
apr_pollset_t * pollset
Definition: apr_arch_file_io.h:120
int direction
Definition: apr_arch_file_io.h:127
apr_int32_t flags
Definition: apr_arch_file_io.h:111
apr_interval_time_t timeout
Definition: apr_arch_file_io.h:114
apr_size_t bufpos
Definition: apr_arch_file_io.h:124
apr_off_t filePtr
Definition: apr_arch_file_io.h:128
apr_thread_mutex_t * mutex
Definition: apr_arch_file_io.h:57
int ungetchar
Definition: apr_arch_file_io.h:117
char * buffer
Definition: apr_arch_file_io.h:123
apr_pool_t * pool
Definition: apr_arch_file_io.h:108
OVERLAPPED * pOverlapped
Definition: apr_arch_file_io.h:170
apr_finfo_t * finfo
Definition: apr_arch_file_io.h:175
BOOLEAN buffered
Definition: apr_arch_file_io.h:179
char * fname
Definition: apr_arch_file_io.h:110
DWORD dwFileAttributes
Definition: apr_arch_file_io.h:177
apr_filetype_e ftype
Definition: apr_arch_file_io.h:169
HANDLE filehand
Definition: apr_arch_file_io.h:168
int append
Definition: apr_arch_file_io.h:181
apr_size_t bufsize
Definition: apr_arch_file_io.h:125
int eof_hit
Definition: apr_arch_file_io.h:112
Definition: apr_file_info.h:174
Definition: apr_arch_poll_private.h:124
Definition: apr_arch_thread_mutex.h:28
const char apr_c_is_fnchar[256]
void * res_name_from_filename(const char *file, int global, apr_pool_t *pool)
apr_status_t file_cleanup(void *)
apr_status_t more_finfo(apr_finfo_t *finfo, const void *ufile, apr_int32_t wanted, int whatfile)
apr_status_t unicode_to_utf8_path(char *dststr, apr_size_t dstchars, const apr_wchar_t *srcstr)
apr_status_t utf8_to_unicode_path(apr_wchar_t *dststr, apr_size_t dstchars, const char *srcstr)
int fillin_fileinfo(apr_finfo_t *finfo, WIN32_FILE_ATTRIBUTE_DATA *wininfo, int byhandle, int finddata, const char *fname, apr_int32_t wanted)
apr_filetype_e
Definition: apr_arch_file_io.h:161