org.apache.tomcat.jni
public class Mmap extends Object
Version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
Field Summary | |
---|---|
static int | APR_MMAP_READ MMap opened for reading |
static int | APR_MMAP_WRITE MMap opened for writing |
Method Summary | |
---|---|
static long | create(long file, long offset, long size, int flag, long pool)
Create a new mmap'ed file out of an existing APR file. |
static int | delete(long mm)
Remove a mmap'ed. |
static long | dup(long mmap, long pool)
Duplicate the specified MMAP. |
static long | offset(long mm, long offset)
Move the pointer into the mmap'ed file to the specified offset. |
Parameters: file The file turn into an mmap. offset The offset into the file to start the data pointer at. size The size of the file flag bit-wise or of:
APR_MMAP_READ MMap opened for reading
APR_MMAP_WRITE MMap opened for writing
pool The pool to use when creating the mmap.
Returns: The newly created mmap'ed file.
Parameters: mm The mmap'ed file.
Parameters: mmap The mmap to duplicate. pool The pool to use for new_mmap.
Returns: Duplicated mmap'ed file.
Parameters: mm The mmap'ed file. offset The offset to move to.
Returns: The pointer to the offset specified.