Lines Matching refs:pOpts
83 * @param pOpts The Unzip options.
88 typedef RTEXITCODE (*PFNDOWITHMEMBER)(PRTZIPUNZIPCMDOPS pOpts, RTVFSOBJ hVfsObj, const char *pszName, RTEXITCODE rcExit, PRTFOFF pcBytes);
94 static RTEXITCODE rtZipUnzipCmdListCallback(PRTZIPUNZIPCMDOPS pOpts, RTVFSOBJ hVfsObj,
123 static RTEXITCODE rtZipUnzipCmdExtractFile(PRTZIPUNZIPCMDOPS pOpts, RTVFSOBJ hVfsObj, RTEXITCODE rcExit,
150 if (!pOpts->fNoModTimeFiles)
172 static RTEXITCODE rtZipUnzipCmdExtractCallback(PRTZIPUNZIPCMDOPS pOpts, RTVFSOBJ hVfsObj,
175 if (pOpts->fVerbose)
189 rc = RTPathJoin(szDst, sizeof(szDst), pOpts->pszDirectory ? pOpts->pszDirectory : ".", pszName);
199 return rtZipUnzipCmdExtractFile(pOpts, hVfsObj, rcExit, szDst, &UnixInfo);
211 if (!pOpts->fNoModTimeDirectories)
248 * @param pOpts The options.
251 static RTEXITCODE rtZipUnzipCmdOpenInputArchive(PRTZIPUNZIPCMDOPS pOpts, PRTVFSFSSTREAM phVfsFss)
258 int rc = RTVfsChainOpenIoStream(pOpts->pszFile,
269 rc, pOpts->pszFile, pszError - pOpts->pszFile, "");
271 "Failed with %Rrc opening the input archive '%s'", rc, pOpts->pszFile);
287 * @param pOpts The Unzip options.
290 static RTEXITCODE rtZipUnzipDoWithMembers(PRTZIPUNZIPCMDOPS pOpts, PFNDOWITHMEMBER pfnCallback,
298 if (pOpts->cFiles)
300 pbmFound = (uint32_t *)RTMemAllocZ(((pOpts->cFiles + 31) / 32) * sizeof(uint32_t));
312 RTEXITCODE rcExit = rtZipUnzipCmdOpenInputArchive(pOpts, &hVfsFssIn);
337 if ( !pOpts->cFiles
338 || rtZipUnzipCmdIsNameInArray(pszName, pOpts->papszFiles, &iFile))
344 rcExit = pfnCallback(pOpts, hVfsObj, pszName, rcExit, &cBytes);
360 for (uint32_t iFile = 0; iFile <pOpts->cFiles; iFile++)
363 RTMsgError("%s: Was not found in the archive", pOpts->papszFiles[iFile]);