Home
last modified time | relevance | path

Searched refs:StatBuf (Results 1 – 12 of 12) sorted by relevance

/external/clang/lib/Basic/
DFileSystemStatCache.cpp42 bool FileSystemStatCache::get(const char *Path, struct stat &StatBuf, in get() argument
49 R = Cache->getStat(Path, StatBuf, FileDescriptor); in get()
52 R = ::stat(Path, &StatBuf) != 0 ? CacheMissing : CacheExists; in get()
74 if (::fstat(*FileDescriptor, &StatBuf) == 0) in get()
91 if (S_ISDIR(StatBuf.st_mode) != isForDir) { in get()
106 MemorizeStatCalls::getStat(const char *Path, struct stat &StatBuf, in getStat() argument
108 LookupResult Result = statChained(Path, StatBuf, FileDescriptor); in getStat()
118 if (!S_ISDIR(StatBuf.st_mode) || llvm::sys::path::is_absolute(Path)) in getStat()
119 StatCalls[Path] = StatBuf; in getStat()
DFileManager.cpp131 const struct stat &StatBuf) { in getDirectory() argument
132 return UniqueDirs[std::make_pair(StatBuf.st_dev, StatBuf.st_ino)]; in getDirectory()
146 FileEntry &getFile(const char * /*Name*/, const struct stat &StatBuf) { in getFile() argument
149 *UniqueFiles.insert(FileEntry(StatBuf.st_dev, in getFile()
150 StatBuf.st_ino, in getFile()
151 StatBuf.st_mode)).first); in getFile()
294 struct stat StatBuf; in getDirectory() local
295 if (getStatValue(InterndDirName, StatBuf, 0/*directory lookup*/)) { in getDirectory()
306 DirectoryEntry &UDE = UniqueRealDirs.getDirectory(InterndDirName, StatBuf); in getDirectory()
362 struct stat StatBuf; in getFile() local
[all …]
DSourceManager.cpp1419 struct stat StatBuf; in getActualFileInode() local
1420 if (::stat(File->getName(), &StatBuf)) in getActualFileInode()
1423 return StatBuf.st_ino; in getActualFileInode()
/external/clang/include/clang/Basic/
DFileSystemStatCache.h50 static bool get(const char *Path, struct stat &StatBuf, int *FileDescriptor,
69 virtual LookupResult getStat(const char *Path, struct stat &StatBuf,
72 LookupResult statChained(const char *Path, struct stat &StatBuf, in statChained() argument
75 return Next->getStat(Path, StatBuf, FileDescriptor); in statChained()
79 return get(Path, StatBuf, FileDescriptor, 0) ? CacheMissing : CacheExists; in statChained()
97 virtual LookupResult getStat(const char *Path, struct stat &StatBuf,
DFileManager.h153 bool getStatValue(const char *Path, struct stat &StatBuf,
217 bool getNoncachedStatValue(StringRef Path, struct stat &StatBuf);
/external/clang/lib/Frontend/
DCacheTokens.cpp61 struct stat *StatBuf; member in __anon9662abf70111::PTHEntryKeyVariant
64 : FE(fe), Kind(IsFE), StatBuf(0) {} in PTHEntryKeyVariant()
67 : Path(path), Kind(IsDE), StatBuf(new struct stat(*statbuf)) {} in PTHEntryKeyVariant()
70 : Path(path), Kind(IsNoExist), StatBuf(0) {} in PTHEntryKeyVariant()
92 ::Emit32(Out, (uint32_t) StatBuf->st_ino); in EmitData()
93 ::Emit32(Out, (uint32_t) StatBuf->st_dev); in EmitData()
94 ::Emit16(Out, (uint16_t) StatBuf->st_mode); in EmitData()
95 ::Emit64(Out, (uint64_t) StatBuf->st_mtime); in EmitData()
96 ::Emit64(Out, (uint64_t) StatBuf->st_size); in EmitData()
97 delete StatBuf; in EmitData()
[all …]
DASTUnit.cpp1367 struct stat StatBuf; in getMainBufferWithPrecompiledPreamble() local
1368 if (FileMgr->getNoncachedStatValue(R->second, StatBuf)) { in getMainBufferWithPrecompiledPreamble()
1375 OverriddenFiles[R->first] = std::make_pair(StatBuf.st_size, in getMainBufferWithPrecompiledPreamble()
1376 StatBuf.st_mtime); in getMainBufferWithPrecompiledPreamble()
1405 struct stat StatBuf; in getMainBufferWithPrecompiledPreamble() local
1406 if (FileMgr->getNoncachedStatValue(F->first(), StatBuf)) { in getMainBufferWithPrecompiledPreamble()
1409 } else if (StatBuf.st_size != F->second.first || in getMainBufferWithPrecompiledPreamble()
1410 StatBuf.st_mtime != F->second.second) in getMainBufferWithPrecompiledPreamble()
/external/llvm/lib/Support/
DLockFileManager.cpp127 struct stat StatBuf; in LockFileManager() local
128 if (stat(UniqueLockFileName.c_str(), &StatBuf) == 0 && in LockFileManager()
129 StatBuf.st_nlink == 2) in LockFileManager()
/external/clang/lib/Serialization/
DASTReaderInternals.h194 int StatSimpleCache(const char *Path, struct stat *StatBuf) { in StatSimpleCache() argument
199 *StatBuf = SearchPathStatBuf; in StatSimpleCache()
203 return stat(Path, StatBuf); in StatSimpleCache()
DASTReader.cpp911 LookupResult getStat(const char *Path, struct stat &StatBuf, in getStat() argument
919 return statChained(Path, StatBuf, FileDescriptor); in getStat()
925 StatBuf.st_ino = Data.ino; in getStat()
926 StatBuf.st_dev = Data.dev; in getStat()
927 StatBuf.st_mtime = Data.mtime; in getStat()
928 StatBuf.st_mode = Data.mode; in getStat()
929 StatBuf.st_size = Data.size; in getStat()
2479 struct stat StatBuf; in validateFileEntries() local
2480 if (::stat(File->getName(), &StatBuf) != 0) { in validateFileEntries()
2481 StatBuf.st_size = File->getSize(); in validateFileEntries()
[all …]
/external/clang/lib/Lex/
DPTHLexer.cpp684 LookupResult getStat(const char *Path, struct stat &StatBuf, in getStat() argument
691 return statChained(Path, StatBuf, FileDescriptor); in getStat()
698 StatBuf.st_ino = Data.ino; in getStat()
699 StatBuf.st_dev = Data.dev; in getStat()
700 StatBuf.st_mtime = Data.mtime; in getStat()
701 StatBuf.st_mode = Data.mode; in getStat()
702 StatBuf.st_size = Data.size; in getStat()
/external/clang/unittests/Basic/
DFileManagerTest.cpp54 virtual LookupResult getStat(const char *Path, struct stat &StatBuf, in getStat() argument
57 StatBuf = StatCalls[Path]; in getStat()