| Index: runtime/bin/file_linux.cc
|
| diff --git a/runtime/bin/file_linux.cc b/runtime/bin/file_linux.cc
|
| index 3f93bd363da769344e250eecdf851119bcc9eb03..ae123d86f454cca985d12edd9923d70d86db4543 100644
|
| --- a/runtime/bin/file_linux.cc
|
| +++ b/runtime/bin/file_linux.cc
|
| @@ -174,6 +174,15 @@ off_t File::LengthFromName(const char* name) {
|
| }
|
|
|
|
|
| +time_t File::LastModified(const char* name) {
|
| + struct stat st;
|
| + if (TEMP_FAILURE_RETRY(stat(name, &st)) == 0) {
|
| + return st.st_mtime;
|
| + }
|
| + return -1;
|
| +}
|
| +
|
| +
|
| bool File::IsAbsolutePath(const char* pathname) {
|
| return (pathname != NULL && pathname[0] == '/');
|
| }
|
|
|