Searched defs:rc (Results 276 - 300 of 1806) sorted by relevance

<<11121314151617181920>>

/vbox/src/VBox/Runtime/common/path/
H A DRTPathTraverseList.cpp68 int rc = pfnCallback(psz, cch, pvUser1, pvUser2); local
69 if (rc != VERR_TRY_AGAIN)
70 return rc;
H A Dcomparepaths.cpp58 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 Davl_Destroy.cpp.h47 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 Dvfsiosmisc.cpp56 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 DRTDirCreateUniqueNumbered-generic.cpp56 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 DRTFileMove-generic.cpp57 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 DRTFileReadAllByHandleEx-generic.cpp48 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 DRTMpOnPair-generic.cpp83 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 DRTProcDaemonize-generic.cpp72 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 Dpathhost-generic.cpp56 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 Dmemuserkernel-r0drv-darwin.cpp45 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 Dmemuserkernel-r0drv-freebsd.c39 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 Dthread-r0drv-freebsd.c50 int rc; local
82 rc = tsleep((void *)RTThreadSleep,
86 switch (rc)
96 AssertMsgFailed(("%d\n", rc));
/vbox/src/VBox/Runtime/r0drv/linux/
H A Dmemuserkernel-r0drv-linux.c115 int rc; local
128 : "=r" (rc),
138 return rc;
H A Dmpnotification-r0drv-linux.c175 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 Dalloc-r0drv-os2.cpp51 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 Dmemuserkernel-r0drv-os2.cpp39 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 Dmemuserkernel-r0drv-solaris.c44 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 Dpathhost-darwin.cpp66 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 Dsystemmem-darwin.cpp54 int rc = sysctl(aiMib, RT_ELEMENTS(aiMib), &cbPhysMem, &cb, NULL, 0); local
55 if (rc == 0)
/vbox/src/VBox/Runtime/r3/
H A Ddir2.cpp65 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 Dsystemmem-freebsd.cpp45 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 DRTProcIsRunningByName-linux.cpp56 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 Dsystemmem-linux.cpp52 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 Dtime-linux.cpp48 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)

Completed in 70 milliseconds

<<11121314151617181920>>