Lines Matching refs:prot
244 static inline void* TryMemMapLow4GB(void* ptr, size_t page_aligned_byte_count, int prot, int flags, in TryMemMapLow4GB() argument
246 void* actual = mmap(ptr, page_aligned_byte_count, prot, flags, fd, 0); in TryMemMapLow4GB()
259 MemMap* MemMap::MapAnonymous(const char* name, uint8_t* expected_ptr, size_t byte_count, int prot, in MapAnonymous() argument
265 return new MemMap(name, nullptr, 0, nullptr, 0, prot, false); in MapAnonymous()
359 actual = TryMemMapLow4GB(reinterpret_cast<void*>(ptr), page_aligned_byte_count, prot, flags, in MapAnonymous()
395 actual = TryMemMapLow4GB(reinterpret_cast<void*>(ptr), page_aligned_byte_count, prot, flags, in MapAnonymous()
411 actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous()
422 void* actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous()
430 "maps in the log.", expected_ptr, page_aligned_byte_count, prot, in MapAnonymous()
439 page_aligned_byte_count, prot, false); in MapAnonymous()
450 MemMap* MemMap::MapFileAtAddress(uint8_t* expected_ptr, size_t byte_count, int prot, int flags, in MapFileAtAddress() argument
453 CHECK_NE(0, prot); in MapFileAtAddress()
472 return new MemMap(filename, nullptr, 0, nullptr, 0, prot, false); in MapFileAtAddress()
486 prot, in MapFileAtAddress()
497 page_aligned_expected, page_aligned_byte_count, prot, flags, fd, in MapFileAtAddress()
507 prot, reuse); in MapFileAtAddress()
537 size_t base_size, int prot, bool reuse) in MemMap() argument
539 prot_(prot), reuse_(reuse) { in MemMap()
634 bool MemMap::Protect(int prot) { in Protect() argument
636 prot_ = prot; in Protect()
640 if (mprotect(base_begin_, base_size_, prot) == 0) { in Protect()
641 prot_ = prot; in Protect()
646 << prot << ") failed"; in Protect()