Lines Matching defs:pDir
750 PRTDIR pDir = NULL;
757 rc = RTDirOpen(&pDir, "/sys/block");
765 rc = RTDirRead(pDir, &entry, NULL);
788 RTDirClose(pDir);
822 * @a pDir to the vector @a pvecpchDevs using either the full path or the
824 static int readFilePathsFromDir(const char *pcszPath, DIR *pDir,
830 for (err = readdir_r(pDir, &entry, &pResult); pResult;
831 err = readdir_r(pDir, &entry, &pResult))
862 DIR *pDir;
869 pDir = opendir(pcszPath);
870 if (!pDir)
872 err = readFilePathsFromDir(pcszPath, pDir, pvecpchDevs, withRealPath);
873 if (closedir(pDir) < 0 && !err)