/vbox/src/VBox/Runtime/common/path/ |
H A D | RTPathTraverseList.cpp | 68 int rc = pfnCallback(psz, cch, pvUser1, pvUser2); local 69 if (rc != VERR_TRY_AGAIN) 70 return rc;
|
H A D | comparepaths.cpp | 58 int rc = RTStrToUni(pszPath1, &puszPath1); local 59 if (RT_FAILURE(rc)) 62 rc = RTStrToUni(pszPath2, &puszPath2); 63 if (RT_FAILURE(rc))
|
/vbox/src/VBox/Runtime/common/table/ |
H A D | avl_Destroy.cpp.h | 47 int rc; local 76 rc = pfnCallBack(pEqual, pvUser); 77 if (rc != VINF_SUCCESS) 78 return rc; 98 rc = pfnCallBack(pNode, pvUser); 99 if (rc != VINF_SUCCESS) 100 return rc;
|
/vbox/src/VBox/Runtime/common/vfs/ |
H A D | vfsiosmisc.cpp | 56 int rc; local 63 rc = RTVfsIoStrmRead(hVfsIos, &achBuf[cbUsed], sizeof(achBuf) - cbUsed - 1, true /*fBlocking*/, &cbRead); 64 if (RT_FAILURE(rc)) 69 Assert(rc == VINF_EOF); 79 size_t offEnd = rc == VINF_EOF 88 rc = RTStrGetCpEx(&pszCur, &uc); 89 if (RT_FAILURE(rc)) 95 rc = VERR_INVALID_UTF8_ENCODING; 103 rc = VERR_INVALID_UTF8_ENCODING; 119 if (poffError && RT_FAILURE(rc)) [all...] |
/vbox/src/VBox/Runtime/generic/ |
H A D | RTDirCreateUniqueNumbered-generic.cpp | 56 int rc = RTDirCreate(pszPath, fMode, 0); local 57 if ( RT_SUCCESS(rc) 58 || rc != VERR_ALREADY_EXISTS) 59 return rc; 91 rc = RTDirCreate(pszPath, fMode, 0); 92 if (RT_SUCCESS(rc)) 93 return rc;
|
H A D | RTFileMove-generic.cpp | 57 int rc = RTFileRename(pszSrc, pszDst, fRename); local 58 if (rc == VERR_NOT_SAME_DEVICE) 67 rc = RTFileOpen(&FileSrc, pszSrc, RTFILE_O_READ | RTFILE_O_DENY_WRITE | RTFILE_O_OPEN); 68 if (RT_SUCCESS(rc)) 71 rc = RTFileOpen(&FileDst, pszDst, RTFILE_O_WRITE | RTFILE_O_DENY_ALL | RTFILE_O_CREATE_REPLACE); 72 if (RT_SUCCESS(rc)) 74 rc = RTFileCopyByHandles(FileSrc, FileDst); 75 if (RT_SUCCESS(rc)) 80 Log(("RTFileMove('%s', '%s', %#x): copy failed, rc=%Rrc\n", 81 pszSrc, pszDst, fMove, rc)); [all...] |
H A D | RTFileReadAllByHandleEx-generic.cpp | 48 int rc = RTFileSeek(File, 0, RTFILE_SEEK_CURRENT, (uint64_t *)&offOrg); local 49 if (RT_SUCCESS(rc)) 55 rc = RTFileSeek(File, 0,RTFILE_SEEK_END, (uint64_t *)&cbFile); 56 if (RT_SUCCESS(rc)) 76 rc = RTFileSeek(File, off, RTFILE_SEEK_BEGIN, NULL); 77 if (RT_SUCCESS(rc)) 80 rc = RTFileRead(File, pvFile, cbAllocMem, NULL); 81 if (RT_SUCCESS(rc)) 91 if (RT_FAILURE(rc)) 95 rc [all...] |
H A D | RTMpOnPair-generic.cpp | 83 int rc; local 102 rc = RTMpOnAll(rtMpOnPairGenericWorker, &Args, pvUser2); 103 if (RT_SUCCESS(rc)) 111 rc = VERR_CPU_OFFLINE; 113 rc = VERR_NOT_ALL_CPUS_SHOWED; 116 rc = VERR_CPU_IPE_1; 126 rc = VERR_CPU_OFFLINE; 128 rc = VERR_CPU_NOT_FOUND; 129 return rc;
|
H A D | RTProcDaemonize-generic.cpp | 72 int rc = RTFileOpenBitBucket(&hStdIn.u.hFile, RTFILE_O_READ); local 73 if (RT_SUCCESS(rc)) 78 rc = RTFileOpenBitBucket(&hStdOutAndErr.u.hFile, RTFILE_O_WRITE); 79 if (RT_SUCCESS(rc)) 83 rc = RTProcCreateEx(szExecPath, papszNewArgs, RTENV_DEFAULT, 94 return rc;
|
H A D | pathhost-generic.cpp | 56 int rc = RTStrValidateEncodingEx(pszNativePath, RTSTR_MAX, 0 /*fFlags*/); local 57 if (RT_SUCCESS(rc)) 62 return rc; 75 int rc = RTStrValidateEncodingEx(pszNativePath, RTSTR_MAX, 0 /*fFlags*/); local 76 if (RT_SUCCESS(rc)) 77 rc = RTStrCopy(pszPath, cbPath, pszNativePath); 79 return rc; 85 int rc = RTStrValidateEncodingEx(pszNativePath, RTSTR_MAX, 0 /*fFlags*/); local 86 if (RT_SUCCESS(rc)) 87 rc [all...] |
/vbox/src/VBox/Runtime/r0drv/darwin/ |
H A D | memuserkernel-r0drv-darwin.cpp | 45 int rc = copyin((const user_addr_t)R3PtrSrc, pvDst, cb); local 46 if (RT_LIKELY(rc == 0)) 55 int rc = copyout(pvSrc, R3PtrDst, cb); local 56 if (RT_LIKELY(rc == 0))
|
/vbox/src/VBox/Runtime/r0drv/freebsd/ |
H A D | memuserkernel-r0drv-freebsd.c | 39 int rc = copyin((const void *)R3PtrSrc, pvDst, cb); local 40 if (RT_LIKELY(rc == 0)) 48 int rc = copyout(pvSrc, (void *)R3PtrDst, cb); local 49 if (RT_LIKELY(rc == 0))
|
H A D | thread-r0drv-freebsd.c | 50 int rc; local 82 rc = tsleep((void *)RTThreadSleep, 86 switch (rc) 96 AssertMsgFailed(("%d\n", rc));
|
/vbox/src/VBox/Runtime/r0drv/linux/ |
H A D | memuserkernel-r0drv-linux.c | 115 int rc; local 128 : "=r" (rc), 138 return rc;
|
H A D | mpnotification-r0drv-linux.c | 175 int rc; local 181 rc = register_cpu_notifier(&g_NotifierBlock); 182 AssertMsgReturn(!rc, ("%d\n", rc), RTErrConvertFromErrno(rc));
|
/vbox/src/VBox/Runtime/r0drv/os2/ |
H A D | alloc-r0drv-os2.cpp | 51 APIRET rc = KernVMAlloc(cb + sizeof(RTMEMHDR), VMDHA_FIXED, &pv, (void **)-1, NULL); local 52 if (RT_UNLIKELY(rc != NO_ERROR)) 53 return RTErrConvertFromOS2(rc); 68 APIRET rc = KernVMFree(pHdr); local 69 Assert(!rc); NOREF(rc); 87 APIRET rc = KernVMAlloc(cb, VMDHA_FIXED | VMDHA_CONTIG, &pv, &PhysAddr, NULL); local 88 if (!rc)
|
H A D | memuserkernel-r0drv-os2.cpp | 39 int rc = KernCopyIn(pvDst, (void *)R3PtrSrc, cb); local 40 if (RT_LIKELY(rc == 0)) 48 int rc = KernCopyOut((void *)R3PtrDst, (void *)pvSrc, cb); local 49 if (RT_LIKELY(rc == 0))
|
/vbox/src/VBox/Runtime/r0drv/solaris/ |
H A D | memuserkernel-r0drv-solaris.c | 44 int rc; local 47 rc = ddi_copyin((const char *)R3PtrSrc, pvDst, cb, 0 /*flags*/); 48 if (RT_LIKELY(rc == 0)) 56 int rc; local 59 rc = ddi_copyout(pvSrc, (void *)R3PtrDst, cb, 0 /*flags*/); 60 if (RT_LIKELY(rc == 0)) 86 int rc = kcopy(pvSrc, pvDst, cb); local 87 if (RT_LIKELY(rc == 0)) 95 int rc = kcopy(pvSrc, pvDst, cb); local 96 if (RT_LIKELY(rc [all...] |
/vbox/src/VBox/Runtime/r3/darwin/ |
H A D | pathhost-darwin.cpp | 66 int rc = RTStrValidateEncodingEx(pszNativePath, RTSTR_MAX, 0 /*fFlags*/); local 67 if (RT_SUCCESS(rc)) 72 return rc; 88 int rc = RTStrValidateEncodingEx(pszNativePath, RTSTR_MAX, 0 /*fFlags*/); local 89 if (RT_SUCCESS(rc)) 90 rc = RTStrCopyEx(pszPath, cbPath, pszNativePath, RTSTR_MAX); 92 return rc; 101 int rc = RTStrValidateEncodingEx(pszNativePath, RTSTR_MAX, 0 /*fFlags*/); local 102 if (RT_SUCCESS(rc)) 103 rc [all...] |
H A D | systemmem-darwin.cpp | 54 int rc = sysctl(aiMib, RT_ELEMENTS(aiMib), &cbPhysMem, &cb, NULL, 0); local 55 if (rc == 0)
|
/vbox/src/VBox/Runtime/r3/ |
H A D | dir2.cpp | 65 int rc = RTDirOpen(&pDir, pszBuf); local 66 if (RT_FAILURE(rc)) 67 return rc; 68 while (RT_SUCCESS(rc = RTDirRead(pDir, pDirEntry, NULL))) 79 rc = VERR_FILENAME_TOO_LONG; 87 rc = RTPathQueryInfoEx(pszBuf, pObjInfo, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK); 88 if (RT_SUCCESS(rc) && RTFS_IS_DIRECTORY(pObjInfo->Attr.fMode)) 90 else if (RT_SUCCESS(rc) && RTFS_IS_FILE(pObjInfo->Attr.fMode)) 92 else if (RT_SUCCESS(rc) && RTFS_IS_SYMLINK(pObjInfo->Attr.fMode)) 100 rc 144 int rc = RTPathAbs(pszPath, szAbsPath, sizeof(szAbsPath)); local [all...] |
/vbox/src/VBox/Runtime/r3/freebsd/ |
H A D | systemmem-freebsd.cpp | 45 int rc = VINF_SUCCESS; local 64 int rc = VINF_SUCCESS; local 75 rc = RTErrConvertFromErrno(errno); 77 if ( RT_SUCCESS(rc) 79 rc = RTErrConvertFromErrno(errno); 81 if ( RT_SUCCESS(rc) 83 rc = RTErrConvertFromErrno(errno); 85 if ( RT_SUCCESS(rc) 87 rc = RTErrConvertFromErrno(errno); 89 if ( RT_SUCCESS(rc) [all...] |
/vbox/src/VBox/Runtime/r3/linux/ |
H A D | RTProcIsRunningByName-linux.cpp | 56 int rc = RTDirOpen(&pDir, "/proc"); local 57 AssertMsgRCReturn(rc, ("RTDirOpen on /proc failed: rc=%Rrc\n", rc), false); 58 if (RT_SUCCESS(rc)) 83 rc = VINF_SUCCESS; 89 rc = RTStrmOpen(szName, "r", &pStream); 90 if (RT_SUCCESS(rc)) 92 rc = RTStrmGetLine(pStream, szExe, sizeof(szExe)); 96 if (RT_SUCCESS(rc)) [all...] |
H A D | systemmem-linux.cpp | 52 int rc = sysinfo(&info); local 53 if (rc == 0) 69 int rc = VERR_NOT_FOUND; local 78 rc = RTStrToUInt64Ex(RTStrStripL(&sz[sizeof("MemTotal:")]), NULL, 0, &cbTotal); 80 rc = RTStrToUInt64Ex(RTStrStripL(&sz[sizeof("MemFree:")]), NULL, 0, &cbFree); 82 rc = RTStrToUInt64Ex(RTStrStripL(&sz[sizeof("Buffers:")]), NULL, 0, &cbBuffers); 84 rc = RTStrToUInt64Ex(RTStrStripL(&sz[sizeof("Cached:")]), NULL, 0, &cbCached); 85 if (RT_FAILURE(rc)) 89 if (RT_SUCCESS(rc)) 101 int rc local [all...] |
H A D | time-linux.cpp | 48 int rc = syscall(__NR_clock_gettime, id, ts); local 49 if (rc >= 0) 50 return rc; 84 int rc; local 89 rc = clock_gettime(CLOCK_MONOTONIC, ts); 90 if (!rc) 96 rc = sys_clock_gettime(CLOCK_MONOTONIC, ts); 97 if (!rc)
|