Searched refs:map_size (Results 1 – 3 of 3) sorted by relevance
/ndk/tests/abcc/jni/mman-win32/ |
D | test.c | 125 const size_t map_size = 1024; in test_file_map_mlock_munlock() local 136 void* map = mmap(NULL, map_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, o, 0); in test_file_map_mlock_munlock() 144 if (mlock(map, map_size) != 0) in test_file_map_mlock_munlock() 153 if (munlock(map, map_size) != 0) in test_file_map_mlock_munlock() 160 result = munmap(map, map_size); in test_file_map_mlock_munlock() 175 const size_t map_size = 1024; in test_file_map_msync() local 186 void* map = mmap(NULL, map_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, o, 0); in test_file_map_msync() 196 if (msync(map, map_size, MS_SYNC) != 0) in test_file_map_msync() 202 result = munmap(map, map_size); in test_file_map_msync()
|
/ndk/sources/android/crazy_linker/src/ |
D | crazy_linker_ashmem.cpp | 50 const size_t map_size = PAGE_SIZE; in CheckFileDescriptorIsReadOnly() local 55 if (map.Allocate(NULL, map_size, MemoryMapping::CAN_WRITE, fd)) { in CheckFileDescriptorIsReadOnly() 69 if (!map.Allocate(NULL, map_size, MemoryMapping::CAN_READ, fd)) { in CheckFileDescriptorIsReadOnly()
|
/ndk/sources/host-tools/ndk-stack/elff/ |
D | mapfile.c | 161 size_t map_size; in mapfile_map() local 179 map_size = (size_t)(offset - map_offset + size); in mapfile_map() 182 if (map_size < size) { in mapfile_map() 209 converter.QuadPart = map_offset + map_size; in mapfile_map() 215 converter.LowPart, map_size); in mapfile_map() 226 mmap(0, map_size, PROT_READ, MAP_SHARED, (int)(ptrdiff_t)handle, map_offset); in mapfile_map()
|