Lines Matching refs:DIR
364 DIR* dir = opendir(psdir.c_str());
365 if (dir == NULL) {
366 W_ALOGE("Failed to open dir %s (%s)", psdir.c_str(), strerror(errno));
371 while ((e = readdir(dir)) != 0) {
385 closedir(dir);
639 DIR* dir = opendir(dest_dir.c_str());
640 if (dir != NULL) {
642 while ((e = readdir(dir)) != 0) {
648 closedir(dir);
650 W_ALOGW("unable to open destination dir %s for cleanup",