Lines Matching refs:vrc
541 int vrc = EXITCODEEXEC_SUCCESS;
545 vrc = EXITCODEEXEC_SUCCESS;
548 vrc = EXITCODEEXEC_SUCCESS;
551 vrc = EXITCODEEXEC_SUCCESS;
554 vrc = EXITCODEEXEC_SUCCESS;
557 vrc = !uExitCode ? EXITCODEEXEC_SUCCESS : EXITCODEEXEC_CODE;
560 vrc = EXITCODEEXEC_TERM_SIGNAL;
563 vrc = EXITCODEEXEC_TERM_ABEND;
566 vrc = EXITCODEEXEC_TIMEOUT;
569 vrc = EXITCODEEXEC_TIMEOUT;
574 vrc = EXITCODEEXEC_DOWN;
577 vrc = EXITCODEEXEC_FAILED;
583 return vrc;
698 int vrc = VINF_SUCCESS;
712 vrc = ctrlPrintError(ErrInfo);
718 AssertMsgStmt(SUCCEEDED(rc), ("Could not lookup progress information\n"), vrc = VERR_COM_UNEXPECTED);
720 return vrc;
1059 int vrc = VINF_SUCCESS;
1065 vrc = ctrlPrintError(pProcess, COM_IIDOF(IProcess));
1085 vrc = RTStrCurrentCPToUtf8(&pszBufUTF8, (const char*)aOutputData.raw());
1086 if (RT_SUCCESS(vrc))
1105 vrc = RTStrmWrite(pStrmOutput, pszBufUTF8, cbOutputDataPrint);
1106 if (RT_FAILURE(vrc))
1107 RTMsgError("Unable to write output, rc=%Rrc\n", vrc);
1112 RTMsgError("Unable to convert output, rc=%Rrc\n", vrc);
1116 return vrc;
1181 int vrc = VINF_SUCCESS;
1190 && RT_SUCCESS(vrc))
1207 vrc = RTGetOptArgvFromString(&papszArg, &cArgs, ValueUnion.psz, NULL);
1208 if (RT_FAILURE(vrc))
1210 "Failed to parse environment value, rc=%Rrc", vrc);
1281 vrc = VERR_NO_MEMORY;
1284 if (RT_FAILURE(vrc))
1285 return RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to initialize, rc=%Rrc\n", vrc);
1354 vrc = RTStrmSetMode(g_pStdOut, 1 /* Binary mode */, -1 /* Code set, unchanged */);
1355 if (RT_FAILURE(vrc))
1356 RTMsgError("Unable to set stdout's binary mode, rc=%Rrc\n", vrc);
1357 vrc = RTStrmSetMode(g_pStdErr, 1 /* Binary mode */, -1 /* Code set, unchanged */);
1358 if (RT_FAILURE(vrc))
1359 RTMsgError("Unable to set stderr's binary mode, rc=%Rrc\n", vrc);
1418 vrc = ctrlExecPrintOutput(pProcess, g_pStdOut,
1426 vrc = ctrlExecPrintOutput(pProcess, g_pStdErr,
1431 if ( RT_FAILURE(vrc)
1542 int vrc = VINF_SUCCESS;
1555 vrc = VERR_NO_MEMORY;
1558 return vrc;
1611 int vrc;
1614 vrc = RTPathJoin(szTranslated, sizeof(szTranslated),
1623 vrc = RTPathJoin(szTranslated, sizeof(szTranslated),
1628 vrc = VERR_NO_MEMORY;
1632 if (RT_SUCCESS(vrc))
1640 return vrc;
1719 int vrc = ctrlCopyDirExists(pContext, pContext->fHostToGuest, pszDir, &fDirExists);
1720 if ( RT_SUCCESS(vrc)
1730 if (RT_FAILURE(vrc))
1731 return vrc;
1746 vrc = ctrlPrintError(pContext->pCmdCtx->pGuestSession, COM_IIDOF(IGuestSession));
1750 vrc = RTDirCreateFullPath(pszDir, 0700);
1751 if (vrc == VERR_ALREADY_EXISTS)
1752 vrc = VINF_SUCCESS;
1754 return vrc;
1775 int vrc = VINF_SUCCESS;
1781 vrc = ctrlPrintError(pContext->pCmdCtx->pGuestSession, COM_IIDOF(IGuestSession));
1787 return vrc;
1842 int vrc = VINF_SUCCESS;
1848 vrc = ctrlPrintError(pContext->pCmdCtx->pGuestSession, COM_IIDOF(IGuestSession));
1854 return vrc;
1916 int vrc = VINF_SUCCESS;
1936 vrc = ctrlPrintError(pContext->pCmdCtx->pGuestSession, COM_IIDOF(IGuestSession));
1946 vrc = ctrlPrintProgressError(pProgress);
1949 return vrc;
1979 int vrc = RTStrCopy(szCurDir, sizeof(szCurDir), pszSource);
1980 if (RT_SUCCESS(vrc) && pszSubDir)
1981 vrc = RTPathAppend(szCurDir, sizeof(szCurDir), pszSubDir);
1995 if (RT_SUCCESS(vrc))
1997 vrc = RTDirOpen(&pDir, szCurDir);
1998 if (RT_FAILURE(vrc))
2001 if (RT_SUCCESS(vrc))
2006 while (RT_SUCCESS(vrc))
2009 vrc = RTDirRead(pDir, &DirEntry, NULL);
2010 if (RT_FAILURE(vrc))
2012 if (vrc == VERR_NO_MORE_FILES)
2013 vrc = VINF_SUCCESS;
2044 vrc = ctrlCopyDirToGuest(pContext,
2050 vrc = VERR_NO_MEMORY;
2078 vrc = ctrlCopyTranslatePath(pszSource, szCurDir,
2080 if (RT_SUCCESS(vrc))
2082 vrc = ctrlCopyDirCreate(pContext, pszDestDir);
2089 if (RT_SUCCESS(vrc))
2095 vrc = ctrlCopyTranslatePath(pszSource, pszFileSource,
2097 if (RT_SUCCESS(vrc))
2099 vrc = ctrlCopyFileToDest(pContext, pszFileSource,
2112 if (RT_FAILURE(vrc))
2118 return vrc;
2148 int vrc = RTStrCopy(szCurDir, sizeof(szCurDir), pszSource);
2149 if (RT_SUCCESS(vrc) && pszSubDir)
2150 vrc = RTPathAppend(szCurDir, sizeof(szCurDir), pszSubDir);
2152 if (RT_FAILURE(vrc))
2153 return vrc;
2211 vrc = ctrlCopyDirToHost(pContext,
2217 vrc = VERR_NO_MEMORY;
2248 vrc = ctrlCopyTranslatePath(pszSource, szCurDir,
2250 if (RT_SUCCESS(vrc))
2252 vrc = ctrlCopyDirCreate(pContext, pszDestDir);
2259 if (RT_SUCCESS(vrc))
2265 vrc = ctrlCopyTranslatePath(pszSource, pszFileSource,
2267 if (RT_SUCCESS(vrc))
2269 vrc = ctrlCopyFileToDest(pContext, pszFileSource,
2276 vrc = VERR_NO_MEMORY;
2287 if (RT_FAILURE(vrc))
2307 vrc = ctrlPrintError(pDirectory, COM_IIDOF(IGuestDirectory));
2316 if (RT_SUCCESS(vrc))
2317 vrc = vrc2;
2322 return vrc;
2446 int vrc = VINF_SUCCESS;
2515 vrc = ctrlCopyContextCreate(pCtx, fDryRun, fHostToGuest,
2519 if (RT_FAILURE(vrc))
2521 RTMsgError("Unable to create copy context, rc=%Rrc\n", vrc);
2540 vrc = ctrlCopyDirCreate(pContext, pszDest);
2550 vrc = ctrlCopyDirCreate(pContext, pszDestDir);
2554 if (RT_SUCCESS(vrc))
2563 AssertPtrBreakStmt(pszSource, vrc = VERR_NO_MEMORY);
2569 vrc = ctrlCopyCreateSourceRoot(pszSource, &pszSourceRoot);
2570 if (RT_FAILURE(vrc))
2572 RTMsgError("Unable to create source root, rc=%Rrc\n", vrc);
2588 vrc = ctrlCopyDirExistsOnSource(pContext, pszSourceRoot, &fSourceExists);
2590 vrc = ctrlCopyDirExistsOnSource(pContext, pszSource, &fSourceExists);
2601 vrc = ctrlCopyFileExistsOnSource(pContext, pszSource, &fSourceExists);
2602 if ( RT_SUCCESS(vrc)
2609 if ( RT_SUCCESS(vrc)
2616 vrc = ctrlCopyTranslatePath(pszSourceRoot, pszSource,
2618 if (RT_SUCCESS(vrc))
2620 vrc = ctrlCopyFileToDest(pContext, pszSource,
2626 pszSource, vrc);
2631 vrc = ctrlCopyDirToDest(pContext, pszSource, pszFilter,
2638 if ( RT_SUCCESS(vrc)
2646 else if (RT_FAILURE(vrc))
2649 pszSource, vrc);
2660 return RT_SUCCESS(vrc) ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE;
2900 int vrc = VINF_SUCCESS;
2913 && RT_SUCCESS(vrc))
2933 vrc = VERR_NO_MEMORY;
2936 if (RT_FAILURE(vrc))
2937 return RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to initialize, rc=%Rrc\n", vrc);
3262 int vrc = VINF_SUCCESS;
3264 && RT_SUCCESS(vrc))
3306 vrc = VERR_FILE_NOT_FOUND;
3311 vrc = VERR_FILE_NOT_FOUND;
3314 if (RT_SUCCESS(vrc))
3334 vrc = ctrlPrintError(pCtx->pGuest, COM_IIDOF(IGuest));
3344 vrc = ctrlPrintProgressError(pProgress);
3345 if ( RT_SUCCESS(vrc)
3353 return RT_SUCCESS(vrc) ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE;
3516 int vrc = VINF_SUCCESS;
3519 && RT_SUCCESS(vrc))
3543 vrc = VERR_INVALID_PARAMETER;
3547 vrc = VERR_NO_MEMORY;
3571 if (RT_FAILURE(vrc))