< prev index next >

src/hotspot/os/aix/os_aix.cpp

Print this page
rev 50955 : [mq]: readdir

*** 3729,3740 **** 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) { if (strcmp(ptr->d_name, ".") != 0 && strcmp(ptr->d_name, "..") != 0) { result = false; } } closedir(dir); --- 3729,3739 ---- 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 >