/ndk/tests/abcc/jni/mman-win32/ |
D | mman.c | 21 static DWORD __map_mmap_prot_page(const int prot) in __map_mmap_prot_page() argument 25 if (prot == PROT_NONE) in __map_mmap_prot_page() 28 if ((prot & PROT_EXEC) != 0) in __map_mmap_prot_page() 30 protect = ((prot & PROT_WRITE) != 0) ? in __map_mmap_prot_page() 35 protect = ((prot & PROT_WRITE) != 0) ? in __map_mmap_prot_page() 42 static DWORD __map_mmap_prot_file(const int prot) in __map_mmap_prot_file() argument 46 if (prot == PROT_NONE) in __map_mmap_prot_file() 49 if ((prot & PROT_READ) != 0) in __map_mmap_prot_file() 51 if ((prot & PROT_WRITE) != 0) in __map_mmap_prot_file() 53 if ((prot & PROT_EXEC) != 0) in __map_mmap_prot_file() [all …]
|
D | mman.h | 44 void* mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off); 46 int mprotect(void *addr, size_t len, int prot);
|
/ndk/sources/android/crazy_linker/src/ |
D | crazy_linker_memory_mapping.h | 37 bool Allocate(void* address, size_t size, Protection prot, int fd) { in Allocate() argument 43 map_ = ::mmap(address, size_, static_cast<int>(prot), flags, fd, 0); in Allocate() 54 bool SetProtection(Protection prot) { in SetProtection() argument 55 if (!map_ || ::mprotect(map_, size_, static_cast<int>(prot)) < 0) in SetProtection()
|
D | crazy_linker_proc_maps_unittest.cpp | 74 int prot; in TEST() member 86 int prot; in TEST() local 90 EXPECT_EQ(kData[n].success, FindProtectionFlagsForAddress(address, &prot)); in TEST() 93 EXPECT_EQ(kData[n].prot, prot); in TEST()
|
D | crazy_linker_ashmem.cpp | 44 bool AshmemRegion::SetProtectionFlags(int prot) { in SetProtectionFlags() argument 45 return ioctl(fd_, ASHMEM_SET_PROT_MASK, prot) == 0; in SetProtectionFlags()
|
D | crazy_linker_system.cpp | 43 int prot, in Map() argument 46 return ::mmap(address, length, prot, flags, fd_, offset); in Map()
|
D | crazy_linker_system_mock.cpp | 226 void* Map(void* address, size_t length, int prot, int flags, off_t offset) { in Map() argument 248 mprotect(map, length, prot); in Map() 343 int prot, in Map() argument 351 return handle->Map(address, length, prot, flags, offset); in Map()
|
D | crazy_linker_rdebug.cpp | 250 int prot = self_maps.GetProtectionFlagsForAddress(r_debug_->r_map); in Init() local 251 readonly_entries_ = (prot & PROT_WRITE) == 0; in Init()
|
/ndk/sources/host-tools/ndk-stack/elff/ |
D | mapfile.c | 154 int prot, in mapfile_map() argument 192 if (prot != PROT_NONE) { in mapfile_map() 193 if ((prot & (PROT_WRITE | PROT_EXEC)) == 0) { in mapfile_map() 196 } else if ((prot & (PROT_WRITE | PROT_EXEC)) == in mapfile_map() 200 } else if ((prot & PROT_WRITE) == PROT_WRITE) { in mapfile_map() 203 } else if ((prot & PROT_EXEC) == PROT_EXEC) { in mapfile_map()
|
D | mapfile.h | 114 int prot,
|