/vbox/include/VBox/com/ |
H A D | assert.h | 35 * @param rc COM result code 37 #define AssertComRC(rc) \ 38 do { AssertMsg (SUCCEEDED (rc), ("COM RC = %Rhrc (0x%08X)\n", rc, rc)); NOREF (rc); } while (0) 44 * @param rc COM result code 47 #define AssertComRCReturn(rc, ret) \ 48 AssertMsgReturn (SUCCEEDED (rc), ("COM RC = %Rhrc (0x%08X)\n", rc, r [all...] |
/vbox/src/VBox/HostDrivers/Support/testcase/ |
H A D | tstPage.cpp | 43 int rc = SUPR3Init(NULL); local 44 cErrors += rc != 0; 45 if (!rc) 48 rc = SUPR3PageAlloc(1, &pv); 49 cErrors += rc != 0; 50 if (!rc) 53 rc = SUPR3PageFree(pv, 1); 54 cErrors += rc != 0; 55 if (rc) 56 RTPrintf("tstPage: SUPR3PageFree() failed rc [all...] |
H A D | tstInit.cpp | 39 int rc; local 41 rc = SUPR3Init(NULL); 42 RTPrintf("tstInit: SUPR3Init -> rc=%Rrc\n", rc); 43 if (!rc) 45 rc = SUPR3Term(false /*fForced*/); 46 RTPrintf("tstInit: SUPR3Term -> rc=%Rrc\n", rc); 49 return rc;
|
H A D | SUPInstall.cpp | 44 int rc = SUPR3Install(); local 45 if (RT_SUCCESS(rc)) 47 if (rc == VINF_SUCCESS) 49 else if (rc == VINF_ALREADY_INITIALIZED) 51 else if (rc == VWRN_ALREADY_EXISTS) 54 RTMsgInfo("Unexpected status: %Rrc", rc); 57 return RTMsgErrorExit(RTEXITCODE_FAILURE, "installation failed. rc=%Rrc", rc);
|
/vbox/src/VBox/Devices/build/ |
H A D | VBoxDD.cpp | 54 int rc; local 56 rc = pCallbacks->pfnRegister(pCallbacks, &g_DevicePCI); 57 if (RT_FAILURE(rc)) 58 return rc; 59 rc = pCallbacks->pfnRegister(pCallbacks, &g_DevicePciIch9); 60 if (RT_FAILURE(rc)) 61 return rc; 62 rc = pCallbacks->pfnRegister(pCallbacks, &g_DevicePcArch); 63 if (RT_FAILURE(rc)) 64 return rc; 218 int rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvMouseQueue); local 393 int rc = VINF_SUCCESS; local [all...] |
/vbox/src/VBox/Additions/common/VBoxGuestLib/ |
H A D | VbglR0CanUsePhysPageList.cpp | 40 int rc = vbglR0Enter(); local 41 return RT_SUCCESS(rc)
|
H A D | VMMDev.cpp | 31 int rc = vbglR0Enter (); local 33 if (RT_FAILURE(rc)) 34 return rc; 41 return rc;
|
/vbox/src/VBox/Main/src-client/ |
H A D | VBoxDriversRegister.cpp | 58 int rc = pCallbacks->pfnRegister(pCallbacks, &Mouse::DrvReg); local 59 if (RT_FAILURE(rc)) 60 return rc; 62 rc = pCallbacks->pfnRegister(pCallbacks, &Keyboard::DrvReg); 63 if (RT_FAILURE(rc)) 64 return rc; 66 rc = pCallbacks->pfnRegister(pCallbacks, &Display::DrvReg); 67 if (RT_FAILURE(rc)) 68 return rc; 70 rc [all...] |
/vbox/src/VBox/ValidationKit/testdriver/ |
H A D | tst-txsclient.py | 46 def boolRes(rc, fExpect = True): 50 if isinstance(rc, types.BooleanType): 51 if rc == fExpect: 56 def stringRes(rc, sExpect): 60 if isinstance(rc, basestring): 61 if rc == sExpect: 119 rc = oSession.syncMkDir('${SCRATCH}/testdir1'); 120 print '%s: MKDIR(${SCRATCH}/testdir1) -> %s' % (boolRes(rc), rc); 122 rc [all...] |
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTR0SemMutex.cpp | 72 #define CHECK_RC_BREAK(rc, rcExpect, szOp) \ 73 if ((rc) != (rcExpect)) \ 75 RTStrPrintf(pszErr, cchErr, "!%s -> %Rrc, expected %Rrc. line %u", szOp, rc, rcExpect, __LINE__); \ 76 SUPR0Printf("%s -> %d, expected %d. line %u", szOp, rc, rcExpect, __LINE__); \ 95 int rc; local 106 rc = RTSemMutexCreate(&hMtx); 107 CHECK_RC_BREAK(rc, VINF_SUCCESS, "RTSemMutexCreate"); 114 rc = RTSemMutexRequestNoResume(hMtx, 0); 115 CHECK_RC_BREAK(rc, VINF_SUCCESS, "RTSemMutexRequestNoResume"); 116 rc [all...] |
H A D | tstSemPingPong.cpp | 50 int rc; local 60 rc = RTSemPongWait(pPP, RT_INDEFINITE_WAIT); 61 if (RT_FAILURE(rc)) 64 RTPrintf("tstSemPingPong: ERROR - RTSemPongWait -> %Rrc\n", rc); 74 rc = RTSemPong(pPP); 75 if (RT_FAILURE(rc)) 78 RTPrintf("tstSemPingPong: ERROR - RTSemPong -> %Rrc\n", rc); 82 return rc; 95 int rc = RTSemPingPongInit(&PingPong); local 96 if (RT_FAILURE(rc)) [all...] |
H A D | tstRTFilesystem.cpp | 45 int rc = VINF_SUCCESS; local 50 rc = RTFilesystemVfsFromFile(hVfsFile, &hVfs); 51 if (RT_FAILURE(rc)) 53 RTTestIFailed("RTFilesystemVfsFromFile -> %Rrc", rc); 54 return rc; 63 rc = RTVfsFileGetSize(hVfsFile, &cbFs); 64 if (RT_FAILURE(rc)) 66 RTTestIFailed("RTVfsFileGetSize -> %Rrc", rc); 67 return rc; 74 rc 104 int rc = RTTestInitAndCreate("tstRTFilesystem", &hTest); local [all...] |
H A D | tstFileLock.cpp | 54 int rc = RTFileOpen(&File, "tstLock.tst", RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE); local 55 RTPrintf("File open: rc=%Rrc\n", rc); 56 if (RT_FAILURE(rc)) 58 if (rc != VERR_FILE_NOT_FOUND && rc != VERR_OPEN_FAILED) 64 rc = RTFileOpen(&File, "tstLock.tst", RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_NONE); 65 RTPrintf("File create: rc=%Rrc\n", rc); 66 if (RT_FAILURE(rc)) [all...] |
H A D | tstFork.cpp | 50 int rc = RTTestInitAndCreate("tstFork", &hTest); local 51 if (rc) 52 return rc; 72 rc = 0; 76 rc = 1; 78 return rc; 90 rc = 1; 91 while ( waitpid(pid, &rc, 0) 93 rc = 1; 94 if (!WIFEXITED(rc) || WEXITSTATU [all...] |
H A D | tstDir-3.cpp | 39 int rc = RTDirOpenFiltered(&pDir, pszFilter, RTDIRFILTER_WINNT, 0); local 40 if (RT_SUCCESS(rc)) 45 rc = RTDirRead(pDir, &DirEntry, NULL); 46 if (RT_FAILURE(rc)) 51 if (rc != VERR_NO_MORE_FILES) 53 RTPrintf("tstDir-3: Enumeration '%s' failed! rc=%Rrc\n", pszFilter, rc); 58 rc = RTDirClose(pDir); 59 if (RT_FAILURE(rc)) 61 RTPrintf("tstDir-3: Failed to close dir '%s'! rc 80 int rc; local [all...] |
/vbox/src/libs/libxml2-2.6.31/doc/examples/ |
H A D | testWriter.c | 71 int rc; local 85 rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL); 86 if (rc < 0) { 94 rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE"); 95 if (rc < 0) { 107 rc = xmlTextWriterWriteComment(writer, tmp); 108 if (rc < 0) { 116 rc = xmlTextWriterStartElement(writer, BAD_CAST "ORDER"); 117 if (rc < 0) { 124 rc 339 int rc; local 625 int rc; local 877 int rc; local [all...] |
/vbox/src/VBox/VMM/VMMR3/ |
H A D | EMR3Dbg.cpp | 32 int rc; local 37 rc = EMR3QueryExecutionPolicy(pUVM, EMEXECPOLICY_IEM_ALL, &f); 38 if (RT_FAILURE(rc)) 39 return DBGCCmdHlpFailRc(pCmdHlp, pCmd, rc, "EMR3QueryExecutionPolicy(,EMEXECPOLICY_IEM_ALL,"); 44 rc = DBGCCmdHlpVarToBool(pCmdHlp, &paArgs[0], &f); 45 if (RT_FAILURE(rc)) 46 return DBGCCmdHlpFailRc(pCmdHlp, pCmd, rc, "DBGCCmdHlpVarToBool"); 47 rc = EMR3SetExecutionPolicy(pUVM, EMEXECPOLICY_IEM_ALL, f); 48 if (RT_FAILURE(rc)) 49 return DBGCCmdHlpFailRc(pCmdHlp, pCmd, rc, "EMR3SetExecutionPolic 70 int rc = DBGCRegisterCommands(&g_aCmds[0], RT_ELEMENTS(g_aCmds)); local [all...] |
/vbox/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/ |
H A D | display_window.cpp | 40 int rc = mpWindow ? mpWindow->UpdateBegin() : VINF_SUCCESS; local 41 if (RT_SUCCESS(rc)) 43 rc = CrFbDisplayBase::UpdateBegin(pFb); 44 if (RT_SUCCESS(rc)) 56 return rc; 71 int rc = CrFbDisplayBase::RegionsChanged(pFb); local 72 if (!RT_SUCCESS(rc)) 75 return rc; 80 rc = mpWindow->Create(); 81 if (!RT_SUCCESS(rc)) 94 int rc = CrFbDisplayBase::EntryCreated(pFb, hEntry); local 117 int rc = CrFbDisplayBase::EntryReplaced(pFb, hNewEntry, hReplacedEntry); local 140 int rc = CrFbDisplayBase::EntryTexChanged(pFb, hEntry); local 163 int rc = CrFbDisplayBase::FramebufferChanged(pFb); local 193 int rc = mpWindow->SetPosition(pRect->xLeft - pViewportRect->xLeft, pRect->yTop - pViewportRect->yTop); local 257 int rc = VINF_SUCCESS; local 291 int rc = VINF_SUCCESS; local 349 int rc = windowDimensionsSync(); local 379 int rc = mpWindow->UpdateBegin(); local 410 int rc = windowCleanup(); local 429 int rc = VINF_SUCCESS; local 499 int rc = mpWindow->UpdateBegin(); local 530 int rc = CrFbDisplayBase::fbSync(); local [all...] |
/vbox/src/VBox/Storage/testcase/ |
H A D | vditool.cpp | 72 int rc = RTStrCurrentCPToUtf8(pszUtf8Filename, pszFilename); local 73 if (RT_FAILURE(rc)) 74 RTPrintf("Error converting filename '%s' to UTF8! (rc=%Rrc)\n", 75 pszFilename, rc); 76 return rc; 81 * @returns rc 82 * @param rc Status code. 84 static int PrintDone(int rc) argument 86 if (rc == VINF_SUCCESS) 88 else if (RT_SUCCESS(rc)) 102 int rc = FilenameToUtf8(&pszUtf8Filename, pszFilename); local 400 int rc = RTLogCreate(&pLogger, 0, "all", local [all...] |
/vbox/src/VBox/Additions/x11/VBoxClient/ |
H A D | seamless.cpp | 71 int rc; local 77 rc = mX11Monitor.init(sendRegionUpdate); 78 if (RT_FAILURE(rc)) 81 rc = VbglR3CtlFilterMask(VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST, 0); 82 if (RT_FAILURE(rc)) 85 rc = VbglR3SeamlessSetCap(true); 86 if (RT_FAILURE(rc)) 89 if (RT_FAILURE(rc)) 91 pcszStage, rc)); 92 return rc; 103 int rc = VINF_SUCCESS; local 145 int rc = VbglR3SeamlessWaitEvent(&newMode); local 197 int rc = VINF_SUCCESS; local 216 int rc; local 234 int rc; local 252 int rc; local 276 int rc; local 300 int rc = VERR_INTERNAL_ERROR; local 355 int rc; local 379 int rc; local [all...] |
/vbox/src/VBox/Runtime/r3/freebsd/ |
H A D | rtProcInitExePath-freebsd.cpp | 59 int rc = rtPathFromNative(&pszTmp, pszPath, NULL); local 60 AssertMsgRCReturn(rc, ("rc=%Rrc pszPath=\"%s\"\nhex: %.*Rhxs\n", rc, pszPath, cchExePath, pszPath), rc); 63 rc = RTStrCopy(pszPath, cchPath, pszTmp); 66 return rc; 69 int rc = RTErrConvertFromErrno(errno); local 70 AssertMsgFailed(("rc=%Rrc errno=%d cchExePath=%d\n", rc, errn [all...] |
/vbox/src/VBox/Runtime/r3/posix/ |
H A D | RTPathUserDocuments-posix.cpp | 42 int rc = RTPathUserHome(pszPath, cchPath); local 43 if (RT_FAILURE(rc)) 44 return rc; 46 rc = RTPathAppend(pszPath, cchPath, "Documents"); 47 if (RT_FAILURE(rc)) 50 return rc;
|
/vbox/src/VBox/Runtime/generic/ |
H A D | RTFileQuerySize-generic.cpp | 43 int rc = RTPathQueryInfoEx(pszPath, &ObjInfo, RTFSOBJATTRADD_NOTHING, RTPATH_F_FOLLOW_LINK); local 44 if (RT_SUCCESS(rc)) 49 LogFlow(("RTFileQuerySize(%p:{%s}): returns %Rrc (%#RX64)\n", pszPath, pszPath, rc, *pcbFile)); 50 return rc; 54 rc = VERR_IS_A_DIRECTORY; 56 rc = VERR_FILE_NOT_FOUND; /** @todo VERR_NOT_A_FILE... */ 58 LogFlow(("RTFileQuerySize(%p:{%s}): returns %Rrc\n", pszPath, pszPath, rc)); 59 return rc;
|
H A D | RTProcessQueryUsernameA-generic.cpp | 46 int rc = VINF_SUCCESS; local 49 rc = RTProcQueryUsername(hProcess, NULL, cbUser, &cbUser); 50 if (rc == VERR_BUFFER_OVERFLOW) 55 rc = RTProcQueryUsername(hProcess, pszUser, cbUser, NULL); 56 Assert(rc != VERR_BUFFER_OVERFLOW); 57 if (RT_SUCCESS(rc)) 63 rc = VERR_NO_STR_MEMORY; 66 return rc;
|
/vbox/src/VBox/Main/src-server/generic/ |
H A D | AutostartDb-generic.cpp | 39 int rc = VINF_SUCCESS; local 46 rc = RTProcQueryUsernameA(RTProcSelf(), &pszUser); 47 if (RT_SUCCESS(rc)) 60 rc = RTStrAPrintf(&pszFile, "%s/%s.%s", 62 if (RT_SUCCESS(rc)) 64 rc = RTFileOpen(&hAutostartFile, pszFile, fOpen); 65 if (RT_SUCCESS(rc)) 74 rc = RTFileGetSize(hAutostartFile, &cbFile); 75 if ( RT_SUCCESS(rc) 86 rc 142 int rc = RTCritSectInit(&this->CritSect); local 184 int rc = VERR_NOT_SUPPORTED; local 205 int rc = VINF_SUCCESS; local 225 int rc = VINF_SUCCESS; local 245 int rc = VINF_SUCCESS; local [all...] |