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*/) {
131 const struct stat &StatBuf) {
132 return UniqueDirs[std::make_pair(StatBuf.st_dev, StatBuf.st_ino)];
146 FileEntry &getFile(const char * /*Name*/, const struct stat &StatBuf) { argument
149 *UniqueFiles.insert(FileEntry(StatBuf.st_dev,
150 StatBuf.st_ino,
151 StatBuf.st_mode)).first);
294 struct stat StatBuf; local
130 getDirectory(const char * , const struct stat &StatBuf) argument
362 struct stat StatBuf; local
432 struct stat StatBuf; local
544 getStatValue(const char *Path, struct stat &StatBuf, int *FileDescriptor) argument
559 getNoncachedStatValue(StringRef Path, struct stat &StatBuf) argument
[all...]
H A DSourceManager.cpp1419 struct stat StatBuf; local
1420 if (::stat(File->getName(), &StatBuf))
1423 return StatBuf.st_ino;
/external/clang/include/clang/Basic/
H A 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, argument
75 return Next->getStat(Path, StatBuf, FileDescriptor);
79 return get(Path, StatBuf, FileDescriptor, 0) ? CacheMissing : CacheExists;
97 virtual LookupResult getStat(const char *Path, struct stat &StatBuf,
H A DFileManager.h153 bool getStatValue(const char *Path, struct stat &StatBuf,
217 bool getNoncachedStatValue(StringRef Path, struct stat &StatBuf);
/external/clang/lib/Frontend/
H A DCacheTokens.cpp61 struct stat *StatBuf; member in class:__anon3203::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.cpp1367 struct stat StatBuf; local
1368 if (FileMgr->getNoncachedStatValue(R->second, StatBuf)) {
1375 OverriddenFiles[R->first] = std::make_pair(StatBuf.st_size,
1376 StatBuf.st_mtime);
1405 struct stat StatBuf; local
1406 if (FileMgr->getNoncachedStatValue(F->first(), StatBuf)) {
1409 } else if (StatBuf.st_size != F->second.first ||
1410 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.cpp911 LookupResult getStat(const char *Path, struct stat &StatBuf, argument
919 return statChained(Path, StatBuf, FileDescriptor);
925 StatBuf.st_ino = Data.ino;
926 StatBuf.st_dev = Data.dev;
927 StatBuf.st_mtime = Data.mtime;
928 StatBuf.st_mode = Data.mode;
929 StatBuf.st_size = Data.size;
2479 struct stat StatBuf; local
2480 if (::stat(File->getName(), &StatBuf) != 0) {
2481 StatBuf
[all...]
/external/llvm/lib/Support/
H A DLockFileManager.cpp127 struct stat StatBuf; local
128 if (stat(UniqueLockFileName.c_str(), &StatBuf) == 0 &&
129 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 225 milliseconds