Index: trunk/src/base/file_util.h |
=================================================================== |
--- trunk/src/base/file_util.h (revision 239399) |
+++ trunk/src/base/file_util.h (working copy) |
@@ -299,8 +299,19 @@ |
const Time& last_accessed, |
const Time& last_modified); |
+} // namespace base |
+ |
+// ----------------------------------------------------------------------------- |
+ |
+namespace file_util { |
+ |
+#if defined(OS_POSIX) |
+// Store inode number of |path| in |inode|. Return true on success. |
+BASE_EXPORT bool GetInode(const base::FilePath& path, ino_t* inode); |
+#endif |
+ |
// Wrapper for fopen-like calls. Returns non-NULL FILE* on success. |
-BASE_EXPORT FILE* OpenFile(const FilePath& filename, const char* mode); |
+BASE_EXPORT FILE* OpenFile(const base::FilePath& filename, const char* mode); |
// Closes file opened by OpenFile. Returns true on success. |
BASE_EXPORT bool CloseFile(FILE* file); |
@@ -313,12 +324,6 @@ |
// the number of read bytes, or -1 on error. |
BASE_EXPORT int ReadFile(const base::FilePath& filename, char* data, int size); |
-} // namespace base |
- |
-// ----------------------------------------------------------------------------- |
- |
-namespace file_util { |
- |
// Writes the given buffer into the file, overwriting any data that was |
// previously there. Returns the number of bytes written, or -1 on error. |
BASE_EXPORT int WriteFile(const base::FilePath& filename, const char* data, |