< prev index next >

src/hotspot/os/solaris/os_solaris.cpp

Print this page
rev 50955 : [mq]: readdir

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