[llvm-commits] CVS: llvm/lib/System/Unix/Path.inc

Reid Spencer reid at x10sys.com
Thu Mar 29 10:00:51 PDT 2007



Changes in directory llvm/lib/System/Unix:

Path.inc updated: 1.59 -> 1.60
---
Log message:

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.


---
Diffs of the changes:  (+1 -0)

 Path.inc |    1 +
 1 files changed, 1 insertion(+)


Index: llvm/lib/System/Unix/Path.inc
diff -u llvm/lib/System/Unix/Path.inc:1.59 llvm/lib/System/Unix/Path.inc:1.60
--- llvm/lib/System/Unix/Path.inc:1.59	Thu Mar 29 11:43:20 2007
+++ llvm/lib/System/Unix/Path.inc	Thu Mar 29 12:00:31 2007
@@ -375,6 +375,7 @@
     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);
   }






More information about the llvm-commits mailing list