equal
deleted
inserted
replaced
4357 } |
4357 } |
4358 |
4358 |
4359 static inline time_t get_mtime(const char* filename) { |
4359 static inline time_t get_mtime(const char* filename) { |
4360 struct stat st; |
4360 struct stat st; |
4361 int ret = os::stat(filename, &st); |
4361 int ret = os::stat(filename, &st); |
4362 assert(ret == 0, "failed to stat() file '%s': %s", filename, strerror(errno)); |
4362 assert(ret == 0, "failed to stat() file '%s': %s", filename, os::strerror(errno)); |
4363 return st.st_mtime; |
4363 return st.st_mtime; |
4364 } |
4364 } |
4365 |
4365 |
4366 int os::compare_file_modified_times(const char* file1, const char* file2) { |
4366 int os::compare_file_modified_times(const char* file1, const char* file2) { |
4367 time_t t1 = get_mtime(file1); |
4367 time_t t1 = get_mtime(file1); |