Searched defs:prot (Results 1 - 3 of 3) sorted by relevance

/art/runtime/
H A Dmem_map.h63 static MemMap* MapAnonymous(const char* ashmem_name, byte* addr, size_t byte_count, int prot,
70 static MemMap* MapFile(size_t byte_count, int prot, int flags, int fd, off_t start, argument
72 return MapFileAtAddress(NULL, byte_count, prot, flags, fd, start, false, filename, error_msg);
83 static MemMap* MapFileAtAddress(byte* addr, size_t byte_count, int prot, int flags, int fd,
94 bool Protect(int prot);
146 int prot, bool reuse) LOCKS_EXCLUDED(Locks::mem_maps_lock_);
H A Dmem_map.cc239 MemMap* MemMap::MapAnonymous(const char* name, byte* expected_ptr, size_t byte_count, int prot, argument
242 return new MemMap(name, nullptr, 0, nullptr, 0, prot, false);
331 actual = mmap(reinterpret_cast<void*>(ptr), page_aligned_byte_count, prot, flags, fd.get(),
354 actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0);
365 void* actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0);
374 expected_ptr, page_aligned_byte_count, prot, flags, fd.get(),
383 page_aligned_byte_count, prot, false);
386 MemMap* MemMap::MapFileAtAddress(byte* expected_ptr, size_t byte_count, int prot, int flags, int fd, argument
389 CHECK_NE(0, prot);
412 return new MemMap(filename, nullptr, 0, nullptr, 0, prot, fals
476 MemMap(const std::string& name, byte* begin, size_t size, void* base_begin, size_t base_size, int prot, bool reuse) argument
577 Protect(int prot) argument
589 << prot << ") failed"; local
[all...]
H A Delf_file.cc134 int prot; local
137 prot = PROT_READ | PROT_WRITE;
140 prot = PROT_READ;
143 if (!elf_file->Setup(prot, flags, error_msg)) {
149 ElfFile* ElfFile::Open(File* file, int prot, int flags, std::string* error_msg) { argument
150 std::unique_ptr<ElfFile> elf_file(new ElfFile(file, (prot & PROT_WRITE) == PROT_WRITE, false));
151 if (!elf_file->Setup(prot, flags, error_msg)) {
157 bool ElfFile::Setup(int prot, int flags, std::string* error_msg) { argument
176 if (!SetMap(MemMap::MapFile(elf_header_size, prot, flags, file_->Fd(), 0,
189 if (!SetMap(MemMap::MapFile(program_header_size, prot, flag
1121 int prot = 0; local
[all...]

Completed in 61 milliseconds