Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 10 of 10) sorted by relevance

/ndk/tests/abcc/jni/mman-win32/
Dmman.c21 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 …]
Dmman.h44 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/
Dcrazy_linker_memory_mapping.h37 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()
Dcrazy_linker_proc_maps_unittest.cpp74 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()
Dcrazy_linker_ashmem.cpp44 bool AshmemRegion::SetProtectionFlags(int prot) { in SetProtectionFlags() argument
45 return ioctl(fd_, ASHMEM_SET_PROT_MASK, prot) == 0; in SetProtectionFlags()
Dcrazy_linker_system.cpp43 int prot, in Map() argument
46 return ::mmap(address, length, prot, flags, fd_, offset); in Map()
Dcrazy_linker_system_mock.cpp226 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()
Dcrazy_linker_rdebug.cpp250 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/
Dmapfile.c154 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()
Dmapfile.h114 int prot,