/external/clang/lib/Basic/ |
D | FileSystemStatCache.cpp | 42 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()
|
D | FileManager.cpp | 131 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 …]
|
D | SourceManager.cpp | 1419 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/ |
D | FileSystemStatCache.h | 50 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,
|
D | FileManager.h | 153 bool getStatValue(const char *Path, struct stat &StatBuf, 217 bool getNoncachedStatValue(StringRef Path, struct stat &StatBuf);
|
/external/clang/lib/Frontend/ |
D | CacheTokens.cpp | 61 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 …]
|
D | ASTUnit.cpp | 1367 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/ |
D | LockFileManager.cpp | 127 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/ |
D | ASTReaderInternals.h | 194 int StatSimpleCache(const char *Path, struct stat *StatBuf) { in StatSimpleCache() argument 199 *StatBuf = SearchPathStatBuf; in StatSimpleCache() 203 return stat(Path, StatBuf); in StatSimpleCache()
|
D | ASTReader.cpp | 911 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/ |
D | PTHLexer.cpp | 684 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/ |
D | FileManagerTest.cpp | 54 virtual LookupResult getStat(const char *Path, struct stat &StatBuf, in getStat() argument 57 StatBuf = StatCalls[Path]; in getStat()
|