/art/runtime/base/ |
D | scoped_flock.cc | 50 int flock_result = TEMP_FAILURE_RETRY(flock(file->Fd(), operation)); in Open() 60 int fstat_result = TEMP_FAILURE_RETRY(fstat(file->Fd(), &fstat_stat)); in Open() 102 if (locked_file->Fd() == -1) { in DupOf() 107 if (0 != TEMP_FAILURE_RETRY(flock(locked_file->Fd(), LOCK_EX))) { in DupOf() 117 if (this->Fd() != -1) { in ReleaseLock() 118 int flock_result = TEMP_FAILURE_RETRY(flock(this->Fd(), LOCK_UN)); in ReleaseLock()
|
D | file_magic.cc | 36 if (fd.Fd() == -1) { in OpenAndReadMagic() 40 int n = TEMP_FAILURE_RETRY(read(fd.Fd(), magic, sizeof(*magic))); in OpenAndReadMagic() 45 if (lseek(fd.Fd(), 0, SEEK_SET) != 0) { in OpenAndReadMagic()
|
/art/runtime/base/unix_file/ |
D | fd_file_test.cc | 45 EXPECT_EQ(-1, file.Fd()); in TEST_F() 54 EXPECT_GE(file.Fd(), 0); in TEST_F() 59 EXPECT_EQ(-1, file.Fd()); in TEST_F() 64 EXPECT_GE(file2.Fd(), 0); in TEST_F() 76 EXPECT_GE(file.Fd(), 0); in TEST_F() 91 EXPECT_GE(file.Fd(), 0); in TEST_F() 119 ASSERT_GE(file.Fd(), 0); in TEST_F() 146 ASSERT_GE(src.Fd(), 0); in TEST_F() 156 ASSERT_GE(dest.Fd(), 0); in TEST_F() 176 EXPECT_GE(file.Fd(), 0); in TEST_F() [all …]
|
D | fd_file.cc | 229 int FdFile::Fd() const { in Fd() function in unix_file::FdFile 321 sendfile(Fd(), input_file->Fd(), &off, end - off)); in Copy() 328 if (lseek(input_file->Fd(), off, SEEK_SET) != off) { in Copy()
|
D | fd_file.h | 117 int Fd() const;
|
/art/profman/ |
D | profile_assistant.cc | 39 if (!info.Load(reference_profile_file->Fd())) { in ProcessProfilesInternal() 51 if (!cur_info.Load(profile_files[i]->Fd())) { in ProcessProfilesInternal() 79 if (!info.Save(reference_profile_file->Fd())) { in ProcessProfilesInternal()
|
/art/compiler/linker/ |
D | file_output_stream.cc | 33 return lseek(file_->Fd(), offset, static_cast<int>(whence)); in Seek()
|
/art/runtime/gc/space/ |
D | image_space_fs.h | 153 if (lseek(file->Fd(), 0, SEEK_SET) == -1) { in MarkZygoteStart()
|
D | image_space.cc | 604 file->Fd(), in Init() 614 file->Fd(), in Init() 628 file->Fd(), in Init()
|
/art/runtime/ |
D | elf_file.cc | 112 file->GetPath().c_str(), file->Fd(), strerror(errno)); in Setup() 130 file->Fd(), in Setup() 150 file->Fd(), in Setup() 165 file->Fd(), in Setup() 1127 file->GetPath().c_str(), file->Fd(), strerror(errno)); in Load() 1220 file->Fd(), in Load() 1501 int result = ftruncate(file->Fd(), offset); in Strip() 1696 file->Fd(), in Open() 1747 file->Fd(), in Open()
|
D | zip_archive.cc | 62 const int32_t error = ExtractEntryToFile(handle_, zip_entry_, file.Fd()); in ExtractToFile()
|
D | oat_file_assistant.cc | 726 if (fchmod(vdex_file->Fd(), file_mode) != 0) { in GenerateOatFileNoChecks() 741 if (fchmod(oat_file->Fd(), file_mode) != 0) { in GenerateOatFileNoChecks() 749 args.push_back("--output-vdex-fd=" + std::to_string(vdex_file->Fd())); in GenerateOatFileNoChecks() 750 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd())); in GenerateOatFileNoChecks()
|
D | vdex_file.cc | 86 return Open(vdex_file->Fd(), vdex_length, vdex_filename, writable, low_4gb, unquicken, error_msg); in Open()
|
D | utils.cc | 86 int64_t n = TEMP_FAILURE_RETRY(read(file.Fd(), &buf[0], buf.size())); in ReadFileToString() 108 int64_t n = TEMP_FAILURE_RETRY(read(file.Fd(), &buf[filled_to], kBufSize - filled_to)); in PrintFileToLog()
|
D | native_stack_dump.cc | 140 int in = pipe->get()->in.Fd(); in Drain()
|
D | common_runtime_test.cc | 183 return file_->Fd(); in GetFd()
|
/art/dex2oat/ |
D | dex2oat_test.cc | 74 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd())); 675 copy.push_back("--app-image-fd=" + std::to_string(app_image_file->Fd())); 752 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunTestVDex() 763 std::string input_vdex = StringPrintf("--input-vdex-fd=%d", vdex_file1->Fd()); in RunTestVDex() 873 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDex() 884 std::string input_vdex = StringPrintf("--input-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDex() 885 std::string output_vdex = StringPrintf("--output-vdex-fd=%d", vdex_file1->Fd()); in RunUnquickenMultiDex()
|
D | dex2oat_image_test.cc | 324 profile.Save(profile_file.GetFile()->Fd()); in TEST_F()
|
D | dex2oat.cc | 1355 if (fchmod(oat_file->Fd(), 0644) != 0) { in OpenFile() 1385 if (fchmod(vdex_file->Fd(), 0644) != 0) { in OpenFile() 1484 swap_fd_ = swap_file->Fd(); in OpenFile() 2333 if (!profile_compilation_info_->Load(profile_file->Fd())) { in LoadProfile()
|
/art/compiler/jit/ |
D | jit_logger.cc | 212 int fd = jit_dump_file_->Fd(); in OpenMarkerFile()
|
/art/patchoat/ |
D | patchoat.cc | 76 if (fchmod(f->Fd(), 0644) != 0) { in CreateOrOpen() 189 input_image->Fd(), in Patch() 309 ScopedFlock img_flock = LockedFile::DupOf(out->Fd(), out->GetPath(), in WriteImage()
|
/art/compiler/ |
D | oat_test.cc | 283 off_t offset = lseek(zip_file_->Fd(), 0, SEEK_CUR); in AddFile() 311 off_t offset = lseek(zip_file_->Fd(), 0, SEEK_CUR); in Finish() 769 ASSERT_NE(-1, zip_fd.Fd()); in TestZipFileInput()
|
D | oat_writer.cc | 397 if (fd.Fd() == -1) { in AddDexFileSource() 2758 actual_offset = lseek(file->Fd(), 0, SEEK_CUR); in SeekToDexFile() 2796 dex_file = DexFile::OpenDex(raw_file->Fd(), location, /* verify_checksum */ true, &error_msg); in LayoutAndWriteDexFile() 2854 off_t extracted_end = lseek(file->Fd(), 0, SEEK_CUR); in WriteDexFile() 2874 off_t actual_offset = lseek(file->Fd(), start_offset, SEEK_SET); in WriteDexFile() 2896 actual_offset = lseek(file->Fd(), end_offset, SEEK_SET); in WriteDexFile() 2935 off_t input_offset = lseek(dex_file->Fd(), 0, SEEK_SET); in WriteDexFile() 2960 off_t actual_offset = lseek(file->Fd(), 0, SEEK_CUR); in WriteDexFile() 3035 file->Fd(), in OpenDexFiles()
|
/art/dexlayout/ |
D | dexlayout_test.cc | 372 pfi.Save(file->Fd()); in CreateProfile()
|
/art/runtime/jit/ |
D | profile_compilation_info.cc | 193 int fd = profile_file->Fd(); in Load() 230 int fd = profile_file->Fd(); in Save()
|