Changeset 25645 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Jan 5, 2010 9:29:31 AM (15 years ago)
- Location:
- trunk/src/VBox/Runtime/common
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/checksum/ipv4.cpp
r21337 r25645 228 228 * 229 229 * @returns 32-bit intermediary checksum value. 230 * @param p UdpHdr Pointer to the TCP header to checksum, network endian (big).231 * Assums the caller has already validate it and made sure the232 * entire header is present.230 * @param pTcpHdr Pointer to the TCP header to checksum, network 231 * endian (big). Assums the caller has already validate 232 * it and made sure the entire header is present. 233 233 * @param u32Sum The 32-bit intermediate checksum value. 234 234 */ … … 274 274 * 275 275 * @returns 32-bit intermediary checksum value. 276 * @param p UdpHdr Pointer to the TCP header to checksum, network endian (big).277 * Assums the caller has already validate it and made sure the278 * entire header is present.276 * @param pTcpHdr Pointer to the TCP header to checksum, network 277 * endian (big). Assums the caller has already validate 278 * it and made sure the entire header is present. 279 279 * @param u32Sum The 32-bit intermediate checksum value. 280 280 */ … … 290 290 * 291 291 * @returns 32-bit intermediary checksum value. 292 * @param pUdpHdr Pointer to the UDP header to checksum, network endian (big). 292 * @param pvData Pointer to the data that should be checksummed. 293 * @param cbData The number of bytes to checksum. 293 294 * @param u32Sum The 32-bit intermediate checksum value. 294 295 * @param pfOdd This is used to keep track of odd bits, initialize to false … … 342 343 * 343 344 * @returns 32-bit intermediary checksum value. 344 * @param pUdpHdr Pointer to the UDP header to checksum, network endian (big). 345 * @param pvData The data bits to checksum. 346 * @param cbData The number of bytes to checksum. 345 347 * @param u32Sum The 32-bit intermediate checksum value. 346 348 * @param pfOdd This is used to keep track of odd bits, initialize to false -
trunk/src/VBox/Runtime/common/dbg/dbgas.cpp
r23022 r25645 1167 1167 * Adjusts the address to correspond to the mapping of the module/segment. 1168 1168 * 1169 * @param p Symbol The returned symbol info.1170 * @param pMap The mapping record.1169 * @param pAddr The address to adjust (in/out). 1170 * @param iSeg The related segment. 1171 1171 * @param hDbgMod The module handle. 1172 1172 * @param MapAddr The mapping address. … … 1259 1259 * @param cb The size of the symbol. 1260 1260 * @param fFlags Symbol flags. 1261 * @param piOrdinal Where to return the symbol ordinal on success. If 1262 * the interpreter doesn't do ordinals, this will be set to 1263 * UINT32_MAX. Optional 1261 1264 */ 1262 1265 RTDECL(int) RTDbgAsSymbolAdd(RTDBGAS hDbgAs, const char *pszSymbol, RTUINTPTR Addr, RTUINTPTR cb, uint32_t fFlags, uint32_t *piOrdinal) … … 1343 1346 * @param poffDisp Where to return the distance between the symbol 1344 1347 * and address. Optional. 1345 * @param ppSym bol Where to return the pointer to the allocated1346 * symbolinfo. Always set. Free with RTDbgSymbolFree.1348 * @param ppSymInfo Where to return the pointer to the allocated symbol 1349 * info. Always set. Free with RTDbgSymbolFree. 1347 1350 * @param phMod Where to return the module handle. Optional. 1348 1351 */ 1349 RTDECL(int) RTDbgAsSymbolByAddrA(RTDBGAS hDbgAs, RTUINTPTR Addr, PRTINTPTR poffDisp, PRTDBGSYMBOL *ppSym bol, PRTDBGMOD phMod)1352 RTDECL(int) RTDbgAsSymbolByAddrA(RTDBGAS hDbgAs, RTUINTPTR Addr, PRTINTPTR poffDisp, PRTDBGSYMBOL *ppSymInfo, PRTDBGMOD phMod) 1350 1353 { 1351 1354 /* … … 1369 1372 * Forward the call. 1370 1373 */ 1371 int rc = RTDbgModSymbolByAddrA(hMod, iSeg, offSeg, poffDisp, ppSym bol);1374 int rc = RTDbgModSymbolByAddrA(hMod, iSeg, offSeg, poffDisp, ppSymInfo); 1372 1375 if (RT_SUCCESS(rc)) 1373 rtDbgAsAdjustSymbolValue(*ppSym bol, hMod, MapAddr, iSeg);1376 rtDbgAsAdjustSymbolValue(*ppSymInfo, hMod, MapAddr, iSeg); 1374 1377 if (phMod) 1375 1378 *phMod = hMod; -
trunk/src/VBox/Runtime/common/dbg/dbgmod.cpp
r22114 r25645 1291 1291 * specified address and the returned symbol. 1292 1292 * Optional. 1293 * @param p SymInfo Where to store the symbolinformation.1293 * @param pLineInfo Where to store the line number information. 1294 1294 */ 1295 1295 RTDECL(int) RTDbgModLineByAddr(RTDBGMOD hDbgMod, RTDBGSEGIDX iSeg, RTUINTPTR off, PRTINTPTR poffDisp, PRTDBGLINE pLineInfo) -
trunk/src/VBox/Runtime/common/dbg/dbgmodcontainer.cpp
r22111 r25645 530 530 531 531 532 /** @copydoc RTDBGMODVTDBG::pfn RvaToSegOff*/532 /** @copydoc RTDBGMODVTDBG::pfnImageSize */ 533 533 static DECLCALLBACK(RTUINTPTR) rtDbgModContainer_ImageSize(PRTDBGMODINT pMod) 534 534 { -
trunk/src/VBox/Runtime/common/dbg/dbgmodnm.cpp
r21337 r25645 162 162 163 163 164 /** @copydoc RTDBGMODVTDBG::pfn RvaToSegOff*/164 /** @copydoc RTDBGMODVTDBG::pfnImageSize */ 165 165 static DECLCALLBACK(RTUINTPTR) rtDbgModNm_ImageSize(PRTDBGMODINT pMod) 166 166 { -
trunk/src/VBox/Runtime/common/misc/cache.cpp
r24181 r25645 50 50 * 51 51 * @returns iprt status code. 52 * @param pp ObjCacheWhere to store the pointer to the created cache.53 * @param cElements Number of elements the cache can hold.54 * 0 if unlimited size.55 * @param cbElement Size of one element in bytes56 * @param fProt Protection flags for protecting cache against concurrent access57 * from different threads.58 * RTOBJCACHE_PROTECT_REQUESTERto protect the request function.59 * RTOBJCACHE_PROTECT_INSERT to protect the insert function.52 * @param ppCache Where to store the pointer to the created cache. 53 * @param cElements Number of elements the cache can hold. 54 * 0 if unlimited size. 55 * @param cbElement Size of one element in bytes 56 * @param fProt Protection flags for protecting cache against 57 * concurrent access from different threads. 58 * RTOBJCACHE_PROTECT_REQUEST to protect the request function. 59 * RTOBJCACHE_PROTECT_INSERT to protect the insert function. 60 60 */ 61 61 RTDECL(int) RTCacheCreate(PRTOBJCACHE *ppCache, uint32_t cElements, size_t cbElement, uint32_t fProt) -
trunk/src/VBox/Runtime/common/misc/lockvalidator.cpp
r25638 r25645 188 188 * Launch a simple assertion like complaint w/ panic. 189 189 * 190 * @param RT_SRC_POS_DECL Where from. 190 * @param pszFile Where from - file. 191 * @param iLine Where from - line. 192 * @param pszFunction Where from - function. 191 193 * @param pszWhat What we're complaining about. 192 194 * @param ... Format arguments. … … 211 213 * 212 214 * @param pszPrefix Message prefix. 213 * @param RecThe lock record we're working on.214 * @param psz Prefix Message suffix.215 * @param pRec The lock record we're working on. 216 * @param pszSuffix Message suffix. 215 217 */ 216 218 static void rtLockValidatorComplainAboutLock(const char *pszPrefix, PRTLOCKVALRECUNION pRec, const char *pszSuffix) -
trunk/src/VBox/Runtime/common/misc/s3.cpp
r23973 r25645 863 863 } 864 864 865 RTR3DECL(int) RTS3GetKey(RTS3 hS3, const char * pszBucketName, const char* pszKeyName, const char* pszFileName)865 RTR3DECL(int) RTS3GetKey(RTS3 hS3, const char *pszBucketName, const char *pszKeyName, const char *pszFilename) 866 866 { 867 867 PRTS3INTERNAL pS3Int = hS3; … … 873 873 /* Open the file */ 874 874 RTFILE hFile; 875 int rc = RTFileOpen(&hFile, pszFile Name, RTFILE_O_CREATE | RTFILE_O_WRITE | RTFILE_O_DENY_NONE);875 int rc = RTFileOpen(&hFile, pszFilename, RTFILE_O_CREATE | RTFILE_O_WRITE | RTFILE_O_DENY_NONE); 876 876 if (RT_FAILURE(rc)) 877 877 return rc; … … 916 916 /* If there was an error delete the newly created file */ 917 917 if (RT_FAILURE(rc)) 918 RTFileDelete(pszFile Name);918 RTFileDelete(pszFilename); 919 919 920 920 return rc; 921 921 } 922 922 923 RTR3DECL(int) RTS3PutKey(RTS3 hS3, const char * pszBucketName, const char* pszKeyName, const char* pszFileName)923 RTR3DECL(int) RTS3PutKey(RTS3 hS3, const char *pszBucketName, const char *pszKeyName, const char *pszFilename) 924 924 { 925 925 PRTS3INTERNAL pS3Int = hS3; … … 931 931 /* Open the file */ 932 932 RTFILE hFile; 933 int rc = RTFileOpen(&hFile, pszFile Name, RTFILE_O_OPEN | RTFILE_O_READ | RTFILE_O_DENY_NONE);933 int rc = RTFileOpen(&hFile, pszFilename, RTFILE_O_OPEN | RTFILE_O_READ | RTFILE_O_DENY_NONE); 934 934 if (RT_FAILURE(rc)) 935 935 return rc; -
trunk/src/VBox/Runtime/common/misc/thread.cpp
r25638 r25645 779 779 * @param enmType See RTThreadCreate. 780 780 * @param fFlags See RTThreadCreate. 781 * @param pszName 781 * @param pszNameFmt Thread name format. 782 782 * @param va Format arguments. 783 783 */ … … 804 804 * @param enmType See RTThreadCreate. 805 805 * @param fFlags See RTThreadCreate. 806 * @param pszName 806 * @param pszNameFmt Thread name format. 807 807 * @param ... Format arguments. 808 808 */ -
trunk/src/VBox/Runtime/common/path/RTPathParse.cpp
r21673 r25645 46 46 * 47 47 * @param pszPath Path to find filename in. 48 * @param pc bDir Where to put the length of the directory component.49 * Ifno directory, this will be 0. Optional.48 * @param pcchDir Where to put the length of the directory component. If 49 * no directory, this will be 0. Optional. 50 50 * @param poffName Where to store the filename offset. 51 51 * If empty string or if it's ending with a slash this … … 54 54 * If empty string or if it's ending with a slash this 55 55 * will be set to -1. Optional. 56 * @param pfFlags Where to set flags returning more information about57 * the path. For the future. Optional.58 56 */ 59 57 RTDECL(size_t) RTPathParse(const char *pszPath, size_t *pcchDir, ssize_t *poffName, ssize_t *poffSuff) -
trunk/src/VBox/Runtime/common/string/strformatrt.cpp
r25596 r25645 82 82 * - \%RHx - Takes a #RTHCUINT or #RTHCINT value, formatting it as hex. 83 83 * - \%RRv - Takes a #RTRCPTR, #RTRCINTPTR or #RTRCUINTPTR value. 84 * - \%RCi - Takes a #RT CCINT value.84 * - \%RCi - Takes a #RTINT value. 85 85 * - \%RCp - Takes a #RTCCPHYS value. 86 86 * - \%RCr - Takes a #RTCCUINTREG value. … … 233 233 #define STRMEM(str) sizeof(str) - 1, str 234 234 { STRMEM("Ci"), sizeof(RTINT), 10, RTSF_INT, RTSTR_F_VALSIGNED }, 235 { STRMEM("Cp"), sizeof(RT GCPHYS), 16, RTSF_INTW, 0 },235 { STRMEM("Cp"), sizeof(RTCCPHYS), 16, RTSF_INTW, 0 }, 236 236 { STRMEM("Cr"), sizeof(RTCCUINTREG), 16, RTSF_INTW, 0 }, 237 237 { STRMEM("Cu"), sizeof(RTUINT), 10, RTSF_INT, 0 },
Note:
See TracChangeset
for help on using the changeset viewer.