Lines Matching refs:prot
239 MemMap* MemMap::MapAnonymous(const char* name, byte* expected_ptr, size_t byte_count, int prot,
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,
389 CHECK_NE(0, prot);
412 return new MemMap(filename, nullptr, 0, nullptr, 0, prot, false);
425 prot,
437 prot, flags, fd,
447 prot, reuse);
477 size_t base_size, int prot, bool reuse)
479 prot_(prot), reuse_(reuse) {
577 bool MemMap::Protect(int prot) {
579 prot_ = prot;
583 if (mprotect(base_begin_, base_size_, prot) == 0) {
584 prot_ = prot;
589 << prot << ") failed";
663 os << StringPrintf("[MemMap: %p-%p prot=0x%x %s]",