Searched refs:mmap (Results 1 - 9 of 9) sorted by relevance

/libcore/luni/src/main/java/libcore/io/
H A DMemoryMappedFile.java31 * A memory-mapped file. Use {@link #mmap} to map a file, {@link #close} to unmap a file,
40 * Use this if you've called {@code mmap} yourself.
48 * Use this to mmap the whole file read-only.
53 long address = Libcore.os.mmap(0L, size, PROT_READ, MAP_SHARED, fd, 0);
H A DForwardingOs.java111 public long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException { return os.mmap(address, byteCount, prot, flags, fd, offset); } method in class:ForwardingOs
H A DOs.java103 public long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException; method in interface:Os
H A DPosix.java105 public native long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException; method in class:Posix
/libcore/luni/src/main/java/java/nio/
H A DMemoryBlock.java100 public static MemoryBlock mmap(FileDescriptor fd, long offset, long size, MapMode mapMode) throws IOException { method in class:MemoryBlock
102 // You can't mmap(2) a zero-length region, but Java allows it.
105 // Check just those errors mmap(2) won't detect.
122 long address = Libcore.os.mmap(0L, size, prot, flags, fd, offset);
H A DFileChannelImpl.java257 MemoryBlock block = MemoryBlock.mmap(fd, alignment, size + offset, mapMode);
379 // If our source is a regular file, mmap(2) rather than reading.
381 // so the mmap(2) overhead isn't a concern.
/libcore/luni/src/main/java/android/system/
H A DOs.java278 * See <a href="http://man7.org/linux/man-pages/man2/mmap.2.html">mmap(2)</a>.
280 public static long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException { return Libcore.os.mmap(address, byteCount, prot, flags, fd, offset); } method in class:Os
/libcore/luni/src/main/native/
H A Dlibcore_io_Posix.cpp1008 void* ptr = mmap(suggestedPtr, byteCount, prot, flags, fd, offset);
1010 throwErrnoException(env, "mmap");
1593 NATIVE_METHOD(Posix, mmap, "(JJIILjava/io/FileDescriptor;J)J"),
H A Dlibcore_icu_ICU.cpp841 void* data = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, fd.get(), 0);
843 FAIL_WITH_STRERROR("mmap");

Completed in 174 milliseconds