/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTPipe.cpp | 53 int rc = RTR3InitExeNoArguments(0); local 54 if (RT_FAILURE(rc)) 55 return RTMsgInitFailure(rc); 58 rc = RTStrToInt64Full(pszPipe, 10, &iNative); 59 if (RT_FAILURE(rc)) 60 return RTMsgErrorExit(RTEXITCODE_FAILURE, "RTStrToUInt64Full(%s) -> %Rrc\n", pszPipe, rc); 63 rc = RTPipeFromNative(&hPipe, (RTHCINTPTR)iNative, RTPIPE_N_READ); 64 if (RT_FAILURE(rc)) 65 return RTMsgErrorExit(RTEXITCODE_FAILURE, "RTPipeFromNative(,%s,READ) -> %Rrc\n", pszPipe, rc); 70 rc 114 int rc; local 130 int rc = RTR3InitExeNoArguments(0); local 178 int rc; local [all...] |
H A D | tstRTPoll.cpp | 183 int rc; local 185 RTTESTI_CHECK_RC(rc = RTPoll(hSet, 100, NULL, NULL), VINF_SUCCESS); 186 if (RT_SUCCESS(rc)) 189 RTTESTI_CHECK_RC(rc = RTPollNoResume(hSet, 0, NULL, NULL), VINF_SUCCESS); 190 RTTESTI_CHECK_RC(rc = RTPollNoResume(hSet, 100, NULL, NULL), VINF_SUCCESS); 191 if (RT_SUCCESS(rc)) 192 RTTESTI_CHECK_RC(rc = RTPollNoResume(hSet, RT_INDEFINITE_WAIT, NULL, NULL), VINF_SUCCESS); 202 RTTESTI_CHECK_RC(rc = RTPoll(hSet, 250, &fEvents, &id), VINF_SUCCESS); 206 if (RT_SUCCESS(rc)) 223 RTTESTI_CHECK_RC(rc 409 int rc = RTTestInitAndCreate("tstRTPoll", &hTest); local [all...] |
H A D | tstRTR0CommonDriver.h | 88 int rc = RTStrCopy(g_szSrvName, sizeof(g_szSrvName), pszTestServiceName); local 89 if (rc != VINF_SUCCESS) 99 rc = SUPR3Init(&pSession); 100 if (RT_FAILURE(rc)) 102 RTTestFailed(g_hTest, "SUPR3Init failed with rc=%Rrc\n", rc); 107 rc = RTPathExecDir(szPath, RTPATH_MAX); 108 if (RT_SUCCESS(rc)) 109 rc = RTPathAppend(szPath, RTPATH_MAX, pszTestServiceName); 110 if (RT_SUCCESS(rc)) 239 int rc = SUPR3CallR0Service(g_szSrvName, g_cchSrvName, uOperation, u64Arg, &Req.Hdr); local 269 int rc = SUPR3CallR0Service(g_szSrvName, g_cchSrvName, uOperation, 0, &Req.Hdr); local [all...] |
H A D | tstRTR0SemMutexDriver.cpp | 129 int rc = VINF_SUCCESS; local 130 for (unsigned i = 0; i < cThreads && RT_SUCCESS(rc); i++) 131 rc = RTThreadCreateF(&ahThreads[i], tstThreadFn, (void *)(uintptr_t)RT_MAKE_U32(enmDo, cSecs), 0, RTTHREADTYPE_DEFAULT, 143 rc = rcThread; 145 else if (RT_SUCCESS(rc)) 146 rc = rc2; 155 RTTESTI_CHECK_RC_RET(rc = SUPR3CallR0Service("tstRTR0SemMutex", sizeof("tstRTR0SemMutex") - 1, enmCleanup, 0, &pReq->Hdr), 162 if (RT_FAILURE(rc)) 167 return RT_SUCCESS(rc); 184 int rc [all...] |
H A D | tstRTSemXRoads.cpp | 124 int rc = VINF_SUCCESS; local 125 for (unsigned i = 0; i < cThreads && RT_SUCCESS(rc); i++) 127 rc = RTThreadCreateF(&ahThreadsX[i], tstTrafficNSThread, (void *)(uintptr_t)i, 0, RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, "NS-%u", i); 128 RTTEST_CHECK_RC_OK(g_hTest, rc); 131 for (unsigned i = 0; i < cThreads && RT_SUCCESS(rc); i++) 133 rc = RTThreadCreateF(&ahThreadsX[i], tstTrafficEWThread, (void *)(uintptr_t)i, 0, RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, "NS-%u", i); 134 RTTEST_CHECK_RC_OK(g_hTest, rc); 189 int rc = RTTestInitAndCreate("tstRTSemXRoads", &g_hTest); local 190 if (rc) 191 return rc; [all...] |
H A D | tstRTSymlink.cpp | 94 int rc; local 96 RTTESTI_CHECK_RC(rc = RTPathQueryInfo(szPath1, &ObjInfo, RTFSOBJATTRADD_NOTHING), VINF_SUCCESS); 97 if (RT_SUCCESS(rc)) 99 RTTESTI_CHECK_RC(rc = RTPathQueryInfoEx(szPath1, &ObjInfo, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK), VINF_SUCCESS); 100 if (RT_SUCCESS(rc)) 105 RTTESTI_CHECK_RC(rc = RTPathQueryInfoEx(szPath1, &ObjInfo, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK), VINF_SUCCESS); 106 if (RT_SUCCESS(rc)) 188 int rc = RTTestInitAndCreate("tstRTSymlink", &hTest); local 189 if (rc) 190 return rc; [all...] |
H A D | tstRTTemp.cpp | 63 int rc; local 67 RTTESTI_CHECK_RC(rc = RTPathAppend(strcpy(szName, g_szTempPath), sizeof(szName), pszTemplate), VINF_SUCCESS); 68 if (RT_FAILURE(rc)) 75 rc = fFile 78 if (rc != VINF_SUCCESS) 80 RTTestIFailed("%s(%s, %#o) call #%u -> %Rrc\n", pcszAPI, szName, (int)fMode, i, rc); 89 RTTESTI_CHECK_RC_OK(rc = RTPathGetMode(papszNames[i], &fModeFinal)); 90 if (RT_SUCCESS(rc)) 147 int rc = RTTestInitAndCreate("tstRTTemp", &hTest); local 148 if (rc) [all...] |
H A D | tstRTTimeSpec.cpp | 139 int rc = RTTestInitAndCreate("tstRTTimeSpec", &hTest); local 140 if (rc) 141 return rc;
|
H A D | tstRTUuid.cpp | 42 int rc = RTTestInitAndCreate("tstRTUuid", &hTest); local 43 if (rc) 44 return rc; 49 do { if (RT_FAILURE(rc)) { RTTestFailed(hTest, "line %d: rc=%Rrc", __LINE__, rc); } } while (0) 53 rc = RTUuidClear(&UuidNull); CHECK_RC(); 60 rc = RTUuidCreate(&Uuid); CHECK_RC(); 68 rc = RTUuidToStr(&Uuid, sz, sizeof(sz)); CHECK_RC(); 74 rc [all...] |
H A D | tstTimerLR.cpp | 71 int rc = RTR3InitExeNoArguments(0); local 72 if (RT_FAILURE(rc)) 73 return RTMsgInitFailure(rc); 145 rc = RTTimerLRCreateEx(&hTimerLR, aTests[i].uMilliesInterval * (uint64_t)1000000, 0, TimerLRCallback, NULL); 146 if (RT_FAILURE(rc)) 148 RTPrintf("RTTimerLRCreateEX(,%u*1M,,,) -> %d\n", aTests[i].uMilliesInterval, rc); 157 rc = RTTimerLRStart(hTimerLR, 0); 158 if (RT_FAILURE(rc)) 160 RTPrintf("tstTimer: FAILURE - RTTimerLRStart() -> %Rrc\n", rc); 168 rc [all...] |
/vbox/src/VBox/Storage/testcase/ |
H A D | tstVDCopy.cpp | 40 static void tstVDError(void *pvUser, int rc, RT_SRC_POS_DECL, argument 44 RTPrintf("tstVD: Error %Rrc at %s:%u (%s): ", rc, RT_SRC_POS_ARGS); 51 int rc; local 77 if (RT_FAILURE(rc)) \ 79 RTPrintf("%s rc=%Rrc\n", str, rc); \ 84 return rc; \ 94 rc = VDInterfaceAdd(&VDIfError.Core, "tstVD_Error", VDINTERFACETYPE_ERROR, 96 AssertRC(rc); 98 rc [all...] |
H A D | tstVDShareable.cpp | 46 static void tstVDError(void *pvUser, int rc, RT_SRC_POS_DECL, argument 50 RTPrintf("tstVD: Error %Rrc at %s:%u (%s): ", rc, RT_SRC_POS_ARGS); 65 int rc; local 75 RTPrintf("%s rc=%Rrc\n", str, rc); \ 76 if (RT_FAILURE(rc)) \ 79 return rc; \ 87 rc = VDInterfaceAdd(&VDIfError.Core, "tstVD_Error", VDINTERFACETYPE_ERROR, 89 AssertRC(rc); 91 rc 122 int rc; local [all...] |
/vbox/src/VBox/VMM/VMMR3/ |
H A D | EMHM.cpp | 176 int rc; local 197 rc = VBOXSTRICTRC_TODO(IEMExecOne(pVCpu)); 200 if ( rc == VERR_IEM_ASPECT_NOT_IMPLEMENTED 201 || rc == VERR_IEM_INSTR_NOT_IMPLEMENTED) 217 rc = REMR3EmulateInstruction(pVM, pVCpu); 229 return rc; 398 int rc = PGMSyncCR3(pVCpu, pCtx->cr0, pCtx->cr3, pCtx->cr4, VMCPU_FF_IS_SET(pVCpu, VMCPU_FF_PGM_SYNC_CR3)); local 399 if (RT_FAILURE(rc)) 400 return rc; 408 rc 415 AssertLogRelMsgReturn(RT_FAILURE(rc), ("%Rrc\\n", rc), VERR_IPE_UNEXPECTED_INFO_STATUS); local 433 int rc = PGMR3PhysAllocateHandyPages(pVM); local 468 int rc = VERR_IPE_UNINITIALIZED_STATUS; local [all...] |
/vbox/src/VBox/Main/webservice/ |
H A D | split-soapC.cpp | 27 int rc = 0; local 39 rc = 2; 48 rc = 2; 56 rc = 2; 65 rc = 2; 72 rc = 2; 79 rc = 2; 108 rc = 2; 136 rc = 2; 182 if (rc) [all...] |
/vbox/src/VBox/Runtime/VBox/ |
H A D | log-vbox.cpp | 195 int rc; local 308 rc = RTLogCreate(&pLogger, 0, NULL, "VBOX_LOG", RT_ELEMENTS(g_apszGroups), &g_apszGroups[0], RTLOGDEST_FILE, 312 if (RT_SUCCESS(rc)) 426 rc = RTLogCreate(&pLogger, 0, NULL, "VBOX_LOG", RT_ELEMENTS(g_apszGroups), &g_apszGroups[0], RTLOGDEST_USER, "VBox.log"); 440 rc = RTLogCreate(&pLogger, 0, NULL, "VBOX_LOG", RT_ELEMENTS(g_apszGroups), &g_apszGroups[0], RTLOGDEST_FILE, "VBox-ring0.log"); 442 rc = RTLogCreate(&pLogger, 0, NULL, "VBOX_LOG", RT_ELEMENTS(g_apszGroups), &g_apszGroups[0], RTLOGDEST_USER, "VBox-ring0.log"); 444 if (RT_SUCCESS(rc)) 497 return g_pLogger = RT_SUCCESS(rc) ? pLogger : NULL;
|
/vbox/src/VBox/Runtime/common/asn1/ |
H A D | asn1-encode.cpp | 77 int rc = VINF_SUCCESS; local 132 rc = VINF_ASN1_NOT_ENCODED; 137 rc = VINF_SUCCESS; 145 return rc; 166 int rc; local 168 rc = pAsn1Core->pOps->pfnEncodePrep(pAsn1Core, pArgs->fFlags, pArgs->pErrInfo); 174 rc = pAsn1Core->pOps->pfnEnum(pAsn1Core, rtAsn1EncodePrepareCallback, uDepth + 1, pArgs); 175 if (RT_SUCCESS(rc)) 188 rc = VINF_SUCCESS; 190 if (RT_SUCCESS(rc)) 228 int rc = rtAsn1EncodePrepareCallback(pRoot, "root", 0, &Args); local [all...] |
H A D | asn1-ut-boolean.cpp | 121 int rc; local 127 rc = RTAsn1Core_CloneContent(&pThis->Asn1Core, &pSrc->Asn1Core, pAllocator); 128 if (RT_FAILURE(rc)) 129 return rc; 134 rc = RTAsn1Core_CloneNoContent(&pThis->Asn1Core, &pSrc->Asn1Core); 135 if (RT_FAILURE(rc)) 136 return rc;
|
H A D | asn1-ut-objid-decode.cpp | 162 int rc; local 173 rc = rtAsn1ObjId_ReadComponent(pbContent, cbContent, &uValue); 174 if (rc > 0) 221 pbContent += rc; 222 cbContent -= rc; 242 rc = rtAsn1ObjId_ReadComponent(pbContent, cbContent, &uValue); 243 } while (rc > 0); 245 rc = RTAsn1CursorSetInfo(pCursor, rc, "Bad object ID component #%u encoding: %.*Rhxs", 249 rc [all...] |
H A D | asn1-ut-time-decode.cpp | 53 int rc; local 71 rc = RTAsn1CursorSetInfo(pCursor, VERR_ASN1_TIME_NORMALIZE_MISMATCH, 76 rc = RTAsn1CursorSetInfo(pCursor, VERR_ASN1_TIME_NORMALIZE_ERROR, 81 rc = RTAsn1CursorSetInfo(pCursor, VERR_ASN1_TIME_BAD_NORMALIZE_INPUT, 85 return rc; 104 int rc; local 145 rc = rtAsn1Time_NormalizeTime(pCursor, pThis, "UTCTime", pszErrorTag); 146 if (RT_SUCCESS(rc)) 147 return rc; 150 rc 237 int rc; local 307 int rc = RTAsn1CursorReadHdr(pCursor, &pThis->Asn1Core, pszErrorTag); local 343 int rc = RTAsn1CursorReadHdr(pCursor, &pThis->Asn1Core, pszErrorTag); local 364 int rc = RTAsn1CursorReadHdr(pCursor, &pThis->Asn1Core, pszErrorTag); local [all...] |
/vbox/src/VBox/Runtime/common/crypto/ |
H A D | pkix-signature-core.cpp | 108 int rc = VINF_SUCCESS; local 118 rc = pDesc->pfnInit(pDesc, pThis->abState, pvOpaque, fSigning, pKey, pParams); 119 if (RT_SUCCESS(rc)) 128 rc = VERR_NO_MEMORY; 129 return rc; 184 int rc = pThis->pDesc->pfnReset(pThis->pDesc, pThis->abState, pThis->fSigning); 185 if (RT_FAILURE(rc)) 188 return rc; 209 int rc = rtCrPkxiSignatureReset(pThis); 210 if (RT_SUCCESS(rc)) [all...] |
/vbox/src/VBox/Runtime/common/dbg/ |
H A D | dbgmodexports.cpp | 67 int rc = RTDbgModSymbolAdd(pArgs->pDbgMod, pszSymbol, RTDBGSEGIDX_RVA, Value - pArgs->uImageBase, local 69 Log(("Symbol #%05u %#018RTptr %s [%Rrc]\n", uSymbol, Value, pszSymbol, rc)); NOREF(rc); 133 int rc = rtDbgModContainerCreate(pDbgMod, 0); local 134 if (RT_FAILURE(rc)) 135 return rc; 146 rc = pDbgMod->pImgVt->pfnEnumSegments(pDbgMod, rtDbgModExportsAddSegmentsCallback, &Args); 147 if (RT_SUCCESS(rc)) 149 rc = pDbgMod->pImgVt->pfnEnumSymbols(pDbgMod, RTLDR_ENUM_SYMBOL_FLAGS_ALL | RTLDR_ENUM_SYMBOL_FLAGS_NO_FWD, 152 if (RT_FAILURE(rc)) [all...] |
/vbox/src/VBox/Runtime/common/ldr/ |
H A D | ldr.cpp | 59 int rc; local 61 rc = pMod->pOps->pfnGetSymbol(pMod, pszSymbol, ppvValue); 65 rc = pMod->pOps->pfnGetSymbolEx(pMod, NULL, 0, UINT32_MAX, pszSymbol, &Value); 66 if (RT_SUCCESS(rc)) 70 rc = VERR_BUFFER_OVERFLOW; 73 LogFlow(("RTLdrGetSymbol: return %Rrc *ppvValue=%p\n", rc, *ppvValue)); 74 return rc; 82 int rc = RTLdrGetSymbol(hLdrMod, pszSymbol, (void **)&pfn); local 83 if (RT_SUCCESS(rc)) 142 int rc local [all...] |
H A D | ldrNative.cpp | 131 int rc = VERR_NO_MEMORY; local 159 rc = rtldrNativeLoad(pszFilename, &pMod->hNative, fFlags, pErrInfo); 160 if (RT_SUCCESS(rc)) 163 LogFlow(("RTLdrLoad: returns %Rrc *phLdrMod=%RTldrm\n", rc, *phLdrMod)); 164 return rc; 170 RTErrInfoSetF(pErrInfo, rc, "Failed to allocate %zu bytes for the module handle", sizeof(*pMod)); 172 LogFlow(("RTLdrLoad: returns %Rrc\n", rc)); 173 return rc; 204 int rc = rtldrNativeLoadSystem(pszFilename, pszSuffix, fNoUnload ? RTLDRLOAD_FLAGS_NO_UNLOAD : 0, phLdrMod); 205 LogFlow(("RTLdrLoadSystem: returns %Rrc\n", rc)); 331 int rc = RTLdrLoad(pszFilename, &hLib); local [all...] |
/vbox/src/VBox/Runtime/common/misc/ |
H A D | message.cpp | 117 int rc = RTMsgErrorV(pszFormat, va); local 119 return rc; 187 int rc = RTMsgWarningV(pszFormat, va); local 189 return rc; 205 int rc = RTMsgInfoV(pszFormat, va); local 207 return rc;
|
H A D | term.cpp | 84 int rc; local 90 rc = RTSemFastMutexCreate(&hFastMutex); 91 if (RT_SUCCESS(rc)) 96 return rc; 103 int rc; local 111 rc = RTOnce(&g_InitTermCallbacksOnce, rtTermInitOnce, NULL); 112 if (RT_FAILURE(rc)) 113 return rc; 127 rc = RTSemFastMutexRequest(g_hFastMutex); 128 if (RT_SUCCESS(rc)) 149 int rc; local 210 int rc; local [all...] |