/vbox/src/VBox/Additions/common/VBoxGuestLib/ |
H A D | VBoxGuestR3LibLog.cpp | 41 * @param cch The number of chars (bytes) to log. 47 VBGLR3DECL(int) VbglR3WriteLog(const char *pch, size_t cch) argument 53 if (!cch) 62 void *pvTmp = RTMemDup(pch, cch); 65 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_LOG(cch), pvTmp, cch); 73 return vbglR3DoIOCtl(VBOXGUEST_IOCTL_LOG(cch), pvTmp, cch); 82 for (size_t off = 0; off < cch && RT_SUCCESS(rc); off += STEP) 84 size_t cbStep = RT_MIN(cch [all...] |
/vbox/src/VBox/Runtime/r3/posix/ |
H A D | RTSystemQueryOSInfo-posix.cpp | 69 size_t cch = strlen(pszSrc); local 70 if (cch < cchInfo) 72 memcpy(pszInfo, pszSrc, cch + 1);
|
H A D | ldrNative-posix.cpp | 59 size_t cch = strlen(pszFilename); local 60 char *psz = (char *)alloca(cch + sizeof(s_szSuff)); 63 memcpy(psz, pszFilename, cch); 64 memcpy(psz + cch, s_szSuff, sizeof(s_szSuff)); 95 size_t cch = strlen(pszSymbol); local 96 char *psz = (char *)alloca(cch + 2); 98 memcpy(psz + 1, pszSymbol, cch + 1);
|
/vbox/src/VBox/Runtime/r3/linux/ |
H A D | RTThreadGetNativeState-linux.cpp | 59 ssize_t cch = read(fd, szName, sizeof(szName) - 1); local 61 if (cch > 0) 63 szName[cch] = '\0';
|
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstEnv.cpp | 65 size_t cch; local 66 CHECK_RC(RTEnvGetEx(RTENV_DEFAULT, k_pszPathVar, NULL, 0, &cch), VINF_SUCCESS); 67 CHECK(cch < sizeof(szBuf)); 68 CHECK_RC(RTEnvGetEx(RTENV_DEFAULT, k_pszPathVar, szBuf, sizeof(szBuf), &cch), VINF_SUCCESS); 70 CHECK_RC(RTEnvGetEx(RTENV_DEFAULT, k_pszPathVar, szBuf, 1, &cch), VERR_BUFFER_OVERFLOW); 80 CHECK_RC(RTEnvGetEx(Env, k_pszPathVar, NULL, 0, &cch), VINF_SUCCESS); 81 CHECK(cch < sizeof(szBuf)); 82 CHECK_RC(RTEnvGetEx(Env, k_pszPathVar, szBuf, sizeof(szBuf), &cch), VINF_SUCCESS); 84 CHECK_RC(RTEnvGetEx(Env, k_pszPathVar, szBuf, 1, &cch), VERR_BUFFER_OVERFLOW); 91 CHECK_RC(RTEnvGetEx(RTENV_DEFAULT, "IPRTMyNewVar", szBuf, sizeof(szBuf), &cch), VINF_SUCCES [all...] |
H A D | tstRTMp-1.cpp | 227 size_t cch = strlen(szBuf); local 228 rc = RTMpGetDescription(idCpuOnline, &szBuf[0], cch); 232 rc = RTMpGetDescription(idCpuOnline, &szBuf[0], cch + 1);
|
/vbox/src/VBox/Disassembler/ |
H A D | Disasm.cpp | 104 size_t cch = DISFormatYasmEx(pDis, pszOutput, cbOutput, local 108 if (cch + 2 <= cbOutput) 110 pszOutput[cch++] = '\n'; 111 pszOutput[cch] = '\0';
|
/vbox/src/VBox/Runtime/VBox/ |
H A D | RTAssertShouldPanic-vbox.cpp | 112 size_t cch = RTStrPrintf(szCmd, sizeof(szCmd), "%s -p %d ", pszGdb, RTProcSelf()); local 113 if (cch < sizeof(szCmd)) 115 char *pszExecName = &szCmd[cch]; 116 if (!RTProcGetExecutablePath(pszExecName, sizeof(szCmd) - cch))
|
/vbox/src/VBox/Runtime/common/crypto/ |
H A D | iprt-openssl.cpp | 56 DECLHIDDEN(int) rtCrOpenSslErrInfoCallback(const char *pach, size_t cch, void *pvUser) argument 61 RTStrCopyEx(pErrInfo->pszMsg + cchAlready, pErrInfo->cbMsg - cchAlready, pach, cch);
|
/vbox/src/VBox/Runtime/common/path/ |
H A D | RTPathTraverseList.cpp | 67 size_t const cch = pszEnd - psz; local 68 int rc = pfnCallback(psz, cch, pvUser1, pvUser2);
|
/vbox/src/VBox/Runtime/common/string/ |
H A D | strhash1.cpp | 67 size_t cch = va_arg(va, size_t); local 68 uHash += sdbmIncN(psz, cch, uHash);
|
H A D | strprintf.cpp | 46 size_t cch; member in struct:STRBUFARG 70 cbChars = RT_MIN(pArg->cch, cbChars); 74 pArg->cch -= cbChars; 94 Arg.cch = cchBuffer - 1;
|
H A D | straprintf.cpp | 47 size_t cch; member in struct:STRALLOCARG 84 if (cbChars <= pArg->cch) 89 pArg->cch -= cbChars; 118 pArg->cch += cbAdded; 123 pArg->cch -= cbChars; 151 Arg.cch = sizeof(szBuf) - 1;
|
H A D | strversion.cpp | 114 size_t cch; member in struct:__anon16587 128 if ( cchBlock == s_aTerms[i].cch
|
/vbox/src/VBox/Runtime/r3/win/ |
H A D | utf8-win.cpp | 118 size_t cch = strlen(pszString); local 119 if (cch <= 0)
|
/vbox/src/VBox/VMM/testcase/ |
H A D | tstGlobalConfig.cpp | 67 size_t cch = strlen(argv[1]); local 68 if (cch < 2 || argv[1][0] != '/') 73 if (cch >= sizeof(Req.szName)) 78 memcpy(&Req.szName[0], argv[1], cch + 1);
|
/vbox/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/VBoxOemHookStatusCodeLib/ |
H A D | VBoxOemHookStatusCodeLib.c | 165 UINTN cch; local 167 cch = AsciiBSPrint(szBuf, sizeof(szBuf), pszFormat, bs); 168 if (cch >= sizeof(szBuf)) 169 cch = sizeof(szBuf) - 1; 170 while ( cch > 0 171 && ( szBuf[cch - 1] == '\n' 172 || szBuf[cch - 1] == '\r')) 173 cch--; 174 szBuf[cch] = '\0';
|
/vbox/src/VBox/Main/glue/xpcom/ |
H A D | helpers.cpp | 80 * @param cch length of the source string in UCS2 characters 83 BSTR SysAllocStringLen(const OLECHAR *pch, unsigned int cch) argument 90 bufferSize = cch * sizeof(OLECHAR); 107 newString[cch] = L'\0'; 148 * @param cch length of the source string in UCS2 characters 151 int SysReAllocStringLen(BSTR *pbstr, const OLECHAR *psz, unsigned int cch) 157 newByteLen = cch * sizeof(OLECHAR); 163 *pbstr[cch] = 0; 168 *pbstr = SysAllocStringLen(psz, cch);
|
/vbox/src/VBox/Runtime/r0drv/os2/ |
H A D | assert-r0drv-os2.cpp | 86 size_t cch = g_cchRTAssertMsg; local 87 char *pch = &g_szRTAssertMsg[cch]; 88 cch += RTStrFormatV(rtR0Os2AssertOutputCB, &pch, NULL, NULL, pszFormat, va); 89 g_cchRTAssertMsg = cch;
|
/vbox/src/VBox/Runtime/r3/ |
H A D | path.cpp | 71 size_t cch = g_cchrtProcDir; local 72 if (cch < cchPath) 74 memcpy(pszPath, g_szrtProcExePath, cch); 75 pszPath[cch] = '\0'; 79 AssertMsgFailed(("Buffer too small (%zu <= %zu)\n", cchPath, cch));
|
H A D | init.cpp | 233 size_t cch = strlen(pszProgramPath); local 234 Assert(cch > 1); 235 AssertMsgReturn(cch < sizeof(g_szrtProcExePath) - 32, ("%zu\n", cch), VERR_BUFFER_OVERFLOW); 236 memcpy(g_szrtProcExePath, pszProgramPath, cch + 1);
|
/vbox/src/VBox/HostDrivers/VBoxNetFlt/win/tools/ |
H A D | VBoxNetFltInstall.cpp | 51 DWORD cch = GetModuleFileNameW(GetModuleHandle(NULL), &wsz[0], sizeof(wsz) / sizeof(wsz[0])); local 52 if(cch > 0) 54 while(cch > 0 && wsz[cch - 1] != '/' && wsz[cch - 1] != '\\' && wsz[cch - 1] != ':') 55 cch--; 57 while(cch < sizeof(wsz) / sizeof(wsz[0])) 59 wsz[cch] = pwszFilePart[i++]; 60 if(!wsz[cch]) [all...] |
H A D | VBoxNetLwfInstall.cpp | 49 DWORD cch = GetModuleFileNameW(GetModuleHandle(NULL), &wsz[0], sizeof(wsz) / sizeof(wsz[0])); local 50 if(cch > 0) 52 while(cch > 0 && wsz[cch - 1] != '/' && wsz[cch - 1] != '\\' && wsz[cch - 1] != ':') 53 cch--; 55 while(cch < sizeof(wsz) / sizeof(wsz[0])) 57 wsz[cch] = pwszFilePart[i++]; 58 if(!wsz[cch]) [all...] |
/vbox/src/VBox/Runtime/common/misc/ |
H A D | message.cpp | 76 ssize_t cch = RTStrAPrintfV(&pszMsg, pszFormat, va); local 77 if (cch >= 0)
|
/vbox/src/VBox/Runtime/generic/ |
H A D | RTPathAbs-generic.cpp | 184 size_t cch = fsCleanPath(pszAbsPath); local 187 if ((uintptr_t)&pszAbsPath[cch] > (uintptr_t)pszTop && pszAbsPath[cch - 1] == RTPATH_SLASH) 188 pszAbsPath[cch - 1] = '\0'; 191 && (uintptr_t)&pszAbsPath[cch - 1] > (uintptr_t)pszTop && pszAbsPath[cch - 1] != RTPATH_SLASH) 193 if (cch + 1 < cchAbsPath) 195 pszAbsPath[cch++] = RTPATH_SLASH; 196 pszAbsPath[cch] = '\0';
|