Changeset 3567 for trunk/kStuff/kLdr/kLdrDyldFind.c
- Timestamp:
- Aug 27, 2007, 9:54:05 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kStuff/kLdr/kLdrDyldFind.c
r3537 r3567 82 82 { 83 83 const char *pszName; 84 size_tcchName;84 KSIZE cchName; 85 85 86 86 const char *pszPrefix; 87 size_tcchPrefix;87 KSIZE cchPrefix; 88 88 89 89 const char *pszSuffix; 90 size_tcchSuffix;91 92 size_tcchMaxLength;90 KSIZE cchSuffix; 91 92 KSIZE cchMaxLength; 93 93 94 94 KLDRDYLDSEARCH enmSearch; 95 uint32_tfFlags;95 KU32 fFlags; 96 96 PPKLDRRDR ppRdr; 97 97 } KLDRDYLDFINDARGS, *PKLDRDYLDFINDARGS; … … 205 205 KLDRDYLDSEARCH enmSearch, unsigned fFlags, PPKLDRRDR ppRdr); 206 206 static int kldrDyldFindTryOpen(const char *pszFilename, PPKLDRRDR ppRdr); 207 static int kldrDyldFindTryOpenPath(const char *pchPath, size_tcchPath, PCKLDRDYLDFINDARGS pArgs);207 static int kldrDyldFindTryOpenPath(const char *pchPath, KSIZE cchPath, PCKLDRDYLDFINDARGS pArgs); 208 208 static int kldrDyldFindEnumeratePath(const char *pszSearchPath, PCKLDRDYLDFINDARGS pArgs); 209 209 static int kldrDyldFindGetDefaults(KLDRDYLDSEARCH *penmSearch, const char **pszPrefix, 210 const char **pszSuffix, const char *pszName, uint32_tfFlags);210 const char **pszSuffix, const char *pszName, KU32 fFlags); 211 211 212 212 … … 218 218 int kldrDyldFindInit(void) 219 219 { 220 size_tcch;220 KSIZE cch; 221 221 int rc; 222 222 char szTmp[sizeof(kLdrDyldDefSuffix)]; … … 377 377 { 378 378 const char *pszFilename = kLdrRdrName(pRdr); 379 const size_tcchFilename = kLdrHlpStrLen(pszFilename);379 const KSIZE cchFilename = kLdrHlpStrLen(pszFilename); 380 380 PKLDRDYLDMOD pCur; 381 381 for (pCur = kLdrDyldHead; pCur; pCur = pCur->Load.pNext) … … 391 391 { 392 392 const char *pszFilename = kLdrRdrName(pRdr); 393 const size_tcchFilename = kLdrHlpStrLen(pszFilename);393 const KSIZE cchFilename = kLdrHlpStrLen(pszFilename); 394 394 PKLDRDYLDMOD pCur; 395 395 for (pCur = kLdrDyldHead; pCur; pCur = pCur->Load.pNext) … … 590 590 if (!kLdrDyldExePath[0]) 591 591 { 592 size_tcch;592 KSIZE cch; 593 593 kldrHlpGetEnv("KLDR_EXE_PATH", kLdrDyldExePath, sizeof(kLdrDyldExePath) - 10); 594 594 cch = kLdrHlpStrLen(kLdrDyldExePath); … … 637 637 * @returns See kldrDyldFindTryOpen 638 638 */ 639 static int kldrDyldFindTryOpenPath(const char *pchPath, size_tcchPath, PCKLDRDYLDFINDARGS pArgs)639 static int kldrDyldFindTryOpenPath(const char *pchPath, KSIZE cchPath, PCKLDRDYLDFINDARGS pArgs) 640 640 { 641 641 static char s_szFilename[1024]; … … 721 721 { 722 722 const char *pszEnd; 723 size_tcchPath;723 KSIZE cchPath; 724 724 725 725 /* … … 780 780 */ 781 781 static int kldrDyldFindGetDefaults(KLDRDYLDSEARCH *penmSearch, const char **ppszPrefix, const char **ppszSuffix, 782 const char *pszName, uint32_tfFlags)782 const char *pszName, KU32 fFlags) 783 783 { 784 784 unsigned fCaseSensitive; … … 836 836 if (*ppszSuffix) 837 837 { 838 const size_tcchName = kLdrHlpStrLen(pszName);839 const size_tcchSuffix = kLdrHlpStrLen(*ppszSuffix);838 const KSIZE cchName = kLdrHlpStrLen(pszName); 839 const KSIZE cchSuffix = kLdrHlpStrLen(*ppszSuffix); 840 840 if ( cchName > cchSuffix 841 841 && ( fCaseSensitive … … 908 908 /* do a filename based search. */ 909 909 const char *pszFilename = kLdrRdrName(pRdr); 910 const size_tcchFilename = kLdrHlpStrLen(pszFilename);910 const KSIZE cchFilename = kLdrHlpStrLen(pszFilename); 911 911 PKLDRDYLDMOD pCur; 912 912 rc = KLDR_ERR_MODULE_NOT_FOUND; … … 926 926 else 927 927 { 928 const size_tcchName = kLdrHlpStrLen(pszName);929 const size_tcchPrefix = pszPrefix ? kLdrHlpStrLen(pszPrefix) : 0;930 const size_tcchSuffix = pszSuffix ? kLdrHlpStrLen(pszSuffix) : 0;928 const KSIZE cchName = kLdrHlpStrLen(pszName); 929 const KSIZE cchPrefix = pszPrefix ? kLdrHlpStrLen(pszPrefix) : 0; 930 const KSIZE cchSuffix = pszSuffix ? kLdrHlpStrLen(pszSuffix) : 0; 931 931 const char *pszNameSuffix = kldrHlpGetSuff(pszName); 932 932 PKLDRDYLDMOD pCur = kLdrDyldHead;
Note:
See TracChangeset
for help on using the changeset viewer.