Changeset 2974 for trunk/kLdr/kLdrMod.c
- Timestamp:
- Feb 14, 2007, 11:12:44 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kLdr/kLdrMod.c
r2954 r2974 144 144 uint16_t au16[2]; 145 145 uint8_t au8[4]; 146 } u;147 off_toffHdr = 0;148 int rc;146 } u; 147 KLDRFOFF offHdr = 0; 148 int rc; 149 149 150 150 /* … … 161 161 if (rc) 162 162 return rc; 163 if (( off_t)u.u32 < kLdrRdrSize(pRdr))163 if ((KLDRFOFF)u.u32 < kLdrRdrSize(pRdr)) 164 164 { 165 165 offHdr = u.u32; … … 259 259 */ 260 260 int kLdrModQuerySymbol(PKLDRMOD pMod, const void *pvBits, KLDRADDR BaseAddress, uint32_t iSymbol, 261 const char *pchSymbol, size_t cchSymbol, const char *pszVersion, 261 const char *pchSymbol, size_t cchSymbol, const char *pszVersion, 262 262 PFNKLDRMODGETIMPORT pfnGetForwarder, void *pvUser, PKLDRADDR puValue, uint32_t *pfKind) 263 263 { … … 269 269 if (pfKind) 270 270 KLDRHLP_VALIDATE_FLAGS(*pfKind, KLDRSYMKIND_REQ_SEGMENTED); 271 return pMod->pOps->pfnQuerySymbol(pMod, pvBits, BaseAddress, iSymbol, pchSymbol, cchSymbol, pszVersion, 271 return pMod->pOps->pfnQuerySymbol(pMod, pvBits, BaseAddress, iSymbol, pchSymbol, cchSymbol, pszVersion, 272 272 pfnGetForwarder, pvUser, puValue, pfKind); 273 273 } … … 394 394 /** 395 395 * Queries info about a resource. 396 * 397 * If there are multiple resources matching the criteria, the best or 398 * first match will be return. 399 * 400 * 396 * 397 * If there are multiple resources matching the criteria, the best or 398 * first match will be return. 399 * 400 * 401 401 * @returns 0 on success. 402 402 * @returns Whatever non-zero status returned by pfnCallback (enumeration was stopped). 403 403 * @returns non-zero kLdr or native status code on failure. 404 * 404 * 405 405 * @param pMod The module. 406 406 * @param pvBits Optional pointer to bits returned by kLdrModGetBits() currently located at BaseAddress. … … 433 433 /** 434 434 * Enumerates the resources matching the specfied criteria. 435 * 436 * 435 * 436 * 437 437 * @returns 0 on success. 438 438 * @returns Whatever non-zero status returned by pfnCallback (enumeration was stopped). 439 439 * @returns non-zero kLdr or native status code on failure. 440 * 440 * 441 441 * @param pMod The module. 442 442 * @param pvBits Optional pointer to bits returned by kLdrModGetBits() currently located at BaseAddress. … … 453 453 * @param pvUser The user argument for the callback. 454 454 */ 455 int kLdrModEnumResources(PKLDRMOD pMod, const void *pvBits, KLDRADDR BaseAddress, uint32_t idType, const char *pszType, 455 int kLdrModEnumResources(PKLDRMOD pMod, const void *pvBits, KLDRADDR BaseAddress, uint32_t idType, const char *pszType, 456 456 uint32_t idName, const char *pszName, uint32_t idLang, PFNKLDRENUMRSRC pfnCallback, void *pvUser) 457 457 { … … 497 497 /** 498 498 * May free up some resources held by the module. 499 * 499 * 500 500 * @todo define exactly what it possible to do after this call. 501 * 501 * 502 502 * @returns 0 on success, KLDR_ERR_* on failure. 503 503 * @param pMod The module.
Note:
See TracChangeset
for help on using the changeset viewer.