equal
deleted
inserted
replaced
1561 } |
1561 } |
1562 |
1562 |
1563 static inline time_t get_mtime(const char* filename) { |
1563 static inline time_t get_mtime(const char* filename) { |
1564 struct stat st; |
1564 struct stat st; |
1565 int ret = os::stat(filename, &st); |
1565 int ret = os::stat(filename, &st); |
1566 assert(ret == 0, "failed to stat() file '%s': %s", filename, strerror(errno)); |
1566 assert(ret == 0, "failed to stat() file '%s': %s", filename, os::strerror(errno)); |
1567 return st.st_mtime; |
1567 return st.st_mtime; |
1568 } |
1568 } |
1569 |
1569 |
1570 int os::compare_file_modified_times(const char* file1, const char* file2) { |
1570 int os::compare_file_modified_times(const char* file1, const char* file2) { |
1571 time_t t1 = get_mtime(file1); |
1571 time_t t1 = get_mtime(file1); |