Home
last modified time | relevance | path

Searched refs:Fd (Results 1 – 25 of 28) sorted by relevance

12

/art/runtime/base/
Dscoped_flock.cc50 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()
Dfile_magic.cc36 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/
Dfd_file_test.cc45 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 …]
Dfd_file.cc229 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()
Dfd_file.h117 int Fd() const;
/art/profman/
Dprofile_assistant.cc39 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/
Dfile_output_stream.cc33 return lseek(file_->Fd(), offset, static_cast<int>(whence)); in Seek()
/art/runtime/gc/space/
Dimage_space_fs.h153 if (lseek(file->Fd(), 0, SEEK_SET) == -1) { in MarkZygoteStart()
Dimage_space.cc604 file->Fd(), in Init()
614 file->Fd(), in Init()
628 file->Fd(), in Init()
/art/runtime/
Delf_file.cc112 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()
Dzip_archive.cc62 const int32_t error = ExtractEntryToFile(handle_, zip_entry_, file.Fd()); in ExtractToFile()
Doat_file_assistant.cc726 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()
Dvdex_file.cc86 return Open(vdex_file->Fd(), vdex_length, vdex_filename, writable, low_4gb, unquicken, error_msg); in Open()
Dutils.cc86 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()
Dnative_stack_dump.cc140 int in = pipe->get()->in.Fd(); in Drain()
Dcommon_runtime_test.cc183 return file_->Fd(); in GetFd()
/art/dex2oat/
Ddex2oat_test.cc74 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()
Ddex2oat_image_test.cc324 profile.Save(profile_file.GetFile()->Fd()); in TEST_F()
Ddex2oat.cc1355 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/
Djit_logger.cc212 int fd = jit_dump_file_->Fd(); in OpenMarkerFile()
/art/patchoat/
Dpatchoat.cc76 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/
Doat_test.cc283 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()
Doat_writer.cc397 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/
Ddexlayout_test.cc372 pfi.Save(file->Fd()); in CreateProfile()
/art/runtime/jit/
Dprofile_compilation_info.cc193 int fd = profile_file->Fd(); in Load()
230 int fd = profile_file->Fd(); in Save()

12