summaryrefslogtreecommitdiff
path: root/lib/System/Unix/Path.inc
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-29 17:00:31 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-29 17:00:31 +0000
commit4031befb62d90309bdaa3c9cbed9c0b5fc12d67c (patch)
tree101092da49b0a1bc75de6e57aaaed1e90f904c09 /lib/System/Unix/Path.inc
parenta5cb38980b444754196f298c0645a99069fd3c9b (diff)
downloadllvm-4031befb62d90309bdaa3c9cbed9c0b5fc12d67c.tar.gz
llvm-4031befb62d90309bdaa3c9cbed9c0b5fc12d67c.tar.bz2
llvm-4031befb62d90309bdaa3c9cbed9c0b5fc12d67c.tar.xz
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
Diffstat (limited to 'lib/System/Unix/Path.inc')
-rw-r--r--lib/System/Unix/Path.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc
index b155213ec6..5557282964 100644
--- a/lib/System/Unix/Path.inc
+++ b/lib/System/Unix/Path.inc
@@ -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);
}