Searched defs:pszBuf (Results 1 - 25 of 60) sorted by relevance

123

/vbox/src/VBox/Runtime/generic/
H A DRTSystemQueryDmiString-generic.cpp38 RTDECL(int) RTSystemQueryDmiString(RTSYSDMISTR enmString, char *pszBuf, size_t cbBuf) argument
40 AssertPtrReturn(pszBuf, VERR_INVALID_POINTER);
42 *pszBuf = '\0';
H A DRTMpGetDescription-generic-stub.cpp36 RTDECL(int) RTMpGetDescription(RTCPUID idCpu, char *pszBuf, size_t cbBuf) argument
48 memcpy(pszBuf, s_szUnknown, sizeof(s_szUnknown));
H A DRTEnvDupEx-generic.cpp58 char *pszBuf = (char *)RTMemAlloc(cbBuf); local
61 rc = RTEnvGetEx(Env, pszVar, pszBuf, cbBuf, NULL);
63 return pszBuf; /* ASSUMES RTMemAlloc can be freed by RTStrFree! */
72 char *pszNew = (char *)RTMemRealloc(pszBuf, cbBuf);
75 pszBuf = pszNew;
78 RTMemFree(pszBuf);
H A DRTMpGetDescription-generic.cpp44 * @param pszBuf Output buffer.
47 static int rtMpGetDescriptionUnknown(char *pszBuf, size_t cbBuf) argument
52 memcpy(pszBuf, s_szUnknown, sizeof(s_szUnknown));
57 RTDECL(int) RTMpGetDescription(RTCPUID idCpu, char *pszBuf, size_t cbBuf) argument
74 return rtMpGetDescriptionUnknown(pszBuf, cbBuf);
106 memcpy(pszBuf, pszSrc, cchSrc + 1);
/vbox/src/VBox/Runtime/r3/linux/
H A DRTSystemQueryDmiString-linux.cpp41 RTDECL(int) RTSystemQueryDmiString(RTSYSDMISTR enmString, char *pszBuf, size_t cbBuf) argument
43 AssertPtrReturn(pszBuf, VERR_INVALID_POINTER);
45 *pszBuf = '\0';
67 rc = RTLinuxSysFsReadFile(fd, pszBuf, cbBuf, &cbRead);
72 pszBuf[cbRead - 1] = '\0';
76 pszBuf[cbRead] = '\0';
77 if (cbRead > 0 && pszBuf[cbRead - 1] == '\n')
78 pszBuf[cbRead - 1] = '\0';
H A Dsysfs.cpp60 * @param pszBuf Where to write the path. Must be at least
62 * @param cchBuf The size of the buffer pointed to by @a pszBuf.
67 static ssize_t rtLinuxConstructPathV(char *pszBuf, size_t cchBuf, argument
79 size_t cch = RTStrPrintfV(pszBuf, cchBuf, pszFormat, va);
80 if (*pszBuf != '/')
83 memmove(pszBuf + cchPrefix, pszBuf, cch + 1);
84 memcpy(pszBuf, pszPrefix, cchPrefix);
100 * @param pszBuf Where to write the path. Must be at least
102 * @param cchBuf The size of the buffer pointed to by @a pszBuf
106 rtLinuxConstructPath(char *pszBuf, size_t cchBuf, const char *pszPrefix, const char *pszFormat, ...) argument
131 rtLinuxSysFsConstructPath(char *pszBuf, size_t cchBuf, const char *pszFormat, va_list va) argument
203 RTLinuxSysFsReadStr(int fd, char *pszBuf, size_t cchBuf) argument
330 RTLinuxSysFsReadStrFileV(char *pszBuf, size_t cchBuf, const char *pszFormat, va_list va) argument
348 RTLinuxSysFsReadStrFile(char *pszBuf, size_t cchBuf, const char *pszFormat, ...) argument
358 RTLinuxSysFsGetLinkDestV(char *pszBuf, size_t cchBuf, const char *pszFormat, va_list va) argument
405 RTLinuxSysFsGetLinkDest(char *pszBuf, size_t cchBuf, const char *pszFormat, ...) argument
415 RTLinuxCheckDevicePathV(dev_t DevNum, RTFMODE fMode, char *pszBuf, size_t cchBuf, const char *pszPattern, va_list va) argument
459 RTLinuxCheckDevicePath(dev_t DevNum, RTFMODE fMode, char *pszBuf, size_t cchBuf, const char *pszPattern, ...) argument
[all...]
/vbox/src/VBox/Runtime/common/string/
H A DRTStrPrintHexBytes.cpp38 RTDECL(int) RTStrPrintHexBytes(char *pszBuf, size_t cchBuf, void const *pv, size_t cb, uint32_t fFlags) argument
41 AssertPtrReturn(pszBuf, VERR_INVALID_POINTER);
55 *pszBuf++ = pszHexDigits[b >> 4];
56 *pszBuf++ = pszHexDigits[b & 0xf];
58 *pszBuf = '\0';
H A Dstrformatnum.cpp39 RTDECL(ssize_t) RTStrFormatU8(char *pszBuf, size_t cbBuf, uint8_t u8Value, unsigned int uiBase, argument
47 cchRet = RTStrFormatNumber(pszBuf, u8Value, uiBase, cchWidth, cchPrecision, fFlags);
53 memcpy(pszBuf, szTmp, cchRet + 1);
58 memcpy(pszBuf, szTmp, cbBuf - 1);
59 pszBuf[cbBuf - 1] = '\0';
68 RTDECL(ssize_t) RTStrFormatU16(char *pszBuf, size_t cbBuf, uint16_t u16Value, unsigned int uiBase, argument
76 cchRet = RTStrFormatNumber(pszBuf, u16Value, uiBase, cchWidth, cchPrecision, fFlags);
82 memcpy(pszBuf, szTmp, cchRet + 1);
87 memcpy(pszBuf, szTmp, cbBuf - 1);
88 pszBuf[cbBu
97 RTStrFormatU32(char *pszBuf, size_t cbBuf, uint32_t u32Value, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, uint32_t fFlags) argument
126 RTStrFormatU64(char *pszBuf, size_t cbBuf, uint64_t u64Value, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, uint32_t fFlags) argument
155 RTStrFormatU128(char *pszBuf, size_t cbBuf, PCRTUINT128U pu128, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, uint32_t fFlags) argument
174 RTStrFormatR80u2(char *pszBuf, size_t cbBuf, PCRTFLOAT80U2 pr80Value, signed int cchWidth, signed int cchPrecision, uint32_t fFlags) argument
244 RTStrFormatR80(char *pszBuf, size_t cbBuf, PCRTFLOAT80U pr80Value, signed int cchWidth, signed int cchPrecision, uint32_t fFlags) argument
[all...]
H A Dbase64.cpp450 * @param pszBuf Where to put the Base64 string.
454 RTDECL(int) RTBase64Encode(const void *pvData, size_t cbData, char *pszBuf, size_t cbBuf, size_t *pcchActual) argument
464 char *pchDst = pszBuf;
529 *pcchActual = pchDst - pszBuf;
/vbox/src/VBox/Runtime/r3/
H A Ddir2.cpp50 * @param pszBuf The path buffer. Contains the abs path to the
57 static int rtDirRemoveRecursiveSub(char *pszBuf, size_t cchDir, PRTDIRENTRY pDirEntry, PRTFSOBJINFO pObjInfo) argument
59 AssertReturn(RTPATH_IS_SLASH(pszBuf[cchDir - 1]), VERR_INTERNAL_ERROR_4);
65 int rc = RTDirOpen(&pDir, pszBuf);
82 memcpy(&pszBuf[cchDir], pDirEntry->szName, pDirEntry->cbName + 1);
87 rc = RTPathQueryInfoEx(pszBuf, pObjInfo, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK);
100 rc = RTFileDelete(pszBuf);
106 pszBuf[cchSubDir++] = '/';
107 pszBuf[cchSubDir] = '\0';
108 rc = rtDirRemoveRecursiveSub(pszBuf, cchSubDi
[all...]
/vbox/src/VBox/Runtime/r3/solaris/
H A DRTSystemQueryDmiString-solaris.cpp42 RTDECL(int) RTSystemQueryDmiString(RTSYSDMISTR enmString, char *pszBuf, size_t cbBuf) argument
44 AssertPtrReturn(pszBuf, VERR_INVALID_POINTER);
46 *pszBuf = '\0';
73 rc = RTStrCopy(pszBuf, cbBuf, szData);
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;
/vbox/src/VBox/VMM/VMMAll/
H A DVMMAll.cpp44 * @param pszBuf Output buffer with sufficient space.
47 static unsigned vmmFormatTypeShortNumber(char *pszBuf, uint32_t uNumber) argument
55 pszBuf[off++] = ((uNumber / 1000) % 10) + '0';
56 pszBuf[off++] = ((uNumber / 100) % 10) + '0';
58 pszBuf[off++] = ((uNumber / 10) % 10) + '0';
60 pszBuf[off++] = (uNumber % 10) + '0';
61 pszBuf[off] = '\0';
/vbox/src/VBox/Runtime/r3/posix/
H A Denv-posix.cpp141 char *pszBuf = (char *)alloca(cchVar + 2); local
142 memcpy(pszBuf, pszVar, cchVar);
143 pszBuf[cchVar] = '=';
144 pszBuf[cchVar + 1] = '\0';
146 if (!putenv(pszBuf))
H A Dsymlink-posix.cpp191 char *pszBuf = NULL; local
194 RTMemTmpFree(pszBuf);
195 pszBuf = (char *)RTMemTmpAlloc(cbBuf);
196 if (pszBuf)
198 ssize_t cbReturned = readlink(pszNativeSymlink, pszBuf, cbBuf);
208 pszBuf[cbReturned] = '\0';
209 rc = rtPathFromNativeDup(ppszTarget, pszBuf, pszSymlink);
221 RTMemTmpFree(pszBuf);
/vbox/src/VBox/Runtime/testcase/
H A DtstRTHttp.cpp48 char *pszBuf = (char*)pu8Buf; local
66 int rc = RTHttpCertDigest(hHttp, pszBuf, cbBuf,
99 rc = RTStrmWrite(CAFile, pszBuf, cbBuf);
112 char *pszBuf = (char*)pu8Buf; local
130 int rc = RTHttpCertDigest(hHttp, pszBuf, cbBuf,
163 rc = RTStrmWrite(CAFile, pszBuf, cbBuf);
214 char *pszBuf = NULL; local
238 &pszBuf);
239 if (RT_SUCCESS(rc) && pszBuf)
240 rc = extractPCA3G5(hHttp, CAFile, (uint8_t*)pszBuf, strle
[all...]
H A DtstRTDigest.cpp82 static char *MyGetNextSignificantLine(PRTSTREAM pFile, char *pszBuf, size_t cbBuf, uint32_t *piLine, int *prc) argument
86 *pszBuf = '\0';
87 int rc = RTStrmGetLine(pFile, pszBuf, cbBuf);
96 if (!*pszBuf)
102 char *pszStart = RTStrStrip(pszBuf);
H A DtstRTStrFormat.cpp108 char *pszBuf = (char *)RTTestGuardedAllocHead(hTest, BUF_SIZE); local
114 size_t cch = RTStrPrintf(pszBuf, BUF_SIZE, "u32=%d u64=%lld u64=%#llx", u32, u64, u64);
115 if (strcmp(pszBuf, "u32=16 u64=256 u64=0x100"))
118 "wanted 'u32=16 u64=256 u64=0x100'\n", pszBuf);
123 cch = RTStrPrintf(pszBuf, BUF_SIZE, "u64=%#llx 42=%d u64=%lld 42=%d", u64, 42, u64, 42);
124 if (strcmp(pszBuf, "u64=0x7070605040302010 42=42 u64=8102081627430068240 42=42"))
127 "wanted 'u64=0x8070605040302010 42=42 u64=8102081627430068240 42=42'\n", pszBuf);
133 cch = RTStrPrintf(pszBuf, BUF_SIZE, "u64=%#llx 42=%d u64=%llu 42=%d u64=%lld 42=%d", u64, 42, u64, 42, u64, 42);
135 if (strcmp(pszBuf, "u64=0x8070605040302010 42=42 u64=9255003132036915216 42=42 u64=-9191740941672636400 42=42"))
138 "wanted 'u64=0x8070605040302010 42=42 u64=9255003132036915216 42=42 u64=-9191740941672636400 42=42'\n", pszBuf);
[all...]
/vbox/src/VBox/Runtime/r3/darwin/
H A DRTSystemQueryDmiString-darwin.cpp54 RTDECL(int) RTSystemQueryDmiString(RTSYSDMISTR enmString, char *pszBuf, size_t cbBuf) argument
56 AssertPtrReturn(pszBuf, VERR_INVALID_POINTER);
58 *pszBuf = '\0';
107 rc = RTStrCopyEx(pszBuf, cbBuf, pchData, cbData);
118 Boolean fRc = CFStringGetCString(StringRef, pszBuf, cbBuf, kCFStringEncodingUTF8);
136 rc = RTStrCopy(pszBuf, cbBuf, pszTmp);
/vbox/src/VBox/Runtime/r3/win/
H A DRTSystemQueryDmiString-win.cpp142 RTDECL(int) RTSystemQueryDmiString(RTSYSDMISTR enmString, char *pszBuf, size_t cbBuf) argument
144 AssertPtrReturn(pszBuf, VERR_INVALID_POINTER);
146 *pszBuf = '\0';
228 rc = RTStrCopy(pszBuf, cbBuf, pszValue);
H A Denv-win.cpp220 char *pszBuf = (char *)alloca(cchVar + 2); local
221 memcpy(pszBuf, pszVar, cchVar);
222 pszBuf[cchVar] = '=';
223 pszBuf[cchVar + 1] = '\0';
225 if (!putenv(pszBuf))
/vbox/src/VBox/VMM/VMMR3/
H A DPATMR3Dbg.cpp336 * @param pszBuf The output buffer. This will be an empty string
342 VMMR3_INT_DECL(void) PATMR3DbgAnnotatePatchedInstruction(PVM pVM, RTRCPTR RCPtr, uint8_t cbInstr, char *pszBuf, size_t cbBuf) argument
348 *pszBuf = '\0';
379 size_t off = patmR3DbgDescribePatchAsSymbol(pPatchRec, pszBuf, cbBuf);
395 off += RTStrPrintf(&pszBuf[off], cbBuf - off, " - %s (%u b) - %#x LB %#x",
400 off += RTStrPrintf(&pszBuf[off], cbBuf - off, " - %s (%u b)", pszState, pPatchRec->patch.cbPatchJump);
H A DDBGFMem.cpp233 * @param pszBuf Where to store the string.
236 static DECLCALLBACK(int) dbgfR3MemReadString(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, char *pszBuf, size_t cchBuf) argument
243 if (!VALID_PTR(pszBuf))
249 int rc = dbgfR3MemRead(pUVM, idCpu, pAddress, pszBuf, cchBuf);
255 if (!RTStrEnd(pszBuf, cchBuf))
257 pszBuf[cchBuf - 1] = '\0';
265 if (pszBuf[0])
281 * @param pszBuf Where to store the string.
284 VMMR3DECL(int) DBGFR3MemReadString(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, char *pszBuf, size_t cchBuf) argument
289 if (!VALID_PTR(pszBuf))
[all...]
H A DDBGFOS.cpp496 char *pszBuf, size_t cbBuf, size_t *pcbActual)
504 AssertPtrReturn(pszBuf, VERR_INVALID_POINTER);
509 pWrapper->uDigger.pDmesg, pUVM, fFlags, cMessages, pszBuf, cbBuf, pcbActual);
495 dbgfR3OSEmtIDmesg_QueryKernelLog(PDBGFOSIDMESG pThis, PUVM pUVM, uint32_t fFlags, uint32_t cMessages, char *pszBuf, size_t cbBuf, size_t *pcbActual) argument
H A DDBGFReg.cpp185 char *pszBuf; member in struct:DBGFR3REGPRINTFARGS
2173 * @param pszBuf The output buffer.
2184 VMMR3DECL(ssize_t) DBGFR3RegFormatValueEx(char *pszBuf, size_t cbBuf, PCDBGFREGVAL pValue, DBGFREGVALTYPE enmType,
2195 memcpy(pszBuf, szTmp, cchOutput + 1);
2200 memcpy(pszBuf, szTmp, cbBuf - 1);
2201 pszBuf[cbBuf - 1] = '\0';
2215 * @param pszBuf The output buffer.
2221 VMMR3DECL(ssize_t) DBGFR3RegFormatValue(char *pszBuf, size_t cbBuf, PCDBGFREGVAL pValue, DBGFREGVALTYPE enmType, bool fSpecial)
2245 return DBGFR3RegFormatValueEx(pszBuf, cbBuf, pValue, enmType, 16, cchWidth, 0, fFlags);
2498 memcpy(&pArgs->pszBuf[pArg
[all...]
/vbox/src/VBox/HostDrivers/Support/testcase/
H A DtstNtQueryStuff.cpp55 static char *stringifyAppend(char *pszBuf, size_t *pcbBuf, const char *pszAppend, bool fWithSpace) argument
62 *pszBuf++ = ' ';
65 memcpy(pszBuf, pszAppend, cchAppend + 1);
67 pszBuf += cchAppend;
70 return pszBuf;
74 static char *stringifyAppendUnknownFlags(uint32_t fFlags, char *pszBuf, size_t *pcbBuf, bool fWithSpace) argument
81 pszBuf = stringifyAppend(pszBuf, pcbBuf, szTmp, fWithSpace);
85 return pszBuf;
89 static char *stringifyFlags(uint32_t fFlags, char *pszBuf, size_ argument
115 stringifyMemType(uint32_t fType, char *pszBuf, size_t cbBuf) argument
127 stringifyMemState(uint32_t fState, char *pszBuf, size_t cbBuf) argument
140 stringifyMemProt(uint32_t fProt, char *pszBuf, size_t cbBuf) argument
[all...]

Completed in 127 milliseconds

123