/libcore/luni/src/main/java/libcore/io/ |
H A D | MemoryMappedFile.java | 31 * 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 D | ForwardingOs.java | 111 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 D | Os.java | 103 public long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException; method in interface:Os
|
H A D | Posix.java | 105 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 D | MemoryBlock.java | 100 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 D | FileChannelImpl.java | 257 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 D | Os.java | 278 * 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 D | libcore_io_Posix.cpp | 1008 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 D | libcore_icu_ICU.cpp | 841 void* data = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, fd.get(), 0); 843 FAIL_WITH_STRERROR("mmap");
|