Index: runtime/bin/file.h |
diff --git a/runtime/bin/file.h b/runtime/bin/file.h |
index 53a1e448ca0aa030ab62770009e21868898ac41f..05be61c51da9924220fb419bca2a58ef9373043e 100644 |
--- a/runtime/bin/file.h |
+++ b/runtime/bin/file.h |
@@ -56,7 +56,7 @@ class File { |
kSetPositionRequest = 8, |
kTruncateRequest = 9, |
kLengthRequest = 10, |
- kLengthFromNameRequest = 11, |
+ kLengthFromPathRequest = 11, |
kLastModifiedRequest = 12, |
kFlushRequest = 13, |
kReadByteRequest = 14, |
@@ -103,25 +103,25 @@ class File { |
// Returns whether the file has been closed. |
bool IsClosed(); |
- // Open the file with the given name. The file is always opened for |
+ // Open the file with the given path. The file is always opened for |
// reading. If mode contains kWrite the file is opened for both |
// reading and writing. If mode contains kWrite and the file does |
// not exist the file is created. The file is truncated to length 0 if |
// mode contains kTruncate. |
- static File* Open(const char* name, FileOpenMode mode); |
+ static File* Open(const char* path, FileOpenMode mode); |
// Create a file object for the specified stdio file descriptor |
// (stdin, stout or stderr). |
static File* OpenStdio(int fd); |
- static bool Exists(const char* name); |
- static bool Create(const char* name); |
- static bool Delete(const char* name); |
- static off_t LengthFromName(const char* name); |
- static time_t LastModified(const char* name); |
- static bool IsAbsolutePath(const char* pathname); |
- static char* GetCanonicalPath(const char* name); |
- static char* GetContainingDirectory(char* name); |
+ static bool Exists(const char* path); |
+ static bool Create(const char* path); |
+ static bool Delete(const char* path); |
+ static off_t LengthFromPath(const char* path); |
+ static time_t LastModified(const char* path); |
+ static bool IsAbsolutePath(const char* path); |
+ static char* GetCanonicalPath(const char* path); |
+ static char* GetContainingDirectory(char* path); |
static const char* PathSeparator(); |
static const char* StringEscapedPathSeparator(); |
static StdioHandleType GetStdioHandleType(int fd); |