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

/external/clang/lib/Basic/
H A DFileSystemStatCache.cpp42 bool FileSystemStatCache::get(const char *Path, struct stat &StatBuf, argument
49 R = Cache->getStat(Path, StatBuf, FileDescriptor);
52 R = ::stat(Path, &StatBuf) != 0 ? CacheMissing : CacheExists;
74 if (::fstat(*FileDescriptor, &StatBuf) == 0)
91 if (S_ISDIR(StatBuf.st_mode) != isForDir) {
106 MemorizeStatCalls::getStat(const char *Path, struct stat &StatBuf, argument
108 LookupResult Result = statChained(Path, StatBuf, FileDescriptor);
118 if (!S_ISDIR(StatBuf.st_mode) || llvm::sys::path::is_absolute(Path))
119 StatCalls[Path] = StatBuf;
H A DFileManager.cpp88 const struct stat & /*StatBuf*/) {
105 FileEntry &getFile(const char *Name, const struct stat & /*StatBuf*/) {
139 const struct stat &StatBuf) {
140 return UniqueDirs[std::make_pair(StatBuf.st_dev, StatBuf.st_ino)];
154 FileEntry &getFile(const char * /*Name*/, const struct stat &StatBuf) { argument
157 *UniqueFiles.insert(FileEntry(StatBuf.st_dev,
158 StatBuf.st_ino,
159 StatBuf.st_mode)).first);
306 struct stat StatBuf; local
138 getDirectory(const char * , const struct stat &StatBuf) argument
371 struct stat StatBuf; local
441 struct stat StatBuf; local
559 getStatValue(const char *Path, struct stat &StatBuf, int *FileDescriptor) argument
574 getNoncachedStatValue(StringRef Path, struct stat &StatBuf) argument
[all...]
H A DSourceManager.cpp1447 struct stat StatBuf; local
1448 if (::stat(File->getName(), &StatBuf))
1451 return StatBuf.st_ino;
/external/clang/include/clang/Basic/
H A DFileSystemStatCache.h52 static bool get(const char *Path, struct stat &StatBuf, int *FileDescriptor,
71 virtual LookupResult getStat(const char *Path, struct stat &StatBuf,
74 LookupResult statChained(const char *Path, struct stat &StatBuf, argument
77 return Next->getStat(Path, StatBuf, FileDescriptor);
81 return get(Path, StatBuf, FileDescriptor, 0) ? CacheMissing : CacheExists;
99 virtual LookupResult getStat(const char *Path, struct stat &StatBuf,
H A DFileManager.h162 bool getStatValue(const char *Path, struct stat &StatBuf,
236 bool getNoncachedStatValue(StringRef Path, struct stat &StatBuf);
/external/clang/lib/Frontend/
H A DCacheTokens.cpp61 struct stat *StatBuf; member in class:__anon3644::PTHEntryKeyVariant
64 : FE(fe), Kind(IsFE), StatBuf(0) {}
67 : Path(path), Kind(IsDE), StatBuf(new struct stat(*statbuf)) {}
70 : Path(path), Kind(IsNoExist), StatBuf(0) {}
92 ::Emit32(Out, (uint32_t) StatBuf->st_ino);
93 ::Emit32(Out, (uint32_t) StatBuf->st_dev);
94 ::Emit16(Out, (uint16_t) StatBuf->st_mode);
95 ::Emit64(Out, (uint64_t) StatBuf->st_mtime);
96 ::Emit64(Out, (uint64_t) StatBuf->st_size);
97 delete StatBuf;
519 getStat(const char *Path, struct stat &StatBuf, int *FileDescriptor) argument
[all...]
H A DASTUnit.cpp1371 struct stat StatBuf; local
1372 if (FileMgr->getNoncachedStatValue(R->second, StatBuf)) {
1379 OverriddenFiles[R->first] = std::make_pair(StatBuf.st_size,
1380 StatBuf.st_mtime);
1409 struct stat StatBuf; local
1410 if (FileMgr->getNoncachedStatValue(F->first(), StatBuf)) {
1413 } else if (StatBuf.st_size != F->second.first ||
1414 StatBuf.st_mtime != F->second.second)
/external/clang/lib/Serialization/
H A DASTReaderInternals.h194 int StatSimpleCache(const char *Path, struct stat *StatBuf) { argument
199 *StatBuf = SearchPathStatBuf;
203 return stat(Path, StatBuf);
H A DASTReader.cpp917 LookupResult getStat(const char *Path, struct stat &StatBuf, argument
925 return statChained(Path, StatBuf, FileDescriptor);
931 StatBuf.st_ino = Data.ino;
932 StatBuf.st_dev = Data.dev;
933 StatBuf.st_mtime = Data.mtime;
934 StatBuf.st_mode = Data.mode;
935 StatBuf.st_size = Data.size;
2518 struct stat StatBuf; local
2519 if (::stat(File->getName(), &StatBuf) != 0) {
2520 StatBuf
[all...]
/external/llvm/lib/Support/
H A DLockFileManager.cpp126 struct stat StatBuf; local
127 if (stat(UniqueLockFileName.c_str(), &StatBuf) == 0 &&
128 StatBuf.st_nlink == 2)
/external/clang/unittests/Basic/
H A DFileManagerTest.cpp54 virtual LookupResult getStat(const char *Path, struct stat &StatBuf, argument
57 StatBuf = StatCalls[Path];
/external/clang/lib/Lex/
H A DPTHLexer.cpp684 LookupResult getStat(const char *Path, struct stat &StatBuf, argument
691 return statChained(Path, StatBuf, FileDescriptor);
698 StatBuf.st_ino = Data.ino;
699 StatBuf.st_dev = Data.dev;
700 StatBuf.st_mtime = Data.mtime;
701 StatBuf.st_mode = Data.mode;
702 StatBuf.st_size = Data.size;

Completed in 2233 milliseconds