/vbox/src/VBox/Runtime/r3/nt/ |
H A D | RTProcQueryParent-r3-nt.cpp | 73 int rc; local 80 rc = VINF_SUCCESS; 83 rc = RTErrConvertFromNtStatus(rcNt); 91 return rc;
|
/vbox/src/VBox/Runtime/r3/os2/ |
H A D | filelock-os2.cpp | 110 int rc = RTFileLock(File, fLock, offLock, cbLock); local 111 if (RT_FAILURE(rc) && rc != VERR_FILE_LOCK_VIOLATION) 112 return rc; 122 rc = RTFileUnlock(File, offLock, cbLock); 123 if (RT_FAILURE(rc)) 124 return rc; 127 rc = RTFileLock(File, fLock, offLock, cbLock); 128 if (RT_SUCCESS(rc)) 129 return rc; [all...] |
/vbox/src/VBox/Runtime/r3/posix/ |
H A D | RTPathUserHome-posix.cpp | 75 int rc = getpwuid_r(uid, &Passwd, &achBuffer[0], sizeof(achBuffer), &pPasswd); local 76 if (rc != 0) 77 return RTErrConvertFromErrno(rc); 112 int rc = VERR_PATH_NOT_FOUND; local 120 rc = rtPathFromNativeCopy(pszPath, cchPath, pszHome, NULL); 122 return rc; 128 int rc; local 139 rc = rtPathUserHomeByPasswd(pszPath, cchPath, uid); 141 rc = rtPathUserHomeByEnv(pszPath, cchPath); 147 if ( RT_FAILURE(rc) [all...] |
H A D | fileio2-posix.cpp | 90 int rc = RTErrConvertFromErrno(errno); local 91 Log(("RTFileQueryInfo(%RTfile,,%d): returns %Rrc\n", hFile, enmAdditionalAttribs, rc)); 92 return rc; 155 int rc = RTFileQueryInfo(hFile, &ObjInfo, RTFSOBJATTRADD_UNIX); local 156 if (RT_FAILURE(rc)) 157 return rc; 164 int rc = RTErrConvertFromErrno(errno); local 165 Log(("RTFileSetTimes(%RTfile,%p,%p,,): returns %Rrc\n", hFile, pAccessTime, pModificationTime, rc)); 166 return rc; 182 int rc [all...] |
H A D | fs3-posix.cpp | 58 int rc = getpwuid_r(uid, &Pwd, achBuf, sizeof(achBuf), &pPwd); local 59 if (!rc && pPwd) 80 int rc = getgrgid_r(gid, &Grp, achBuf, sizeof(achBuf), &pGrp); local 81 if (!rc && pGrp)
|
H A D | thread2-posix.cpp | 89 int rc = RTErrConvertFromErrno(errno); local 90 LogFlow(("RTThreadSleep: returning %Rrc (cMillies=%d)\n", rc, cMillies)); 91 return rc;
|
H A D | tls-posix.cpp | 47 int rc = pthread_key_create(&iTls, NULL); local 48 if (!rc) 60 int rc = pthread_key_create(&iTls, pfnDestructor); local 61 if (!rc) 68 return RTErrConvertFromErrno(rc); 76 int rc = pthread_key_delete(iTls); local 77 if (!rc) 79 return RTErrConvertFromErrno(rc); 100 int rc = pthread_setspecific(iTls, pvValue); local 101 if (RT_UNLIKELY(rc ! [all...] |
/vbox/src/VBox/Runtime/r3/solaris/ |
H A D | RTSystemQueryDmiString-solaris.cpp | 49 int rc = VERR_NOT_SUPPORTED; local 73 rc = RTStrCopy(pszBuf, cbBuf, szData); 75 return rc; 84 case RTSYSDMISTR_PRODUCT_NAME: rc = RTStrCopy(pszBuf, cbBuf, hSMBInfo.smbi_product); break; 85 case RTSYSDMISTR_PRODUCT_VERSION: rc = RTStrCopy(pszBuf, cbBuf, hSMBInfo.smbi_version); break; 86 case RTSYSDMISTR_PRODUCT_SERIAL: rc = RTStrCopy(pszBuf, cbBuf, hSMBInfo.smbi_serial); break; 87 case RTSYSDMISTR_MANUFACTURER: rc = RTStrCopy(pszBuf, cbBuf, hSMBInfo.smbi_manufacturer); break; 90 rc = VERR_NOT_SUPPORTED; 93 return rc; 104 rc [all...] |
H A D | systemmem-solaris.cpp | 62 int rc = RTCritSectInit(&g_rtSysMemSolCritSect); local 63 if (RT_SUCCESS(rc)) 75 rc = RTErrConvertFromErrno(errno); 80 rc = RTErrConvertFromErrno(errno); 82 return rc; 105 int rc = RTOnceEx(&g_rtSysMemSolInitOnce, rtSysMemSolInit, rtSysMemSolCleanUp, NULL); local 106 if (RT_SUCCESS(rc)) 108 rc = RTCritSectEnter(&g_rtSysMemSolCritSect); 109 if (RT_SUCCESS(rc)) 117 rc 132 int rc = RTOnceEx(&g_rtSysMemSolInitOnce, rtSysMemSolInit, rtSysMemSolCleanUp, NULL); local [all...] |
/vbox/src/VBox/Runtime/r3/win/ |
H A D | RTHandleGetStandard-win.cpp | 100 int rc; local 104 rc = RTFileFromNative(&h.u.hFile, (RTHCUINTPTR)hNative); 108 rc = RTPipeFromNative(&h.u.hPipe, (RTHCUINTPTR)hNative, 114 rc = rtSocketCreateForNative(&h.u.hSocket, (RTHCUINTPTR)hNative); 121 if (RT_SUCCESS(rc)) 124 return rc;
|
H A D | RTSystemShutdown-win.cpp | 47 int rc = RTStrToUtf16(pszLogMsg, &pwszLogMsg); local 48 if (RT_FAILURE(rc)) 49 return rc; 63 rc = (fFlags & RTSYSTEM_SHUTDOWN_ACTION_MASK) == RTSYSTEM_SHUTDOWN_HALT ? VINF_SYS_MAY_POWER_OFF : VINF_SUCCESS; 69 rc = RTErrConvertFromWin32(dwErr); 115 rc = (fFlags & RTSYSTEM_SHUTDOWN_ACTION_MASK) == RTSYSTEM_SHUTDOWN_HALT ? VINF_SYS_MAY_POWER_OFF : VINF_SUCCESS; 119 rc = RTErrConvertFromWin32(dwErr); 129 return rc;
|
H A D | dir-win.cpp | 52 int rc; local 60 rc = RTStrToUtf16(pszPath, &pwszString); 61 AssertRC(rc); 62 if (RT_SUCCESS(rc)) 68 rc = VINF_SUCCESS; 70 rc = RTErrConvertFromWin32(GetLastError()); 81 if ( RT_SUCCESS(rc) 86 rc = VINF_SUCCESS; 88 rc = RTErrConvertFromWin32(GetLastError()); 97 rc 111 int rc = RTStrToUtf16(pszPath, &pwszString); local 151 int rc = rtPathWin32MoveRename(pszSrc, pszDst, local [all...] |
H A D | utf8-win.cpp | 62 int rc = RTStrToUtf16(pszString, &pwszString); local 63 if (RT_FAILURE(rc)) 64 return rc; 92 rc = RTErrConvertFromWin32(iLastErr); 95 rc = VERR_NO_TMP_MEMORY; 103 rc = RTErrConvertFromWin32(iLastErr); 106 return rc; 131 int rc; local 149 rc = RTUtf16ToUtf8(pwszString, ppszString); 151 return rc; [all...] |
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstDir.cpp | 76 int rc; local 78 rc = RTDirOpen(&pDir, argv[i]); 80 rc = RTDirOpenFiltered(&pDir, argv[i], RTDIRFILTER_WINNT, 0); 81 if (RT_SUCCESS(rc)) 89 rc = RTDirRead(pDir, &DirEntry, NULL); 90 if (RT_FAILURE(rc)) 120 rc = RTDirReadEx(pDir, &DirEntry, NULL, RTFSOBJATTRADD_UNIX, RTPATH_F_ON_LINK); 121 if (RT_FAILURE(rc)) 184 if (rc != VINF_SUCCESS) 185 RTPrintf("^^ %Rrc\n", rc); [all...] |
H A D | tstFile.cpp | 45 int rc = RTFileOpen(&File, "tstFile#1.tst", RTFILE_O_READWRITE | RTFILE_O_CREATE_REPLACE | RTFILE_O_DENY_NONE); local 46 if (RT_FAILURE(rc)) 48 RTPrintf("tstFile: FATAL ERROR - Failed to open file #1. rc=%Rrc\n", rc); 53 rc = RTFileGetMaxSizeEx(File, &cbMax); 54 if (RT_FAILURE(rc)) 56 RTPrintf("tstFile: RTFileGetMaxSizeEx failed: %Rrc\n", rc); 73 rc = RTFileSetSize(File, _2G + _1M); 74 if (RT_FAILURE(rc)) 76 RTPrintf("Failed to grow file #1 to 2.001GB. rc [all...] |
H A D | tstLdrDisasmTest.cpp | 102 int rc = DISInstrWithReader(CodeIndex, DISCPUMODE_32BIT, DisasmTest1ReadCode, 0, pCpu, &cb); local 104 MY_PRINTF(("DISCoreOneEx -> rc=%d cb=%d Cpu: bOpCode=%#x pCurInstr=%p (42=%d)\n", \ 105 rc, cb, pCpu->bOpCode, pCpu->pCurInstr, 42)); \ 106 return rc; 115 int rc; local 122 rc = MyDisasm(CodeIndex, &Cpu, &cb); \ 123 if (RT_FAILURE(rc)) \ 154 return rc;
|
H A D | tstMove.cpp | 132 int rc; local 134 rc = RTPathRename(pszOld, pszNew, fReplace ? RTPATHRENAME_FLAGS_REPLACE : 0); 136 rc = RTDirRename( pszOld, pszNew, fReplace ? RTPATHRENAME_FLAGS_REPLACE : 0); 138 rc = RTFileRename(pszOld, pszNew, fReplace ? RTPATHRENAME_FLAGS_REPLACE : 0); 140 rc = RTFileMove( pszOld, pszNew, fReplace ? RTFILEMOVE_FLAGS_REPLACE : 0); 142 RTPrintf("The API returned %Rrc\n", rc); 143 return !RT_SUCCESS(rc);
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/os2/ |
H A D | os2inrval.c | 54 APIRET rc = DosTmrQueryFreq(&timerFreq); local 55 if (NO_ERROR == rc) { 75 APIRET rc = DosTmrQueryTime(×tamp); local 76 if (NO_ERROR != rc) {
|
H A D | os2rng.c | 49 APIRET rc = NO_ERROR; local 52 rc = DosTmrQueryTime(&qword); 53 if (rc != NO_ERROR)
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/misc/ |
H A D | prsystem.c | 209 int rc; local 214 rc = sysctl( mib, 2, &numCpus, &len, NULL, 0 ); 215 if ( -1 == rc ) {
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/ |
H A D | append.c | 67 PRStatus rc; local 116 rc = PR_Close( fd ); 117 if ( PR_FAILURE == rc ) { 140 rc = PR_Close( fd ); 141 if ( PR_FAILURE == rc ) {
|
H A D | env.c | 72 PRStatus rc; local 130 rc = PR_SetEnv( envBuf ); 131 if ( PR_FAILURE == rc ) { 150 rc = PR_SetEnv( envBuf ); 151 if ( PR_FAILURE == rc ) { 170 rc = PR_SetEnv( envBuf ); 171 if ( PR_FAILURE == rc ) { 181 rc = PR_SetEnv( envBuf ); 182 if ( PR_FAILURE == rc ) { 200 rc [all...] |
/vbox/src/VBox/VMM/VMMRC/ |
H A D | CSAMRC.cpp | 68 int rc; local 93 rc = PGMShwMakePageWritable(pVCpu, pvFault, PGM_MK_PG_IS_WRITE_FAULT); 94 AssertMsgRC(rc, ("PGMShwModifyPage -> rc=%Rrc\n", rc)); 111 rc = PATMRCHandleWriteToPatchPage(pVM, pRegFrame, (RTRCPTR)((RTRCUINTPTR)pvRange + offRange), 4 /** @todo */); 112 if (rc == VINF_SUCCESS) 113 return rc; 114 if (rc == VINF_EM_RAW_EMULATE_INSTR) 119 Assert(rc [all...] |
H A D | MMRamRC.cpp | 85 int rc; local 113 rc = MMGCRamReadNoTrapHandler(pDst, pSrc, cbThisRead); 114 if (RT_FAILURE(rc) || cbThisRead == cb) 124 if (RT_FAILURE(rc)) 127 return rc; 148 int rc = MMGCRamWriteNoTrapHandler(pDst, pSrc, cb); local 150 if (RT_FAILURE(rc)) 158 return rc;
|
/vbox/src/VBox/VMM/VMMRZ/ |
H A D | DBGFRZ.cpp | 129 int rc = SELMValidateAndConvertCSAddr(pVCpu, pRegFrame->eflags, pRegFrame->ss.Sel, pRegFrame->cs.Sel, &pRegFrame->cs, local 136 AssertRCReturn(rc, rc);
|