32 #include <kernel/OS.h>
46 #define APR_MMAP_READ 1
48 #define APR_MMAP_WRITE 2
88 #if APR_HAS_MMAP || defined(DOXYGEN)
96 # define APR_MMAP_THRESHOLD MMAP_THRESHOLD
99 # define APR_MMAP_THRESHOLD (8*1024)
101 # define APR_MMAP_THRESHOLD 1
109 # define APR_MMAP_LIMIT MMAP_LIMIT
111 # define APR_MMAP_LIMIT (4*1024*1024)
115 #define APR_MMAP_CANDIDATE(filelength) \
116 ((filelength >= APR_MMAP_THRESHOLD) && (filelength < APR_MMAP_LIMIT))
135 apr_size_t size, apr_int32_t flag,
apr_size_t size
Definition: apr_mmap.h:82
void * mm
Definition: apr_mmap.h:80
Definition: apr_mmap.h:62
struct apr_file_t apr_file_t
Definition: apr_file_io.h:209
apr_status_t apr_mmap_delete(apr_mmap_t *mm)
APR_RING_ENTRY(apr_mmap_t) link
APR Platform Definitions.
apr_pool_t * cntxt
Definition: apr_mmap.h:64
apr_status_t apr_mmap_dup(apr_mmap_t **new_mmap, apr_mmap_t *old_mmap, apr_pool_t *p)
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
apr_status_t apr_mmap_create(apr_mmap_t **newmmap, apr_file_t *file, apr_off_t offset, apr_size_t size, apr_int32_t flag, apr_pool_t *cntxt)
int apr_status_t
Definition: apr_errno.h:44
apr_status_t apr_mmap_offset(void **addr, apr_mmap_t *mm, apr_off_t offset)