FileDocCategorySizeDatePackage
Mmap.javaAPI DocApache Tomcat 6.0.142552Fri Jul 20 04:20:32 BST 2007org.apache.tomcat.jni

Mmap

public class Mmap extends Object
Mmap
author
Mladen Turk
version
$Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Fields Summary
public static final int
APR_MMAP_READ
MMap opened for reading
public static final int
APR_MMAP_WRITE
MMap opened for writing
Constructors Summary
Methods Summary
public static native longcreate(long file, long offset, long size, int flag, long pool)
Create a new mmap'ed file out of an existing APR file.

param
file The file turn into an mmap.
param
offset The offset into the file to start the data pointer at.
param
size The size of the file
param
flag bit-wise or of:
APR_MMAP_READ MMap opened for reading
APR_MMAP_WRITE MMap opened for writing
param
pool The pool to use when creating the mmap.
return
The newly created mmap'ed file.

public static native intdelete(long mm)
Remove a mmap'ed.

param
mm The mmap'ed file.

public static native longdup(long mmap, long pool)
Duplicate the specified MMAP.

param
mmap The mmap to duplicate.
param
pool The pool to use for new_mmap.
return
Duplicated mmap'ed file.

public static native longoffset(long mm, long offset)
Move the pointer into the mmap'ed file to the specified offset.

param
mm The mmap'ed file.
param
offset The offset to move to.
return
The pointer to the offset specified.