Home
last modified time | relevance | path

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

/art/runtime/
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, in MapFile() argument
72 return MapFileAtAddress(NULL, byte_count, prot, flags, fd, start, false, filename, error_msg); in MapFile()
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_);
Dmem_map.cc239 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()
[all …]
Delf_file.cc136 int prot; in Open() local
139 prot = PROT_READ | PROT_WRITE; in Open()
142 prot = PROT_READ; in Open()
145 if (!elf_file->Setup(prot, flags, error_msg)) { in Open()
151 ElfFile* ElfFile::Open(File* file, int prot, int flags, std::string* error_msg) { in Open() argument
152 std::unique_ptr<ElfFile> elf_file(new ElfFile(file, (prot & PROT_WRITE) == PROT_WRITE, false, in Open()
154 if (!elf_file->Setup(prot, flags, error_msg)) { in Open()
160 bool ElfFile::Setup(int prot, int flags, std::string* error_msg) { in Setup() argument
179 if (!SetMap(MemMap::MapFile(elf_header_size, prot, flags, file_->Fd(), 0, in Setup()
192 if (!SetMap(MemMap::MapFile(program_header_size, prot, flags, file_->Fd(), 0, in Setup()
[all …]
Delf_file.h117 bool Setup(int prot, int flags, std::string* error_msg);