Lines Matching refs:prot
136 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()
200 if (!SetMap(MemMap::MapFile(file_->GetLength(), prot, flags, file_->Fd(), 0, in Setup()
1150 int prot = 0; in Load() local
1152 prot |= PROT_EXEC; in Load()
1155 prot |= PROT_WRITE; in Load()
1158 prot |= PROT_READ; in Load()
1162 prot |= PROT_WRITE; in Load()
1176 prot, flags, file_->Fd(), in Load()