Searched refs:file_ (Results 1 – 8 of 8) sorted by relevance
/art/runtime/base/ |
D | scoped_flock.cc | 30 if (file_.get() != nullptr) { in Init() 31 UNUSED(file_->FlushCloseOrErase()); // Ignore result. in Init() 33 file_.reset(OS::OpenFileWithFlags(filename, O_CREAT | O_RDWR)); in Init() 34 if (file_.get() == NULL) { in Init() 38 int flock_result = TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_EX)); in Init() 44 int fstat_result = TEMP_FAILURE_RETRY(fstat(file_->Fd(), &fstat_stat)); in Init() 65 file_.reset(new File(dup(file->Fd()), true)); in Init() 66 if (file_->Fd() == -1) { in Init() 67 file_.reset(); in Init() 72 if (0 != TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_EX))) { in Init() [all …]
|
D | scoped_flock.h | 54 std::unique_ptr<File> file_;
|
/art/runtime/ |
D | elf_file.cc | 110 : file_(file), in ElfFile() 161 int64_t temp_file_length = file_->GetLength(); in Setup() 165 file_->GetPath().c_str(), file_->Fd(), strerror(errno)); in Setup() 172 file_->GetPath().c_str()); in Setup() 179 if (!SetMap(MemMap::MapFile(elf_header_size, prot, flags, file_->Fd(), 0, in Setup() 180 file_->GetPath().c_str(), error_msg), in Setup() 189 sizeof(Elf32_Ehdr), file_->GetPath().c_str()); in Setup() 192 if (!SetMap(MemMap::MapFile(program_header_size, prot, flags, file_->Fd(), 0, in Setup() 193 file_->GetPath().c_str(), error_msg), in Setup() 200 if (!SetMap(MemMap::MapFile(file_->GetLength(), prot, flags, file_->Fd(), 0, in Setup() [all …]
|
D | common_runtime_test.cc | 62 file_.reset(new File(fd, GetFilename(), true)); in ScratchFile() 70 file_.reset(new File(fd, GetFilename(), true)); in ScratchFile() 76 file_.reset(file); in ScratchFile() 84 return file_->Fd(); in GetFd() 88 if (file_.get() != nullptr) { in Close() 89 if (file_->FlushCloseOrErase() != 0) { in Close()
|
D | common_runtime_test.h | 53 return file_.get(); in GetFile() 63 std::unique_ptr<File> file_; variable
|
D | elf_file.h | 53 return *file_; in GetFile() 171 const File* const file_; variable
|
/art/compiler/ |
D | file_output_stream.cc | 26 FileOutputStream::FileOutputStream(File* file) : OutputStream(file->GetPath()), file_(file) {} in FileOutputStream() 29 return file_->WriteFully(buffer, byte_count); in WriteFully() 33 return lseek(file_->Fd(), offset, static_cast<int>(whence)); in Seek()
|
D | file_output_stream.h | 37 File* const file_;
|