< prev index next >
src/hotspot/os/aix/os_aix.cpp
Print this page
rev 52870 : 8214944: replace strerror by os::strerror
*** 4357,4367 ****
}
static inline time_t get_mtime(const char* filename) {
struct stat st;
int ret = os::stat(filename, &st);
! assert(ret == 0, "failed to stat() file '%s': %s", filename, strerror(errno));
return st.st_mtime;
}
int os::compare_file_modified_times(const char* file1, const char* file2) {
time_t t1 = get_mtime(file1);
--- 4357,4367 ----
}
static inline time_t get_mtime(const char* filename) {
struct stat st;
int ret = os::stat(filename, &st);
! assert(ret == 0, "failed to stat() file '%s': %s", filename, os::strerror(errno));
return st.st_mtime;
}
int os::compare_file_modified_times(const char* file1, const char* file2) {
time_t t1 = get_mtime(file1);
< prev index next >