Changeset 2974 for trunk/kLdr/kLdrMod.c


Ignore:
Timestamp:
Feb 14, 2007, 11:12:44 AM (19 years ago)
Author:
bird
Message:

off_t -> KLDRFOFF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdrMod.c

    r2954 r2974  
    144144        uint16_t    au16[2];
    145145        uint8_t     au8[4];
    146     }       u;
    147     off_t   offHdr = 0;
    148     int     rc;
     146    }           u;
     147    KLDRFOFF    offHdr = 0;
     148    int         rc;
    149149
    150150    /*
     
    161161        if (rc)
    162162            return rc;
    163         if ((off_t)u.u32 < kLdrRdrSize(pRdr))
     163        if ((KLDRFOFF)u.u32 < kLdrRdrSize(pRdr))
    164164        {
    165165            offHdr = u.u32;
     
    259259 */
    260260int     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,
    262262                           PFNKLDRMODGETIMPORT pfnGetForwarder, void *pvUser, PKLDRADDR puValue, uint32_t *pfKind)
    263263{
     
    269269    if (pfKind)
    270270        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,
    272272                                      pfnGetForwarder, pvUser, puValue, pfKind);
    273273}
     
    394394/**
    395395 * 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 *
    401401 * @returns 0 on success.
    402402 * @returns Whatever non-zero status returned by pfnCallback (enumeration was stopped).
    403403 * @returns non-zero kLdr or native status code on failure.
    404  * 
     404 *
    405405 * @param   pMod            The module.
    406406 * @param   pvBits          Optional pointer to bits returned by kLdrModGetBits() currently located at BaseAddress.
     
    433433/**
    434434 * Enumerates the resources matching the specfied criteria.
    435  * 
    436  * 
     435 *
     436 *
    437437 * @returns 0 on success.
    438438 * @returns Whatever non-zero status returned by pfnCallback (enumeration was stopped).
    439439 * @returns non-zero kLdr or native status code on failure.
    440  * 
     440 *
    441441 * @param   pMod            The module.
    442442 * @param   pvBits          Optional pointer to bits returned by kLdrModGetBits() currently located at BaseAddress.
     
    453453 * @param   pvUser          The user argument for the callback.
    454454 */
    455 int     kLdrModEnumResources(PKLDRMOD pMod, const void *pvBits, KLDRADDR BaseAddress, uint32_t idType, const char *pszType, 
     455int     kLdrModEnumResources(PKLDRMOD pMod, const void *pvBits, KLDRADDR BaseAddress, uint32_t idType, const char *pszType,
    456456                             uint32_t idName, const char *pszName, uint32_t idLang, PFNKLDRENUMRSRC pfnCallback, void *pvUser)
    457457{
     
    497497/**
    498498 * May free up some resources held by the module.
    499  * 
     499 *
    500500 * @todo define exactly what it possible to do after this call.
    501  * 
     501 *
    502502 * @returns 0 on success, KLDR_ERR_* on failure.
    503503 * @param   pMod    The module.
Note: See TracChangeset for help on using the changeset viewer.