Home
last modified time | relevance | path

Searched refs:Stat (Results 1 – 25 of 86) sorted by relevance

1234

/third_party/ninja/src/
Ddisk_interface_test.cc53 EXPECT_EQ(0, disk_.Stat("nosuchfile", &err)); in TEST_F()
58 EXPECT_EQ(0, disk_.Stat("nosuchdir/nosuchfile", &err)); in TEST_F()
64 EXPECT_EQ(0, disk_.Stat("notadir/nosuchfile", &err)); in TEST_F()
72 EXPECT_EQ(-1, disk_.Stat(bad_path, &err)); in TEST_F()
76 EXPECT_EQ(-1, disk_.Stat(too_long_name, &err)); in TEST_F()
84 EXPECT_GT(disk_.Stat("file", &err), 1); in TEST_F()
92 EXPECT_GT(disk_.Stat("..", &err), 1); in TEST_F()
94 EXPECT_GT(disk_.Stat(".", &err), 1); in TEST_F()
96 EXPECT_GT(disk_.Stat("subdir", &err), 1); in TEST_F()
98 EXPECT_GT(disk_.Stat("subdir/subsubdir", &err), 1); in TEST_F()
[all …]
Dclean_test.cc59 EXPECT_EQ(0, fs_.Stat("in1", &err)); in TEST_F()
60 EXPECT_EQ(0, fs_.Stat("out1", &err)); in TEST_F()
61 EXPECT_EQ(0, fs_.Stat("in2", &err)); in TEST_F()
62 EXPECT_EQ(0, fs_.Stat("out2", &err)); in TEST_F()
91 EXPECT_LT(0, fs_.Stat("in1", &err)); in TEST_F()
92 EXPECT_LT(0, fs_.Stat("out1", &err)); in TEST_F()
93 EXPECT_LT(0, fs_.Stat("in2", &err)); in TEST_F()
94 EXPECT_LT(0, fs_.Stat("out2", &err)); in TEST_F()
122 EXPECT_EQ(0, fs_.Stat("in1", &err)); in TEST_F()
123 EXPECT_EQ(0, fs_.Stat("out1", &err)); in TEST_F()
[all …]
Ddisk_interface.h48 virtual TimeStamp Stat(const std::string& path, std::string* err) const = 0;
78 virtual TimeStamp Stat(const std::string& path, std::string* err) const;
/third_party/libabigail/tests/data/test-diff-pkg/
Dlibcdio-0.94-1.fc26.x86_64--libcdio-0.94-2.fc26.x86_64-report.1.txt7 …thod void std::vector<ISO9660::Stat*, std::allocator<ISO9660::Stat*> >::_M_emplace_back_aux<ISO966…
11Stat*, std::allocator<ISO9660::Stat*> >::_M_realloc_insert<ISO9660::Stat*>(std::vector<ISO9660::St…
/third_party/rust/crates/rustix/src/io/
Dprocfs.rs22 cwd, fstat, fstatfs, major, openat, renameat, Dir, FileType, Mode, OFlags, Stat,
49 proc_stat: Option<&Stat>, in check_proc_entry() argument
50 ) -> io::Result<Stat> { in check_proc_entry() argument
59 entry_stat: Stat, in check_proc_entry_with_stat() argument
60 proc_stat: Option<&Stat>, in check_proc_entry_with_stat() argument
61 ) -> io::Result<Stat> { in check_proc_entry_with_stat() argument
105 fn check_proc_root(entry: BorrowedFd<'_>, stat: &Stat) -> io::Result<()> { in check_proc_root()
131 stat: &Stat, in check_proc_subdir() argument
132 proc_stat: Option<&Stat>, in check_proc_subdir() argument
148 fn check_proc_file(stat: &Stat, proc_stat: Option<&Stat>) -> io::Result<()> { in check_proc_file() argument
[all …]
/third_party/lzma/CPP/7zip/UI/GUI/
DExtractGUI.cpp103 CDecompressStat Stat; in ProcessVirt() local
125 FinalMessage.ErrorMessage.Message, Stat); in ProcessVirt()
132 AddValuePair(Pairs, IDS_ARCHIVES_COLON, Stat.NumArchives); in ProcessVirt()
133 AddSizeValuePair(Pairs, IDS_PROP_PACKED_SIZE, Stat.PackSize); in ProcessVirt()
140 AddValuePair(s, IDS_ARCHIVES_COLON, Stat.NumArchives, false); in ProcessVirt()
141 AddSizePair(s, IDS_PROP_PACKED_SIZE, Stat.PackSize); in ProcessVirt()
143 if (Stat.NumFolders != 0) in ProcessVirt()
144 AddValuePair(s, IDS_PROP_FOLDERS, Stat.NumFolders); in ProcessVirt()
145 AddValuePair(s, IDS_PROP_FILES, Stat.NumFiles); in ProcessVirt()
146 AddSizePair(s, IDS_PROP_SIZE, Stat.UnpackSize); in ProcessVirt()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DStatistic.cpp155 for (auto *Stat : Stats) { in reset() local
158 Stat->Initialized = false; in reset()
159 Stat->Value = 0; in reset()
209 for (const TrackingStatistic *Stat : Stats.Stats) { in PrintStatisticsJSON() local
211 assert(yaml::needsQuotes(Stat->getDebugType()) == yaml::QuotingType::None && in PrintStatisticsJSON()
213 assert(yaml::needsQuotes(Stat->getName()) == yaml::QuotingType::None && in PrintStatisticsJSON()
215 OS << "\t\"" << Stat->getDebugType() << '.' << Stat->getName() << "\": " in PrintStatisticsJSON()
216 << Stat->getValue(); in PrintStatisticsJSON()
258 for (const auto &Stat : StatInfo->statistics()) in GetStatistics() local
259 ReturnStats.emplace_back(Stat->getName(), Stat->getValue()); in GetStatistics()
DFileCollector.cpp108 const sys::fs::file_status &Stat) { in copyAccessAndModificationTime() argument
116 FD, Stat.getLastAccessedTime(), Stat.getLastModificationTime())) in copyAccessAndModificationTime()
136 sys::fs::file_status Stat; in copyFiles() local
137 if (std::error_code EC = sys::fs::status(entry.VPath, Stat)) { in copyFiles()
143 if (Stat.type() == sys::fs::file_type::directory_file) { in copyFiles()
169 copyAccessAndModificationTime(entry.RPath, Stat); in copyFiles()
DFileOutputBuffer.cpp175 fs::file_status Stat; in create() local
176 fs::status(Path, Stat); in create()
186 switch (Stat.type()) { in create()
DVirtualFileSystem.cpp548 Status Stat; member in llvm::vfs::detail::InMemoryFile
552 InMemoryFile(Status Stat, std::unique_ptr<llvm::MemoryBuffer> Buffer) in InMemoryFile() argument
553 : InMemoryNode(Stat.getName(), IME_File), Stat(std::move(Stat)), in InMemoryFile()
560 return Status::copyWithNewName(Stat, RequestedName); in getStatus()
565 return (std::string(Indent, ' ') + Stat.getName() + "\n").str(); in toString()
623 Status Stat; member in llvm::vfs::detail::InMemoryDirectory
627 InMemoryDirectory(Status Stat) in InMemoryDirectory() argument
628 : InMemoryNode(Stat.getName(), IME_Directory), Stat(std::move(Stat)) {} in InMemoryDirectory()
634 return Status::copyWithNewName(Stat, RequestedName); in getStatus()
655 (std::string(Indent, ' ') + Stat.getName() + "\n").str(); in toString()
[all …]
/third_party/benchmark/src/
Dstatistics.cc157 for (const auto& Stat : *reports[0].statistics) { in ComputeStats()
167 data.aggregate_name = Stat.name_; in ComputeStats()
168 data.aggregate_unit = Stat.unit_; in ComputeStats()
178 data.real_accumulated_time = Stat.compute_(real_accumulated_time_stat); in ComputeStats()
179 data.cpu_accumulated_time = Stat.compute_(cpu_accumulated_time_stat); in ComputeStats()
196 const auto uc_stat = Stat.compute_(kv.second.s); in ComputeStats()
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
Dsyscalls.rs28 RenameFlags, ResolveFlags, SealFlags, Stat, StatFs, StatVfs, StatVfsMountFlags, StatxFlags,
411 pub(crate) fn fstat(fd: BorrowedFd<'_>) -> io::Result<Stat> { in fstat() argument
423 let mut result = MaybeUninit::<Stat>::uninit(); in fstat()
430 fn fstat_old(fd: BorrowedFd<'_>) -> io::Result<Stat> { in fstat_old() argument
447 pub(crate) fn stat(filename: &CStr) -> io::Result<Stat> { in stat() argument
464 let mut result = MaybeUninit::<Stat>::uninit(); in stat()
477 fn stat_old(filename: &CStr) -> io::Result<Stat> { in stat_old() argument
506 pub(crate) fn statat(dirfd: BorrowedFd<'_>, filename: &CStr, flags: AtFlags) -> io::Result<Stat> { in statat() argument
518 let mut result = MaybeUninit::<Stat>::uninit(); in statat()
531 fn statat_old(dirfd: BorrowedFd<'_>, filename: &CStr, flags: AtFlags) -> io::Result<Stat> { in statat_old() argument
[all …]
/third_party/skia/src/utils/win/
DSkIStream.h50 SK_STDMETHODIMP Stat(STATSTG* pStatstg, DWORD grfStatFlag) override;
72 SK_STDMETHODIMP Stat(STATSTG* pStatstg, DWORD grfStatFlag) override;
91 SK_STDMETHODIMP Stat(STATSTG* pStatstg, DWORD grfStatFlag) override;
DSkIStream.cpp83 SK_STDMETHODIMP SkBaseIStream::Stat(STATSTG* pStatstg, DWORD grfStatFlag) in Stat() function in SkBaseIStream
174 SK_STDMETHODIMP SkIStream::Stat(STATSTG* pStatstg, DWORD grfStatFlag) { in Stat() function in SkIStream
225 SK_STDMETHODIMP SkWIStream::Stat(STATSTG* pStatstg, DWORD grfStatFlag) { in Stat() function in SkWIStream
/third_party/skia/third_party/externals/swiftshader/tests/regres/util/
Dutil.go24 s, err := os.Stat(path)
33 s, err := os.Stat(path)
/third_party/lzma/CPP/7zip/Compress/
DXzDecoder.cpp39 XzStatInfo_Clear(&Stat); in Decode()
84 &Stat, in Decode()
130 *value = Stat.InSize; in GetInStreamProcessedSize()
/third_party/googletest/googletest/test/
Dgtest_premature_exit_test.cc41 using ::testing::internal::posix::Stat;
51 return Stat(filepath, &stat) == 0; in FileExists()
/third_party/rust/crates/rustix/tests/fs/
Drenameat.rs2 use rustix::fs::Stat;
5 fn same(a: &Stat, b: &Stat) -> bool { in same() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DCodeMoverUtils.cpp50 llvm::Statistic &Stat) { in reportInvalidCandidate() argument
51 ++Stat; in reportInvalidCandidate()
53 << Stat.getDesc()); in reportInvalidCandidate()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/
DPDBSymbol.cpp133 for (auto &Stat : Stats) { in dumpChildStats() local
134 outs() << Stat.first << ": " << Stat.second << "\n"; in dumpChildStats()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/span/
Duri.go99 infoa, err := os.Stat(filepath.FromSlash(fa))
103 infob, err := os.Stat(filepath.FromSlash(fb))
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/lsp/span/
Duri.go99 infoa, err := os.Stat(filepath.FromSlash(fa))
103 infob, err := os.Stat(filepath.FromSlash(fb))
/third_party/spirv-tools/utils/vscode/src/lsp/span/
Duri.go99 infoa, err := os.Stat(filepath.FromSlash(fa))
103 infob, err := os.Stat(filepath.FromSlash(fb))
/third_party/rust/crates/rustix/src/backend/libc/fs/
Dsyscalls.rs118 use crate::fs::{Mode, OFlags, Stat, Timestamps};
402 pub(crate) fn statat(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result<Stat> { in statat() argument
424 let mut stat = MaybeUninit::<Stat>::uninit(); in statat()
439 fn statat_old(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result<Stat> { in statat_old() argument
958 pub(crate) fn fstat(fd: BorrowedFd<'_>) -> io::Result<Stat> { in fstat() argument
980 let mut stat = MaybeUninit::<Stat>::uninit(); in fstat()
990 fn fstat_old(fd: BorrowedFd<'_>) -> io::Result<Stat> { in fstat_old() argument
1333 fn statx_to_stat(x: crate::fs::Statx) -> io::Result<Stat> { in statx_to_stat() argument
1334 Ok(Stat { in statx_to_stat()
1373 fn statx_to_stat(x: crate::fs::Statx) -> io::Result<Stat> { in statx_to_stat() argument
[all …]
/third_party/lzma/CPP/7zip/UI/Common/
DEnumDirItems.cpp78 Stat.NumDirs++; in AddDirFileInfo()
82 Stat.NumAltStreams++; in AddDirFileInfo()
83 Stat.AltStreamsSize += fi.Size; in AddDirFileInfo()
88 Stat.NumFiles++; in AddDirFileInfo()
89 Stat.FilesSize += fi.Size; in AddDirFileInfo()
100 Stat.NumErrors++; in AddError()
116 return Callback->ScanProgress(Stat, dirPath, true); in ScanProgress()
577 Stat.FilesSize -= fi.Size; in SetLinkInfo()
1486 st = dirItems.Stat; in EnumerateDirItemsAndSort()

1234