< prev index next >
src/hotspot/os/bsd/os_bsd.cpp
Print this page
@@ -3487,20 +3487,10 @@
while (::read(0, buf, sizeof(buf)) <= 0) { ::sleep(100); }
return buf[0] == 'y' || buf[0] == 'Y';
}
-int os::stat(const char *path, struct stat *sbuf) {
- char pathbuf[MAX_PATH];
- if (strlen(path) > MAX_PATH - 1) {
- errno = ENAMETOOLONG;
- return -1;
- }
- os::native_path(strcpy(pathbuf, path));
- return ::stat(pathbuf, sbuf);
-}
-
static inline struct timespec 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));
#ifdef __APPLE__
< prev index next >