Home
last modified time | relevance | path

Searched refs:stat_buf (Results 1 – 5 of 5) sorted by relevance

/system/extras/toolchain-extras/
Dprofile-clang-extras-test.cpp51 struct stat stat_buf; in TEST() local
52 ASSERT_EQ(stat(OPEN_AT_TEST_FNAME, &stat_buf), 0); in TEST()
53 ASSERT_EQ(stat_buf.st_mode & 0777, 0666); in TEST()
/system/apex/apexd/
Dapexd_utils.h287 struct stat stat_buf; in FindFirstExistingDirectory() local
288 if (stat(first_dir.c_str(), &stat_buf) != 0) { in FindFirstExistingDirectory()
290 if (stat(second_dir.c_str(), &stat_buf) != 0) { in FindFirstExistingDirectory()
293 if (!S_ISDIR(stat_buf.st_mode)) { in FindFirstExistingDirectory()
299 if (S_ISDIR(stat_buf.st_mode)) { in FindFirstExistingDirectory()
304 if (stat(second_dir.c_str(), &stat_buf) != 0) { in FindFirstExistingDirectory()
307 if (!S_ISDIR(stat_buf.st_mode)) { in FindFirstExistingDirectory()
317 struct stat stat_buf; in MoveDir() local
318 if (stat(to.c_str(), &stat_buf) != 0) { in MoveDir()
321 if (!S_ISDIR(stat_buf.st_mode)) { in MoveDir()
Dapexd.cpp3180 struct stat stat_buf; in CollectApexInfoList() local
3181 if (stat(apex.GetPath().c_str(), &stat_buf) == 0) { in CollectApexInfoList()
3182 mtime.emplace(stat_buf.st_mtime); in CollectApexInfoList()
/system/iorap/src/inode2filename/
Dsearch_directories.cc158 const struct stat& stat_buf) { in FindAndRemoveInodeInList()
160 << "stat_buf{st_dev=" << stat_buf.st_dev << ",st_ino=" << stat_buf.st_ino << "}"; in FindAndRemoveInodeInList()
166 if (inode.inode != stat_buf.st_ino) { in FindAndRemoveInodeInList()
175 if (inode_dev != stat_buf.st_dev) { in FindAndRemoveInodeInList()
178 << ", expected dev: " << stat_buf.st_dev in FindAndRemoveInodeInList()
188 DCHECK(found->second.inode == stat_buf.st_ino); in FindAndRemoveInodeInList()
821 VisitValueOrLogError(maybe_stat, [&](const struct stat& stat_buf) { in SearchDirectoriesForMatchingInodes() argument
823 std::optional<Inode> inode = inodes->FindAndRemoveInodeInList(inode_list, stat_buf); in SearchDirectoriesForMatchingInodes()
1108 VisitValueOrLogError(maybe_stat, [&](const struct stat& stat_buf) { in FilterFilenamesForSpecificInodes() argument
1110 std::optional<Inode> inode = inodes->FindAndRemoveInodeInList(inode_list, stat_buf); in FilterFilenamesForSpecificInodes()
[all …]
/system/libziparchive/
Dzip_archive_test.cc519 struct stat stat_buf; in TEST() local
520 ASSERT_EQ(0, fstat(tmp_output_file.fd, &stat_buf)); in TEST()
521 ASSERT_EQ(0, stat_buf.st_size); in TEST()
546 struct stat stat_buf; in TEST() local
547 ASSERT_EQ(0, fstat(tmp_output_file.fd, &stat_buf)); in TEST()
548 ASSERT_EQ(kAbUncompressedSize, static_cast<size_t>(stat_buf.st_size)); in TEST()