Lines Matching refs:prot
239 MemMap* MemMap::MapAnonymous(const char* name, byte* expected_ptr, size_t byte_count, int prot, in MapAnonymous() argument
242 return new MemMap(name, nullptr, 0, nullptr, 0, prot, false); in MapAnonymous()
331 actual = mmap(reinterpret_cast<void*>(ptr), page_aligned_byte_count, prot, flags, fd.get(), in MapAnonymous()
354 actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous()
365 void* actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous()
374 expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), in MapAnonymous()
383 page_aligned_byte_count, prot, false); in MapAnonymous()
386 MemMap* MemMap::MapFileAtAddress(byte* expected_ptr, size_t byte_count, int prot, int flags, int fd, in MapFileAtAddress() argument
389 CHECK_NE(0, prot); in MapFileAtAddress()
412 return new MemMap(filename, nullptr, 0, nullptr, 0, prot, false); in MapFileAtAddress()
425 prot, in MapFileAtAddress()
437 page_aligned_expected, page_aligned_byte_count, prot, flags, fd, in MapFileAtAddress()
447 prot, reuse); in MapFileAtAddress()
477 size_t base_size, int prot, bool reuse) in MemMap() argument
479 prot_(prot), reuse_(reuse) { in MemMap()
577 bool MemMap::Protect(int prot) { in Protect() argument
579 prot_ = prot; in Protect()
583 if (mprotect(base_begin_, base_size_, prot) == 0) { in Protect()
584 prot_ = prot; in Protect()
589 << prot << ") failed"; in Protect()