< prev index next >
src/hotspot/os/linux/os_linux.cpp
Print this page
@@ -5376,20 +5376,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);
-}
-
// Is a (classpath) directory empty?
bool os::dir_is_empty(const char* path) {
DIR *dir = NULL;
struct dirent *ptr;
< prev index next >