< prev index next >

src/hotspot/os/linux/os_linux.cpp

Print this page
rev 50955 : [mq]: readdir

@@ -5369,12 +5369,11 @@
   dir = opendir(path);
   if (dir == NULL) return true;
 
   // Scan the directory
   bool result = true;
-  char buf[sizeof(struct dirent) + MAX_PATH];
-  while (result && (ptr = ::readdir(dir)) != NULL) {
+  while (result && (ptr = readdir(dir)) != NULL) {
     if (strcmp(ptr->d_name, ".") != 0 && strcmp(ptr->d_name, "..") != 0) {
       result = false;
     }
   }
   closedir(dir);
< prev index next >