Lines Matching refs:vrc

614     int vrc;
622 vrc = registerWaitEvent(mData.mSession.mID, 0 /* Object ID */,
627 vrc = VERR_NO_MEMORY;
630 if (RT_FAILURE(vrc))
631 return vrc;
643 vrc = i_sendCommand(HOST_SESSION_CLOSE, i, paParms);
644 if (RT_SUCCESS(vrc))
645 vrc = i_waitForStatusChange(pEvent, GuestSessionWaitForFlag_Terminate, uTimeoutMS,
650 LogFlowFuncLeaveRC(vrc);
651 return vrc;
660 int vrc = VINF_SUCCESS;
674 vrc = VERR_INVALID_PARAMETER;
687 vrc = VERR_BUFFER_OVERFLOW;
693 vrc = VERR_NO_MEMORY;
696 if (RT_SUCCESS(vrc))
697 vrc = GuestProcessTool::i_run(this, procInfo, pGuestRc);
699 LogFlowFuncLeaveRC(vrc);
700 return vrc;
719 int vrc = i_fsQueryInfoInternal(strPath, objData, pGuestRc);
720 if (RT_SUCCESS(vrc))
722 vrc = objData.mType == FsObjType_Directory
726 LogFlowFuncLeaveRC(vrc);
727 return vrc;
779 int vrc = registerWaitEvent(mData.mSession.mID, 0 /* Object ID */,
781 if (RT_FAILURE(vrc))
782 return vrc;
794 vrc = i_sendCommand(HOST_DIR_REMOVE, i, paParms);
795 if (RT_SUCCESS(vrc))
797 vrc = pEvent->Wait(30 * 1000);
798 if ( vrc == VERR_GSTCTL_GUEST_ERROR
805 LogFlowFuncLeaveRC(vrc);
806 return vrc;
815 int vrc = VINF_SUCCESS;
835 vrc = VERR_NO_MEMORY;
841 if (RT_SUCCESS(vrc))
842 vrc = GuestProcessTool::i_runEx(this, procInfo,
845 if ( RT_SUCCESS(vrc)
851 vrc = objData.FromMkTemp(stdOut.at(0));
852 if (RT_FAILURE(vrc))
854 guestRc = vrc;
855 vrc = VERR_GSTCTL_GUEST_ERROR;
859 vrc = VERR_NO_DATA;
861 if (RT_SUCCESS(vrc))
868 LogFlowFuncLeaveRC(vrc);
869 return vrc;
918 int vrc = pDirectory->init(pConsole, this /* Parent */,
920 if (RT_FAILURE(vrc))
921 return vrc;
956 LogFlowFuncLeaveRC(vrc);
957 return vrc;
1214 int vrc = VINF_SUCCESS;
1229 vrc = VERR_NO_MEMORY;
1232 if (RT_SUCCESS(vrc))
1233 vrc = GuestProcessTool::i_run(this, procInfo, pGuestRc);
1235 LogFlowFuncLeaveRC(vrc);
1236 return vrc;
1345 int vrc = i_fsQueryInfoInternal(strPath, objData, pGuestRc);
1346 if (RT_SUCCESS(vrc))
1348 vrc = objData.mType == FsObjType_File
1352 LogFlowFuncLeaveRC(vrc);
1353 return vrc;
1361 int vrc = i_fileQueryInfoInternal(strPath, objData, pGuestRc);
1362 if (RT_SUCCESS(vrc))
1365 return vrc;
1372 int vrc = VINF_SUCCESS;
1387 vrc = VERR_NO_MEMORY;
1391 if (RT_SUCCESS(vrc))
1392 vrc = GuestProcessTool::i_runEx(this, procInfo,
1395 if ( RT_SUCCESS(vrc)
1399 vrc = objData.FromStat(stdOut.at(0));
1401 vrc = VERR_NO_DATA;
1404 if ( vrc == VERR_GSTCTL_GUEST_ERROR
1409 vrc, guestRc));
1410 return vrc;
1507 int vrc = VINF_SUCCESS;
1521 LogFlowFuncLeaveRC(vrc);
1522 return vrc;
1537 int vrc = pSvcCbData->mpaParms[1].getUInt32(&dataCb.uType);
1538 AssertRCReturn(vrc, vrc);
1539 vrc = pSvcCbData->mpaParms[2].getUInt32(&dataCb.uResult);
1540 AssertRCReturn(vrc, vrc);
1578 vrc = VERR_NOT_SUPPORTED;
1582 if (RT_SUCCESS(vrc))
1589 if (RT_SUCCESS(vrc))
1590 vrc = i_setSessionStatus(sessionStatus, guestRc);
1594 LogFlowFuncLeaveRC(vrc);
1595 return vrc;
1625 int vrc;
1633 vrc = registerWaitEvent(mData.mSession.mID, 0 /* Object ID */,
1638 vrc = VERR_NO_MEMORY;
1641 if (RT_FAILURE(vrc))
1642 return vrc;
1659 vrc = i_sendCommand(HOST_SESSION_CREATE, i, paParms);
1660 if (RT_SUCCESS(vrc))
1662 vrc = i_waitForStatusChange(pEvent, GuestSessionWaitForFlag_Start,
1675 mData.mRC = vrc;
1680 LogFlowFuncLeaveRC(vrc);
1681 return vrc;
1688 int vrc;
1697 vrc = RTThreadCreate(NULL, GuestSession::i_startSessionThread,
1701 if (RT_SUCCESS(vrc))
1709 vrc = VERR_NO_MEMORY;
1712 LogFlowFuncLeaveRC(vrc);
1713 return vrc;
1730 int vrc = pSession->i_startSessionInternal(NULL /* Guest rc, ignored */);
1733 LogFlowFuncLeaveRC(vrc);
1734 return vrc;
1748 int vrc = registerWaitEvent(mData.mSession.mID, 0 /* Object ID */,
1750 if (RT_FAILURE(vrc))
1751 return vrc;
1765 vrc = i_sendCommand(HOST_PATH_RENAME, i, paParms);
1766 if (RT_SUCCESS(vrc))
1768 vrc = pEvent->Wait(30 * 1000);
1769 if ( vrc == VERR_GSTCTL_GUEST_ERROR
1776 LogFlowFuncLeaveRC(vrc);
1777 return vrc;
2013 int vrc = pVMMDev->hgcmHostCall(HGCMSERVICE_NAME, uFunction, uParms, paParms);
2014 if (RT_FAILURE(vrc))
2020 int vrc = VINF_SUCCESS;
2022 LogFlowFuncLeaveRC(vrc);
2023 return vrc;
2078 int vrc = VINF_SUCCESS;
2080 vrc = mData.mWaitEvent->Signal(enmWaitResult, rc);*/
2081 LogFlowFuncLeaveRC(vrc);
2082 return vrc;
2268 int vrc;
2276 vrc = registerWaitEvent(mData.mSession.mID, 0 /* Object ID */,
2281 vrc = VERR_NO_MEMORY;
2284 if (RT_FAILURE(vrc))
2285 return vrc;
2290 vrc = i_waitForStatusChange(pEvent, fWaitFlags,
2292 if (RT_SUCCESS(vrc))
2325 LogFlowFuncLeaveRC(vrc);
2326 return vrc;
2336 int vrc = waitForEvent(pEvent, uTimeoutMS,
2338 if (RT_SUCCESS(vrc))
2358 vrc = VERR_GSTCTL_GUEST_ERROR;
2367 LogFlowFuncLeaveRC(vrc);
2368 return vrc;
2714 int vrc = i_directoryQueryInfoInternal(aPath, objData, &guestRc);
2715 if (RT_SUCCESS(vrc))
2723 vrc = pFsObjInfo->init(objData);
2724 if (RT_SUCCESS(vrc))
2732 if (RT_FAILURE(vrc))
2734 switch (vrc)
2747 aPath.c_str(), vrc);
2774 int vrc = i_directoryRemoveInternal(aPath, uFlags, &guestRc);
2775 if (RT_FAILURE(vrc))
2777 switch (vrc)
2790 aPath.c_str(), vrc);
2835 int vrc = i_directoryRemoveInternal(aPath, uFlags, &guestRc);
2836 if (RT_FAILURE(vrc))
2838 switch (vrc)
2851 aPath.c_str(), vrc);
2887 int vrc = i_pathRenameInternal(aSource, aDest, uFlags, &guestRc);
2888 if (RT_FAILURE(vrc))
2890 switch (vrc)
2904 aSource.c_str(), vrc);
3019 int vrc = i_fileQueryInfoInternal(aPath, objData, &guestRc);
3020 if (RT_SUCCESS(vrc))
3028 switch (vrc)
3040 aPath.c_str(), vrc);
3061 int vrc = i_fileRemoveInternal(aPath, &guestRc);
3062 if (RT_FAILURE(vrc))
3064 switch (vrc)
3072 aPath.c_str(), vrc);
3130 int vrc = RTFileModeToFlagsEx(openInfo.mOpenMode.c_str(),
3134 if (RT_FAILURE(vrc))
3138 vrc = i_fileOpenInternal(openInfo, pFile, &guestRc);
3139 if (RT_SUCCESS(vrc))
3144 switch (vrc)
3157 aPath.c_str(), vrc);
3180 int vrc = i_fileQueryInfoInternal(aPath, objData, &guestRc);
3181 if (RT_SUCCESS(vrc))
3187 vrc = pFsObjInfo->init(objData);
3188 if (RT_SUCCESS(vrc))
3195 if (RT_FAILURE(vrc))
3197 switch (vrc)
3208 hr = setError(VBOX_E_IPRT_ERROR, tr("Querying file information failed: %Rrc"), vrc);
3230 int vrc = i_fileQuerySizeInternal(aPath, &llSize, &guestRc);
3231 if (RT_SUCCESS(vrc))
3235 switch (vrc)
3242 hr = setError(VBOX_E_IPRT_ERROR, tr("Querying file size failed: %Rrc"), vrc);
3273 int vrc = i_pathRenameInternal(aSource, aDest, uFlags, &guestRc);
3274 if (RT_FAILURE(vrc))
3276 switch (vrc)
3291 aSource.c_str(), vrc);
3517 int vrc = i_waitFor(aWaitFor, aTimeoutMS, waitResult, &guestRc);
3518 if (RT_SUCCESS(vrc))
3522 switch (vrc)
3537 pszSessionName ? pszSessionName : tr("Unnamed"), vrc);
3543 LogFlowFuncLeaveRC(vrc);