src/hotspot/os/solaris/os_solaris.cpp
changeset 50667 cc58f1fa0438
parent 50429 83aec1d357d4
child 50930 6a5f1195e15f
--- a/src/hotspot/os/solaris/os_solaris.cpp	Fri Jun 15 13:57:32 2018 -0400
+++ b/src/hotspot/os/solaris/os_solaris.cpp	Tue Jun 19 09:34:41 2018 +0200
@@ -1667,16 +1667,6 @@
   return (void*)::dlopen(NULL, RTLD_LAZY);
 }
 
-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 time_t get_mtime(const char* filename) {
   struct stat st;
   int ret = os::stat(filename, &st);
@@ -4474,10 +4464,6 @@
   return (jlong) ::lseek64(fd, offset, whence);
 }
 
-char * os::native_path(char *path) {
-  return path;
-}
-
 int os::ftruncate(int fd, jlong length) {
   return ::ftruncate64(fd, length);
 }