Index: base/file_util.h |
diff --git a/base/file_util.h b/base/file_util.h |
index 3d072297482ce5a9a9d066ba9ffe0d02d3933f62..a3c9a6e72803fdfe4f82efd7035b7f72787293ac 100644 |
--- a/base/file_util.h |
+++ b/base/file_util.h |
@@ -15,6 +15,7 @@ |
#elif defined(OS_POSIX) |
#include <fts.h> |
#include <sys/stat.h> |
+#include <sys/types.h> |
#endif |
#include <stdio.h> |
@@ -342,6 +343,11 @@ bool GetFileInfo(const FilePath& file_path, FileInfo* info); |
// Deprecated temporary compatibility function. |
bool GetFileInfo(const std::wstring& file_path, FileInfo* info); |
+#if defined(OS_POSIX) |
+// Store inode number of |path| in |inode|. Return true on success. |
+bool GetInode(const FilePath& path, ino_t* inode); |
+#endif |
+ |
// Wrapper for fopen-like calls. Returns non-NULL FILE* on success. |
FILE* OpenFile(const FilePath& filename, const char* mode); |
// Deprecated temporary compatibility functions. |