Changeset 2836 for trunk/kLdr/kLdr.h


Ignore:
Timestamp:
Oct 26, 2006, 5:58:53 AM (19 years ago)
Author:
bird
Message:

more prototyping. (And avoid 64-bit div/rem)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdr.h

    r2835 r2836  
    4444typedef signed __int64      int64_t;
    4545typedef unsigned __int64    uint64_t;
     46typedef int64_t             intmax_t;
    4647typedef uint64_t            uintmax_t;
    4748#else
     
    287288    const char     *pszName;
    288289    /** The size of the segment. */
    289     size_t          cb;
     290    uintmax_t       cb;
    290291    /** The link time load address. */
    291     void           *pvLink;
     292    uintmax_t       LinkAddress;
    292293    /** The actual load address (if loaded). */
    293     void           *pv;
     294    uintmax_t       LoadAddress;
    294295    /** The segment protection. */
    295296    KLDRPROT        enmProt;
     
    609610} KLDRDYLDSEARCH;
    610611
    611 /** @name kLdrLoadDll flags.
     612/** @name kLdrDyldLoad and kLdrDyldFindByName flags.
    612613 * @{ */
    613614/** The symbols in the module should be loaded into the global unix namespace.
     
    625626                     unsigned fFlags, PHKLDRMOD phMod, char *pszErr, size_t cchErr);
    626627int     kLdrDyldUnload(HKLDRMOD hMod);
    627 int     kLdrDyldFindByName(const char *pszDll, const char *pszDefPrefix, const char *pszDefSuffix, KLDRDYLDSEARCH enmSearch, PHKLDRMOD phMod);
     628int     kLdrDyldFindByName(const char *pszDll, const char *pszDefPrefix, const char *pszDefSuffix, KLDRDYLDSEARCH enmSearch,
     629                           unsigned fFlags, PHKLDRMOD phMod);
    628630int     kLdrDyldFindByAddress(uintptr_t Address, PHKLDRMOD phMod, uint32_t *piSegment, uintptr_t *poffSegment);
    629631int     kLdrDyldGetName(HKLDRMOD hMod, char *pszName, size_t cchName);
     
    728730/** Invalid handle parameter to a kLdr API. */
    729731#define KLDR_ERR_INVALID_HANDLE         (KLDR_ERR_BASE + 33)
     732/** The module wasn't found. */
     733#define KLDR_ERR_MODULE_NOT_FOUND       (KLDR_ERR_BASE + 34)
    730734
    731735/** Encountered a bad fixup. */
Note: See TracChangeset for help on using the changeset viewer.