29 #ifndef WAITIO_USES_POLL
39 #if APR_HAVE_SYS_TYPES_H
40 #include <sys/types.h>
48 #if APR_HAVE_STRINGS_H
54 #ifdef HAVE_SYS_STAT_H
66 #if APR_HAVE_SYS_UIO_H
69 #if APR_HAVE_SYS_TIME_H
73 #include <kernel/OS.h>
76 #ifdef HAVE_SYS_PARAM_H
77 #include <sys/param.h>
83 # include <sys/socket.h>
86 # include <sys/ioctl.h>
91 #define APR_FILE_DEFAULT_BUFSIZE 4096
93 #define APR_FILE_BUFSIZE APR_FILE_DEFAULT_BUFSIZE
115 #ifndef WAITIO_USES_POLL
133 #define file_lock(f) do { \
135 apr_thread_mutex_lock((f)->thlock); \
137 #define file_unlock(f) do { \
139 apr_thread_mutex_unlock((f)->thlock); \
142 #define file_lock(f) do {} while (0)
143 #define file_unlock(f) do {} while (0)
146 #if APR_HAS_LARGE_FILES && defined(_LARGEFILE64_SOURCE)
147 #define stat(f,b) stat64(f,b)
148 #define lstat(f,b) lstat64(f,b)
149 #define fstat(f,b) fstat64(f,b)
150 #define lseek(f,o,w) lseek64(f,o,w)
151 #define ftruncate(f,l) ftruncate64(f,l)
158 #if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) \
159 && !defined(READDIR_IS_THREAD_SAFE) && defined(HAVE_READDIR64_R)
160 #define APR_USE_READDIR64_R
167 #ifdef APR_USE_READDIR64_R
168 struct dirent64 *
entry;
170 struct dirent *
entry;
APR Platform Definitions.
APR Miscellaneous library routines.
APR general purpose library routines.
APR Thread Mutex Routines.
apr_bucket_brigade ap_input_mode_t mode
Definition: mod_dav.h:2662
int apr_status_t
Definition: apr_errno.h:44
apr_int32_t apr_fileperms_t
Definition: apr_file_info.h:125
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_int64_t apr_time_t
Definition: apr_time.h:45
mode_t apr_unix_perms2mode(apr_fileperms_t perms)
struct stat struct_stat
Definition: apr_arch_file_io.h:96
apr_status_t apr_unix_file_cleanup(void *)
struct apr_rotating_info_t apr_rotating_info_t
apr_fileperms_t apr_unix_mode2perms(mode_t mode)
apr_status_t apr_unix_child_file_cleanup(void *)
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)
Definition: apr_arch_file_io.h:135
char * dirname
Definition: apr_arch_file_io.h:137
struct dirent * entry
Definition: apr_arch_file_io.h:139
apr_pool_t * pool
Definition: apr_arch_file_io.h:136
DIR * dirstruct
Definition: apr_arch_file_io.h:138
Definition: apr_arch_file_io.h:107
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
int is_pipe
Definition: apr_arch_file_io.h:113
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
int filedes
Definition: apr_arch_file_io.h:109
apr_off_t dataRead
Definition: apr_arch_file_io.h:126
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
@ BLK_OFF
Definition: apr_arch_file_io.h:116
@ BLK_ON
Definition: apr_arch_file_io.h:116
@ BLK_UNKNOWN
Definition: apr_arch_file_io.h:116
apr_rotating_info_t * rotating
Definition: apr_arch_file_io.h:132
struct apr_thread_mutex_t * thlock
Definition: apr_arch_file_io.h:130
char * fname
Definition: apr_arch_file_io.h:110
int buffered
Definition: apr_arch_file_io.h:115
enum apr_file_t::@20 blocking
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_file_io.h:98
apr_interval_time_t timeout
Definition: apr_arch_file_io.h:100
int manual
Definition: apr_arch_file_io.h:103
apr_finfo_t finfo
Definition: apr_arch_file_io.h:99
apr_fileperms_t perm
Definition: apr_arch_file_io.h:104
int oflags
Definition: apr_arch_file_io.h:102
apr_time_t lastcheck
Definition: apr_arch_file_io.h:101
Definition: apr_arch_thread_mutex.h:28