Index: D:/harmony/Eclipse3.2/workspace/nio/src/main/java/com/ibm/platform/IMemorySystem.java =================================================================== --- D:/harmony/Eclipse3.2/workspace/nio/src/main/java/com/ibm/platform/IMemorySystem.java (revision 372135) +++ D:/harmony/Eclipse3.2/workspace/nio/src/main/java/com/ibm/platform/IMemorySystem.java (working copy) @@ -14,14 +14,22 @@ */ package com.ibm.platform; +import java.io.IOException; +import com.ibm.platform.struct.PlatformAddress; + /** * IMemorySystem * */ public interface IMemorySystem { + + public final int MMAP_READ_ONLY = 1; + public final int MMAP_READ_WRITE = 2; + public final int MMAP_WRITE_COPY = 4; + /** * Answers true if the platform is little endian, otherwise it may be * assumed to be big endian.. @@ -392,4 +400,15 @@ * the value of the platform pointer as a Java long. */ public void setAddress(long address, long value); + + public PlatformAddress mmap(long fileDescriptor, long alignment, long size, + int mapMode) throws IOException; + + public void unmap(PlatformAddress addr); + + public void load(PlatformAddress addr, long size); + + public boolean isLoaded(PlatformAddress addr, long size); + + public void flush(PlatformAddress addr, long size); }