Home
last modified time | relevance | path

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

/aosp12/system/apex/apexd/
H A 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()
H A Dapexd.cpp3230 struct stat stat_buf; in CollectApexInfoList() local
3231 if (stat(apex.GetPath().c_str(), &stat_buf) == 0) { in CollectApexInfoList()
3232 mtime.emplace(stat_buf.st_mtime); in CollectApexInfoList()
/aosp12/system/extras/toolchain-extras/
H A 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()
/aosp12/system/iorap/src/inode2filename/
H A 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
1290 VisitValueOrLogError(maybe_stat, [&](const struct stat& stat_buf) { in EmitAllFilenames() argument
[all …]
/aosp12/frameworks/native/libs/vr/libpdx_uds/
H A Dipc_helper.cpp529 struct stat stat_buf; in WaitForEndpoint() local
530 ret = lstat(current.c_str(), &stat_buf); in WaitForEndpoint()
533 else if (ret == 0 && S_ISLNK(stat_buf.st_mode)) in WaitForEndpoint()
/aosp12/packages/services/BuiltInPrintService/jni/lib/
H A Dlib_wprint.c1825 struct stat stat_buf; in wprintStartJob() local
1841 if (OK == stat(pathname, &stat_buf)) { in wprintStartJob()
1842 if (S_ISDIR(stat_buf.st_mode)) { in wprintStartJob()
1844 } else if (stat_buf.st_size == 0) { in wprintStartJob()
2034 struct stat stat_buf; in wprintPage() local
2043 } else if (OK == stat(filename, &stat_buf)) { in wprintPage()
2044 if (!S_ISREG(stat_buf.st_mode) || (stat_buf.st_size == 0)) { in wprintPage()
/aosp12/system/libziparchive/
H A 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()