Home
last modified time | relevance | path

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

12

/art/libartbase/base/
Dscoped_flock.cc59 int flock_result = TEMP_FAILURE_RETRY(flock(file->Fd(), operation)); in Open()
69 int fstat_result = TEMP_FAILURE_RETRY(fstat(file->Fd(), &fstat_stat)); in Open()
120 if (locked_file->Fd() == -1) { in DupOf()
125 if (0 != TEMP_FAILURE_RETRY(flock(locked_file->Fd(), LOCK_EX))) { in DupOf()
137 if (this->Fd() != -1) { in ReleaseLock()
138 int flock_result = TEMP_FAILURE_RETRY(flock(this->Fd(), LOCK_UN)); in ReleaseLock()
Dfile_magic.cc35 if (fd.Fd() == -1) { in OpenAndReadMagic()
39 if (!ReadMagicAndReset(fd.Fd(), magic, error_msg)) { in OpenAndReadMagic()
Dlogging.cc181 int64_t n = TEMP_FAILURE_RETRY(read(file.Fd(), &buf[filled_to], kBufSize - filled_to)); in PrintFileToLog()
Dzip_archive.cc62 const int32_t error = ExtractEntryToFile(handle_, zip_entry_, file.Fd()); in ExtractToFile()
/art/libartbase/base/unix_file/
Dfd_file_test.cc67 EXPECT_EQ(FdFile::kInvalidFd, file.Fd()); in TEST_F()
76 EXPECT_GE(file->Fd(), 0); in TEST_F()
77 EXPECT_NE(file->Fd(), FdFile::kInvalidFd); in TEST_F()
78 EXPECT_TRUE(FdFile::IsOpenFd(file->Fd())); in TEST_F()
79 int old_fd = file->Fd(); in TEST_F()
90 EXPECT_GE(file.Fd(), 0); in TEST_F()
95 EXPECT_EQ(FdFile::kInvalidFd, file.Fd()); in TEST_F()
100 EXPECT_GE(file2.Fd(), 0); in TEST_F()
112 EXPECT_GE(file.Fd(), 0); in TEST_F()
127 EXPECT_GE(file.Fd(), 0); in TEST_F()
[all …]
Dfd_file.cc408 int FdFile::Fd() const { in Fd() function in unix_file::FdFile
540 if (TEMP_FAILURE_RETRY(lseek(Fd(), size, SEEK_CUR)) < 0) { in SparseWrite()
561 input_file->Fd(), in UserspaceSparseCopy()
588 off_t input_offset = TEMP_FAILURE_RETRY(lseek(input_file->Fd(), off + size, SEEK_SET)); in UserspaceSparseCopy()
611 off_t current_offset = TEMP_FAILURE_RETRY(lseek(Fd(), 0, SEEK_CUR)); in Copy()
621 if (TEMP_FAILURE_RETRY(fstat(Fd(), &output_stat)) < 0) { in Copy()
644 if (lseek(input_file->Fd(), off, SEEK_SET) != off) { in Copy()
Dfd_file.h93 int Fd() const;
/art/artd/
Dfile_utils_test.cc100 EXPECT_GE((*new_file)->Fd(), 0); in TEST_F()
161 ASSERT_TRUE(WriteStringToFd("new_file_1", new_file_1->Fd())); in TEST_F()
162 ASSERT_TRUE(WriteStringToFd("new_file_2", new_file_2->Fd())); in TEST_F()
185 ASSERT_TRUE(WriteStringToFd("new_file_1", new_file_1->Fd())); in TEST_F()
186 ASSERT_TRUE(WriteStringToFd("new_file_2", new_file_2->Fd())); in TEST_F()
208 ASSERT_TRUE(WriteStringToFd("new_file_1", new_file_1->Fd())); in TEST_F()
209 ASSERT_TRUE(WriteStringToFd("new_file_2", new_file_2->Fd())); in TEST_F()
234 ASSERT_TRUE(WriteStringToFd("new_file_1", new_file_1->Fd())); in TEST_F()
235 ASSERT_TRUE(WriteStringToFd("new_file_2", new_file_2->Fd())); in TEST_F()
264 ASSERT_TRUE(WriteStringToFd("new_file_1", new_file_1->Fd())); in TEST_F()
[all …]
Dartd.cc313 if (!WriteStringToFd(content, dst_file.Fd())) { in CopyFile()
316 if (fsync(dst_file.Fd()) != 0) { in CopyFile()
319 if (lseek(dst_file.Fd(), /*offset=*/0, SEEK_SET) != 0) { in CopyFile()
366 if (!ReadMagicAndReset(src->Fd(), &magic, &error_msg)) { in AnalyzeCopyAndRewriteProfileFailure()
371 ZipArchive::OpenFromOwnedFd(src->Fd(), src->GetPath().c_str(), &error_msg)); in AnalyzeCopyAndRewriteProfileFailure()
396 if (!ReadMagicAndReset(dex_file->Fd(), &magic, &error_msg)) { in ExtractEmbeddedProfileToFd()
408 ZipArchive::OpenFromOwnedFd(dex_file->Fd(), dex_path.c_str(), &error_msg)); in ExtractEmbeddedProfileToFd()
435 if (ftruncate(memfd.Fd(), size) != 0) { in ExtractEmbeddedProfileToFd()
442 memfd.Fd(), in ExtractEmbeddedProfileToFd()
456 std::string path = ART_FORMAT("/proc/self/fd/{}", memfd.Fd()); in ExtractEmbeddedProfileToFd()
[all …]
Dfile_utils.h58 int Fd() const { return fd_; } in Fd() function
/art/libarttools/
Dart_exec_test.cc160 ART_FORMAT("--keep-fds={}:{}", file3->Fd(), file2->Fd()), in TEST_F()
169 file1->Fd(), in TEST_F()
170 file2->Fd(), in TEST_F()
171 file3->Fd(), in TEST_F()
/art/profman/
Dprofile_assistant.cc38 if (!info.Load(reference_profile_file->Fd(), /*merge_classes=*/ true, filter_fn)) { in ProcessProfilesInternal()
55 if (!cur_info.Load(profile_files[i]->Fd(), /*merge_classes=*/ true, filter_fn)) { in ProcessProfilesInternal()
65 if (wrong_info.Load(profile_files[i]->Fd(), /*merge_classes=*/ true, filter_fn)) { in ProcessProfilesInternal()
114 if (!info.Save(reference_profile_file->Fd())) { in ProcessProfilesInternal()
/art/dex2oat/
Ddex2oat_cts_test.cc78 args.emplace_back("--oat-fd=" + std::to_string(oat_file->Fd())); in TEST_F()
83 args.emplace_back("--output-vdex-fd=" + std::to_string(vdex_file->Fd())); in TEST_F()
Ddex2oat_test.cc85 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd()));
645 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()
1632 StringPrintf("--zip-fd=%d", dex_file->Fd()), in TEST_F()
1718 ASSERT_NE(-1, zip_file->Fd()); in TEST_F()
/art/libelffile/stream/
Dfile_output_stream.cc33 return lseek(file_->Fd(), offset, static_cast<int>(whence)); in Seek()
/art/libdexfile/dex/
Ddex_file_loader.cc178 ZipArchive::OpenFromOwnedFd(file_->Fd(), location_.c_str(), error_msg) : in GetMultiDexChecksum()
309 if (!ReadMagicAndReset(file_->Fd(), magic, error_msg)) { in InitAndReadMagic()
325 if (fstat(file_->Fd(), &sbuf) == -1) { in MapRootContainer()
336 file_->Fd(), in MapRootContainer()
367 ZipArchive::OpenFromOwnedFd(file_->Fd(), location_.c_str(), error_msg) : in Open()
Dart_dex_file_loader_test.cc65 ASSERT_GE(file.Fd(), 0); in TEST_F()
81 ASSERT_GE(file.Fd(), 0); in TEST_F()
/art/dex2oat/linker/
Doat_writer_test.cc315 off_t offset = lseek(zip_file_->Fd(), 0, SEEK_CUR); in AddFile()
343 off_t offset = lseek(zip_file_->Fd(), 0, SEEK_CUR); in Finish()
659 ASSERT_NE(-1, dex_file_fd.Fd()); in TestDexFileInput()
660 ASSERT_EQ(0, lseek(dex_file_fd.Fd(), 0, SEEK_SET)); in TestDexFileInput()
803 ASSERT_NE(-1, zip_fd.Fd()); in TestZipFileInput()
804 ASSERT_EQ(0, lseek(zip_fd.Fd(), 0, SEEK_SET)); in TestZipFileInput()
/art/runtime/
Dcommon_runtime_test.cc494 argv.push_back("--image-fd=" + std::to_string(art_file->Fd())); in CompileBootImage()
495 argv.push_back("--output-vdex-fd=" + std::to_string(vdex_file->Fd())); in CompileBootImage()
496 argv.push_back("--oat-fd=" + std::to_string(oat_file->Fd())); in CompileBootImage()
600 profile.Save(out_file->Fd()); in GenerateProfile()
Dnative_stack_dump.cc162 int in = pipe->get()->in.Fd(); in Drain()
/art/runtime/oat/
Delf_file.cc106 file->GetPath().c_str(), file->Fd(), strerror(errno)); in Setup()
124 file->Fd(), in Setup()
144 file->Fd(), in Setup()
159 file->Fd(), in Setup()
1155 file->GetPath().c_str(), file->Fd(), strerror(errno)); in Load()
1245 file->Fd(), in Load()
1478 int result = ftruncate(file->Fd(), offset); in Strip()
1515 file->Fd(), in Open()
1564 file->Fd(), in Open()
/art/odrefresh/
Dodrefresh.cc188 if (fchmod(output_files.back()->Fd(), kFileMode) != 0) { in MoveOrEraseFiles()
478 args.Add("--profile-file-fd=%d", profile_file->Fd()); in AddDex2OatProfile()
504 bcp_fds.push_back(std::to_string(jar_file->Fd())); in AddBootClasspathFds()
520 args.Add("--cache-info-fd=%d", cache_info_file->Fd()); in AddCacheInfoFd()
561 bcp_image_fds.push_back(std::to_string(image_file->Fd())); in AddCompiledBootClasspathFdsIfAny()
573 bcp_oat_fds.push_back(std::to_string(oat_file->Fd())); in AddCompiledBootClasspathFdsIfAny()
585 bcp_vdex_fds.push_back(std::to_string(vdex_file->Fd())); in AddCompiledBootClasspathFdsIfAny()
1737 args.Add("--dex-fd=%d", file->Fd()); in RunDex2oat()
1779 args.Add(StringPrintf("--%s-fd=%d", kind, output_file->Fd())); in RunDex2oat()
1878 args.Add("--dirty-image-objects-fd=%d", file->Fd()); in RunDex2oatForBootClasspath()
[all …]
/art/openjdkjvmti/
Dti_search.cc282 if (file.Fd() < 0) { in AddToDexClassLoaderInMemory()
300 oss << "/proc/self/fd/" << file.Fd(); in AddToDexClassLoaderInMemory()
/art/compiler/jit/
Djit_logger.cc211 int fd = jit_dump_file_->Fd(); in OpenMarkerFile()
/art/runtime/jit/
Djit.cc1278 if (profile.Fd() == -1) { in CompileMethodsFromBootProfile()
1284 if (!profile_info.Load(profile.Fd(), dex_files)) { in CompileMethodsFromBootProfile()
1328 if (profile.Fd() == -1) { in CompileMethodsFromProfile()
1334 if (!profile_info.Load(profile.Fd())) { in CompileMethodsFromProfile()

12