Searched defs:pszBuf (Results 26 - 50 of 60) sorted by relevance

123

/vbox/src/VBox/Runtime/testcase/
H A DtstLdr-3.cpp128 char *pszBuf, size_t cchBuf, RTINTPTR *poff,
140 RTStrCopy(pszBuf, cchBuf, NearSym.aSyms[0].szName);
127 MyGetSymbol(PCDISCPUSTATE pCpu, uint32_t u32Sel, RTUINTPTR uAddress, char *pszBuf, size_t cchBuf, RTINTPTR *poff, void *pvUser) argument
/vbox/src/VBox/HostDrivers/VBoxUSB/
H A DUSBFilter.cpp1524 * @param pszBuf Where to store the string.
1527 USBLIB_DECL(int) USBFilterQueryString(PUSBFILTER pFilter, USBFILTERIDX enmFieldIdx, char *pszBuf, size_t cchBuf) argument
1538 memcpy(pszBuf, psz, cch + 1);
1544 memcpy(pszBuf, psz, cchBuf - 1);
1545 pszBuf[cchBuf - 1] = '\0';
/vbox/src/VBox/Disassembler/
H A DDisasmFormatYasm.cpp279 * of pszBuf will be truncated.
281 * @param pszBuf The output buffer.
287 DISDECL(size_t) DISFormatYasmEx(PCDISSTATE pDis, char *pszBuf, size_t cchBuf, uint32_t fFlags, argument
295 AssertPtrNull(pszBuf);
296 Assert(pszBuf || !cchBuf);
309 char *pszDst = pszBuf;
1288 * of pszBuf will be truncated.
1290 * @param pszBuf The output buffer.
1293 DISDECL(size_t) DISFormatYasm(PCDISSTATE pDis, char *pszBuf, size_t cchBuf) argument
1295 return DISFormatYasmEx(pDis, pszBuf, cchBu
[all...]
/vbox/src/VBox/VMM/VMMR3/
H A DDBGFDisas.cpp328 char *pszBuf, size_t cchBuf, RTINTPTR *poff, void *pvUser)
388 memcpy(pszBuf, Sym.szName, cchName);
389 pszBuf[cchName] = '\0';
327 dbgfR3DisasGetSymbol(PCDISCPUSTATE pCpu, uint32_t u32Sel, RTUINTPTR uAddress, char *pszBuf, size_t cchBuf, RTINTPTR *poff, void *pvUser) argument
H A DFTM.cpp234 * @param pszBuf The output buffer.
238 static int ftmR3TcpReadLine(PVM pVM, char *pszBuf, size_t cchBuf) argument
240 char *pszStart = pszBuf;
244 *pszBuf = '\0';
264 *pszBuf++ = ch;
265 *pszBuf = '\0';
/vbox/src/VBox/Runtime/common/asn1/
H A Dasn1-cursor.cpp140 char *pszBuf = pErrInfo->pszMsg; local
142 if (pszBuf && cbBuf > 32)
144 size_t cbMove = strlen(pszBuf) + 1;
152 memmove(pszBuf + 2, pszBuf, cbMove);
153 pszBuf[0] = ':';
154 pszBuf[1] = ' ';
168 memmove(pszBuf + cchErrorTag + !fFirst, pszBuf, cbMove);
169 memcpy(pszBuf, pCurso
[all...]
/vbox/src/VBox/VMM/testcase/
H A DtstAnimate.cpp207 char *pszBuf = (char *)RTMemAllocZ(cb + 1); local
208 if (pszBuf)
210 rc = RTFileRead(File, pszBuf, cb, NULL);
213 pszBuf[cb] = '\0';
218 char *psz = pszBuf;
262 RTMemFree(pszBuf);
/vbox/src/VBox/Debugger/
H A DDBGCCmdHlp.cpp258 static DECLCALLBACK(size_t) dbgcHlpStrPrintfV(PDBGCCMDHLP pCmdHlp, char *pszBuf, size_t cbBuf, argument
262 return RTStrPrintfExV(dbgcStringFormatter, pDbgc, pszBuf, cbBuf, pszFormat, va);
269 static DECLCALLBACK(size_t) dbgcHlpStrPrintf(PDBGCCMDHLP pCmdHlp, char *pszBuf, size_t cbBuf, const char *pszFormat, ...) argument
274 size_t cch = RTStrPrintfExV(dbgcStringFormatter, pDbgc, pszBuf, cbBuf, pszFormat, va);
H A DDBGPlugInDarwin.cpp137 char *pszBuf, size_t cbBuf, size_t *pcbActual)
248 memcpy(pszBuf, &pchMsgBuf[MsgBuf.msg_bufr], cbToCopy);
249 pszBuf[cbToCopy] = '\0';
256 memcpy(pszBuf, &pchMsgBuf[MsgBuf.msg_bufr], cbBuf - 1);
257 pszBuf[cbBuf - 1] = '\0';
270 memcpy(pszBuf, &pchMsgBuf[MsgBuf.msg_bufr], cbFirst);
271 memcpy(&pszBuf[cbFirst], pchMsgBuf, cbSecond);
273 pszBuf[offDst++] = '\0';
281 memcpy(pszBuf, &pchMsgBuf[MsgBuf.msg_bufr], cbFirst);
282 memcpy(&pszBuf[cbFirs
136 dbgDiggerDarwinIDmsg_QueryKernelLog(PDBGFOSIDMESG pThis, PUVM pUVM, uint32_t fFlags, uint32_t cMessages, char *pszBuf, size_t cbBuf, size_t *pcbActual) argument
[all...]
H A DDBGPlugInLinux.cpp168 char *pszBuf, size_t cbBuf, size_t *pcbActual)
357 memcpy(&pszBuf[offDst], pHdr + 1, cchText);
358 pszBuf[offDst + cchText] = '\n';
361 memcpy(&pszBuf[offDst], pHdr + 1, cbBuf - offDst);
389 pszBuf[offDst - 1] = '\0';
390 RTStrPurgeEncoding(pszBuf);
396 pszBuf[cbBuf - 1] = '\0';
397 RTStrPurgeEncoding(pszBuf);
167 dbgDiggerLinuxIDmsg_QueryKernelLog(PDBGFOSIDMESG pThis, PUVM pUVM, uint32_t fFlags, uint32_t cMessages, char *pszBuf, size_t cbBuf, size_t *pcbActual) argument
H A DDBGCCommands.cpp1039 char *pszBuf = (char *)RTMemAlloc(cbBuf); local
1040 if (pszBuf)
1042 rc = pDmesg->pfnQueryKernelLog(pDmesg, pUVM, 0 /*fFlags*/, cMessages, pszBuf, cbBuf, &cbActual);
1047 RTMemFree(pszBuf);
1049 pszBuf = (char *)RTMemAlloc(cbBuf);
1050 if (RT_UNLIKELY(!pszBuf))
1055 rc = pDmesg->pfnQueryKernelLog(pDmesg, pUVM, 0 /*fFlags*/, cMessages, pszBuf, cbBuf, &cbActual);
1058 rc = DBGCCmdHlpPrintf(pCmdHlp, "%s\n", pszBuf);
1059 else if (rc == VERR_BUFFER_OVERFLOW && pszBuf)
1060 rc = DBGCCmdHlpPrintf(pCmdHlp, "%s\nWarning: incomplete\n", pszBuf);
[all...]
/vbox/src/VBox/Runtime/common/crypto/
H A Dx509-core.cpp742 RTDECL(int) RTCrX509Name_FormatAsString(PCRTCRX509NAME pThis, char *pszBuf, size_t cbBuf, size_t *pcbActual) argument
779 pszBuf[off] = ',';
780 pszBuf[off + 1] = ' ';
789 memcpy(&pszBuf[off], g_aRdnMap[iName].pszShortNm, g_aRdnMap[iName].cchShortNm);
790 pszBuf[off + g_aRdnMap[iName].cchShortNm] = '=';
804 memcpy(&pszBuf[off], pszUtf8, cchUtf8);
814 pszBuf[off] = '\0';
/vbox/src/VBox/Additions/common/VBoxGuest/
H A DVBoxGuest-linux.c970 static int vboxguestLinuxParamLogGrpGet(char *pszBuf, struct kernel_param *pParam) argument
973 *pszBuf = '\0';
975 RTLogGetGroupSettings(pLogger, pszBuf, _4K);
976 return strlen(pszBuf);
995 static int vboxguestLinuxParamLogFlagsGet(char *pszBuf, struct kernel_param *pParam) argument
998 *pszBuf = '\0';
1000 RTLogGetFlags(pLogger, pszBuf, _4K);
1001 return strlen(pszBuf);
1020 static int vboxguestLinuxParamLogDstGet(char *pszBuf, struct kernel_param *pParam) argument
1023 *pszBuf
1049 vboxguestLinuxParamR3LogToHostGet(char *pszBuf, struct kernel_param *pParam) argument
[all...]
/vbox/src/VBox/Additions/common/VBoxService/
H A DVBoxService.cpp468 int VBoxServiceArgString(int argc, char **argv, const char *psz, int *pi, char *pszBuf, size_t cbBuf) argument
470 AssertPtrReturn(pszBuf, VERR_INVALID_POINTER);
482 if (!RTStrPrintf(pszBuf, cbBuf, "%s", psz))
/vbox/src/VBox/Additions/common/pam/
H A Dpam_vbox.cpp99 * @param pszBuf Buffer to write to the log (NULL-terminated)
101 static void pam_vbox_writesyslog(char *pszBuf) argument
105 syslog(LOG_ERR, "%s", pszBuf);
108 syslog(LOG_ERR, "pam_vbox: %s\n", pszBuf);
/vbox/src/VBox/Devices/BiosCommonCode/
H A DMakeAlternativeSource.cpp862 char *pszBuf, size_t cbBuf, size_t cchUsed)
907 memmove(pszBuf + 2, pszBuf, cchUsed + 1); /* include terminating \0 */
911 pszBuf[0] = ';';
912 pszBuf[1] = ' ';
1374 * @param pszBuf The output buffer.
1377 static bool mapParseWord(char **ppszCursor, char *pszBuf, size_t cbBuf) argument
1393 memcpy(pszBuf, pszStart, cchWord);
1394 pszBuf[cchWord] = '\0';
861 disHandleYasmDifferences(PDISCPUSTATE pCpuState, uint32_t uFlatAddr, uint32_t cbInstr, char *pszBuf, size_t cbBuf, size_t cchUsed) argument
/vbox/src/VBox/Main/src-client/
H A DConsoleImplTeleporter.cpp183 * @param pszBuf The output buffer.
187 static int teleporterTcpReadLine(TeleporterState *pState, char *pszBuf, size_t cchBuf) argument
189 char *pszStart = pszBuf;
193 *pszBuf = '\0';
213 *pszBuf++ = ch;
214 *pszBuf = '\0';
H A DMachineDebuggerImpl.cpp481 char *pszBuf = (char *)RTMemTmpAlloc(cbBuf); local
482 AssertReturn(pszBuf, E_OUTOFMEMORY);
484 int rc = pfnLogGetStr(pLogger, pszBuf, cbBuf);
489 Bstr bstrRet(pszBuf);
497 RTMemTmpFree(pszBuf);
500 RTMemTmpFree(pszBuf);
832 char *pszBuf; member in struct:MACHINEDEBUGGERINOFHLP
863 void *pvBufNew = RTMemRealloc(pHlp->pszBuf, cbBufNew);
867 RTMemFree(pHlp->pszBuf);
868 pHlp->pszBuf
[all...]
/vbox/src/VBox/HostServices/SharedOpenGL/render/
H A Drenderspu_wgl.c294 static LPCSTR renderspuRegMultiSzNextVal(LPCSTR pszBuf) argument
296 pszBuf += strlen(pszBuf) + sizeof (pszBuf[0]);
298 if (pszBuf[0] == '\0')
301 return pszBuf;
304 static LPCSTR renderspuRegMultiSzCurVal(LPCSTR pszBuf) argument
306 if (pszBuf[0] == '\0')
309 return pszBuf;
/vbox/src/VBox/Runtime/common/ldr/
H A DldrkStuff.cpp502 char *pszBuf = (char *)alloca(64); local
503 int rc = kLdrModGetImport(pMod, pArgs->pvBits, iImport, pszBuf, 64);
506 pszModule = pszBuf;
/vbox/src/VBox/Runtime/common/log/
H A Dlog.cpp651 char * const pszBuf = &pLogger->pInt->pszRingBuf[sizeof(RTLOG_RINGBUF_EYE_CATCHER)]; local
653 size_t offCur = pLogger->pInt->pchRingBufCur - pszBuf;
672 pszBuf[offCur] = '\0';
675 pszFirst = &pszBuf[offCur + 1];
677 pszSecond = pszBuf;
685 pszFirst = &pszBuf[offCur - cchFirst];
694 pszFirst = &pszBuf[cchBuf - cchFirst];
695 pszSecond = pszBuf;
1923 * @param pszBuf The output buffer.
1927 RTDECL(int) RTLogGetGroupSettings(PRTLOGGER pLogger, char *pszBuf, size_
[all...]
/vbox/include/iprt/
H A Dstring.h1765 * @param pszBuf The output buffer.
1773 RTDECL(ssize_t) RTStrFormatU8(char *pszBuf, size_t cbBuf, uint8_t u8Value, unsigned int uiBase,
1780 * @param pszBuf The output buffer.
1788 RTDECL(ssize_t) RTStrFormatU16(char *pszBuf, size_t cbBuf, uint16_t u16Value, unsigned int uiBase,
1795 * @param pszBuf The output buffer.
1803 RTDECL(ssize_t) RTStrFormatU32(char *pszBuf, size_t cbBuf, uint32_t u32Value, unsigned int uiBase,
1810 * @param pszBuf The output buffer.
1818 RTDECL(ssize_t) RTStrFormatU64(char *pszBuf, size_t cbBuf, uint64_t u64Value, unsigned int uiBase,
1825 * @param pszBuf The output buffer.
1833 RTDECL(ssize_t) RTStrFormatU128(char *pszBuf, size_
1427 AssertReturn(CodePoint < 0x100, NULL); *psz++ = (unsigned char)CodePoint; return psz; } DECLINLINE(char *) RTLatin1NextCp(const char *psz) { psz++; return (char *)psz; } DECLINLINE(char *) RTLatin1PrevCp(const char *psz) { psz--; return (char *)psz; } typedef DECLCALLBACK(size_t) FNRTSTROUTPUT(void *pvArg, const char *pachChars, size_t cbChars); typedef FNRTSTROUTPUT *PFNRTSTROUTPUT; typedef DECLCALLBACK(size_t) FNSTRFORMAT(void *pvArg, PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, const char **ppszFormat, va_list *pArgs, int cchWidth, int cchPrecision, unsigned fFlags, char chArgSize); typedef FNSTRFORMAT *PFNSTRFORMAT; RTDECL(size_t) RTStrFormatV(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, PFNSTRFORMAT pfnFormat, void *pvArgFormat, const char *pszFormat, va_list InArgs); RTDECL(size_t) RTStrFormat(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, PFNSTRFORMAT pfnFormat, void *pvArgFormat, const char *pszFormat, ...); RTDECL(int) RTStrFormatNumber(char *psz, uint64_t u64Value, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, unsigned int fFlags); RTDECL(ssize_t) RTStrFormatU8(char *pszBuf, size_t cbBuf, uint8_t u8Value, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, uint32_t fFlags); RTDECL(ssize_t) RTStrFormatU16(char *pszBuf, size_t cbBuf, uint16_t u16Value, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, uint32_t fFlags); RTDECL(ssize_t) RTStrFormatU32(char *pszBuf, size_t cbBuf, uint32_t u32Value, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, uint32_t fFlags); RTDECL(ssize_t) RTStrFormatU64(char *pszBuf, size_t cbBuf, uint64_t u64Value, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, uint32_t fFlags); RTDECL(ssize_t) RTStrFormatU128(char *pszBuf, size_t cbBuf, PCRTUINT128U pu128Value, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, uint32_t fFlags); RTDECL(ssize_t) RTStrFormatR80(char *pszBuf, size_t cbBuf, PCRTFLOAT80U pr80Value, signed int cchWidth, signed int cchPrecision, uint32_t fFlags); RTDECL(ssize_t) RTStrFormatR80u2(char *pszBuf, size_t cbBuf, PCRTFLOAT80U2 pr80Value, signed int cchWidth, signed int cchPrecision, uint32_t fFlags); typedef DECLCALLBACK(size_t) FNRTSTRFORMATTYPE(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, const char *pszType, void const *pvValue, int cchWidth, int cchPrecision, unsigned fFlags, void *pvUser); typedef FNRTSTRFORMATTYPE *PFNRTSTRFORMATTYPE; RTDECL(int) RTStrFormatTypeRegister(const char *pszType, PFNRTSTRFORMATTYPE pfnHandler, void *pvUser); RTDECL(int) RTStrFormatTypeDeregister(const char *pszType); RTDECL(int) RTStrFormatTypeSetUser(const char *pszType, void *pvUser); RTDECL(size_t) RTStrPrintfV(char *pszBuffer, size_t cchBuffer, const char *pszFormat, va_list args); RTDECL(size_t) RTStrPrintf(char *pszBuffer, size_t cchBuffer, const char *pszFormat, ...); RTDECL(size_t) RTStrPrintfExV(PFNSTRFORMAT pfnFormat, void *pvArg, char *pszBuffer, size_t cchBuffer, const char *pszFormat, va_list args); RTDECL(size_t) RTStrPrintfEx(PFNSTRFORMAT pfnFormat, void *pvArg, char *pszBuffer, size_t cchBuffer, const char *pszFormat, ...); RTDECL(int) RTStrAPrintfVTag(char **ppszBuffer, const char *pszFormat, va_list args, const char *pszTag); DECLINLINE(int) RTStrAPrintf(char **ppszBuffer, const char *pszFormat, ...) { int cbRet; va_list va; va_start(va, pszFormat); cbRet = RTStrAPrintfVTag(ppszBuffer, pszFormat, va, RTSTR_TAG); va_end(va); return cbRet; } DECLINLINE(int) RTStrAPrintfTag(char **ppszBuffer, const char *pszTag, const char *pszFormat, ...) { int cbRet; va_list va; va_start(va, pszFormat); cbRet = RTStrAPrintfVTag(ppszBuffer, pszFormat, va, pszTag); va_end(va); return cbRet; } RTDECL(char *) RTStrAPrintf2VTag(const char *pszFormat, va_list args, const char *pszTag); DECLINLINE(char *) RTStrAPrintf2(const char *pszFormat, ...) { char *pszRet; va_list va; va_start(va, pszFormat); pszRet = RTStrAPrintf2VTag(pszFormat, va, RTSTR_TAG); va_end(va); return pszRet; } DECLINLINE(char *) RTStrAPrintf2Tag(const char *pszTag, const char *pszFormat, ...) { char *pszRet; va_list va; va_start(va, pszFormat); pszRet = RTStrAPrintf2VTag(pszFormat, va, pszTag); va_end(va); return pszRet; } RTDECL(char *) RTStrStrip(char *psz); RTDECL(char *) RTStrStripL(const char *psz); RTDECL(char *) RTStrStripR(char *psz); RTDECL(int) RTStrCopy(char *pszDst, size_t cbDst, const char *pszSrc); RTDECL(int) RTStrCopyEx(char *pszDst, size_t cbDst, const char *pszSrc, size_t cchSrcMax); RTDECL(int) RTStrCopyP(char **ppszDst, size_t *pcbDst, const char *pszSrc); RTDECL(int) RTStrCopyPEx(char **ppszDst, size_t *pcbDst, const char *pszSrc, size_t cchSrcMax); RTDECL(int) RTStrCat(char *pszDst, size_t cbDst, const char *pszSrc); RTDECL(int) RTStrCatEx(char *pszDst, size_t cbDst, const char *pszSrc, size_t cchSrcMax); RTDECL(int) RTStrCatP(char **ppszDst, size_t *pcbDst, const char *pszSrc); RTDECL(int) RTStrCatPEx(char **ppszDst, size_t *pcbDst, const char *pszSrc, size_t cchSrcMax); RTDECL(int) RTStrCmp(const char *psz1, const char *psz2); RTDECL(int) RTStrNCmp(const char *psz1, const char *psz2, size_t cchMax); RTDECL(int) RTStrICmp(const char *psz1, const char *psz2); RTDECL(int) RTStrNICmp(const char *psz1, const char *psz2, size_t cchMax); RTDECL(char *) RTStrStr(const char *pszHaystack, const char *pszNeedle); RTDECL(char *) RTStrIStr(const char *pszHaystack, const char *pszNeedle); RTDECL(char *) RTStrToLower(char *psz); RTDECL(char *) RTStrToUpper(char *psz); RTDECL(bool) RTStrIsCaseFoldable(const char *psz); RTDECL(bool) RTStrIsUpperCased(const char *psz); RTDECL(bool) RTStrIsLowerCased(const char *psz); RTDECL(size_t) RTStrNLen(const char *pszString, size_t cchMax); RTDECL(int) RTStrNLenEx(const char *pszString, size_t cchMax, size_t *pcch); RT_C_DECLS_END DECLINLINE(char const *) RTStrEnd(char const *pszString, size_t cchMax) { while (cchMax > RTSTR_MEMCHR_MAX) argument
[all...]
/vbox/src/bldprogs/
H A Dscm.cpp1231 * @param pszBuf Path buffer containing the directory path on
1242 static int scmProcessDirTreeRecursion(char *pszBuf, size_t cchDir, PRTDIRENTRY pEntry, argument
1246 Assert(cchDir > 1 && pszBuf[cchDir - 1] == '.');
1262 if (!ScmSvnIsDirInWorkingCopy(pszBuf))
1270 rc = RTDirOpenFiltered(&pDir, pszBuf, RTDIRFILTER_NONE, 0);
1273 RTMsgError("Failed to enumerate directory '%s': %Rrc", pszBuf, rc);
1303 memcpy(&pszBuf[cchDir - 1], pEntry->szName, pEntry->cbName + 1);
1308 enmType = scmFigureUnknownType(pszBuf);
1312 rc = scmProcessFile(pszBuf, pEntry->szName, pEntry->cbName, pSettingsStack);
1321 memcpy(&pszBuf[cchDi
[all...]
/vbox/src/VBox/Debugger/testcase/
H A DtstDBGCStubs.cpp189 VMMR3DECL(int) DBGFR3MemReadString(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, char *pszBuf, size_t cchBuf) argument
258 VMMR3DECL(int) DBGFR3RegPrintf(PUVM pUVM, VMCPUID idCpu, char *pszBuf, size_t cbBuf, const char *pszFormat, ...) argument
262 VMMDECL(ssize_t) DBGFR3RegFormatValue(char *pszBuf, size_t cbBuf, PCDBGFREGVAL pValue, DBGFREGVALTYPE enmType, bool fSpecial) argument
/vbox/src/VBox/Main/src-server/linux/
H A DUSBGetDevices.cpp1203 * @param pszBuf Pointer to the string buffer.
1207 static int convertSysfsStrToBCD(const char *pszBuf, uint16_t *pu16) argument
1212 pszBuf = RTStrStripL(pszBuf);
1213 int rc = RTStrToInt32Ex(pszBuf, &pszNext, 16, &i32);

Completed in 144 milliseconds

123