Add a uniqueID field to the FileStatus structure for Paths. This will map

to the inode number on Unix and something far less unique on Windows. The
windows case needs to be improved.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35461 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2007-03-29 17:00:31 +00:00
parent a5cb38980b
commit 4031befb62
3 changed files with 11 additions and 1 deletions

View File

@ -375,6 +375,7 @@ Path::getFileStatus(FileStatus &info, bool update, std::string *ErrStr) const {
status->mode = buf.st_mode;
status->user = buf.st_uid;
status->group = buf.st_gid;
status->uniqueID = uint64_t(buf.st_ino);
status->isDir = S_ISDIR(buf.st_mode);
status->isFile = S_ISREG(buf.st_mode);
}