Data Structures | |
struct | apr_mmap_t |
Defines | |
#define | APR_MMAP_READ 1 |
#define | APR_MMAP_WRITE 2 |
#define | APR_MMAP_THRESHOLD 1 |
#define | APR_MMAP_LIMIT (4*1024*1024) |
#define | APR_MMAP_CANDIDATE(filelength) ((filelength >= APR_MMAP_THRESHOLD) && (filelength < APR_MMAP_LIMIT)) |
Typedefs | |
typedef apr_mmap_t | apr_mmap_t |
Functions | |
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) |
apr_status_t | apr_mmap_dup (apr_mmap_t **new_mmap, apr_mmap_t *old_mmap, apr_pool_t *p) |
apr_status_t | apr_mmap_delete (apr_mmap_t *mm) |
apr_status_t | apr_mmap_offset (void **addr, apr_mmap_t *mm, apr_off_t offset) |
|
Can this file be MMaped |
|
Maximum size of MMap region |
|
MMap opened for reading |
|
Files have to be at least this big before they're mmap()d. This is to deal with systems where the expense of doing an mmap() and an munmap() outweighs the benefit for small files. It shouldn't be set lower than 1. |
|
MMap opened for writing |
|
|
|
Create a new mmap'ed file out of an existing APR file.
|
|
Remove a mmap'ed.
|
|
Duplicate the specified MMAP.
|
|
Move the pointer into the mmap'ed file to the specified offset.
|