Changeset 2836 for trunk/src/win32k/dev16/probkrnl.c
- Timestamp:
- Feb 21, 2000, 5:45:47 AM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/win32k/dev16/probkrnl.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/dev16/probkrnl.c
r2832 r2836 1 /* $Id: probkrnl.c,v 1.1 2 2000-02-20 04:27:23bird Exp $1 /* $Id: probkrnl.c,v 1.13 2000-02-21 04:45:45 bird Exp $ 2 2 * 3 3 * Description: Autoprobes the os2krnl file and os2krnl[*].sym files. … … 157 157 * Internal Functions * 158 158 *******************************************************************************/ 159 /* File an output replacements */ 159 160 static HFILE fopen(const char * pszFilename, const char * pszIgnored); 160 161 static int fread(void * pvBuffer, USHORT cbBlock, USHORT cBlock, HFILE hFile); … … 163 164 static void puts(char *psz); 164 165 166 /* C-library replacements. */ 165 167 static void kmemcpy(char *psz1, const char *psz2, int cch); 166 168 static char * kstrstr(const char *psz1, const char *psz2); 167 169 static int kstrcmp(const char *psz1, const char *psz2); 168 170 static int kstrncmp(const char *psz1, const char *psz2, int cch); 171 static int kstrnicmp(const char *psz1, const char *psz2, int cch); 169 172 static int kstrlen(const char *psz); 170 173 static int kargncpy(char *pszTarget, const char *pszArg, unsigned cchMaxlen); 171 174 175 /* Workers */ 172 176 static int VerifyPrologs(void); 173 177 static int ProbeSymFile(char *pszFilename); … … 177 181 static int GetKernelOTEs(void); 178 182 183 /* Ouput */ 179 184 static void ShowDecNumber(unsigned long ul); 180 185 static void ShowHexNumber(unsigned long ul); … … 338 343 339 344 340 341 345 /** 342 346 * kstrncmp - String 'n' compare. … … 360 364 361 365 366 #if 0 /* not in use */ 367 /** 368 * kstrnicmp - String 'n' compare, case-insensitive. 369 * @returns 0 - equal else !0 370 * @param p1 String 1 371 * @param p2 String 2 372 * @param len length 373 */ 374 static int kstrnicmp(const char *psz1, const char *psz2, int cch) 375 { 376 register char ch1, ch2; 377 378 do 379 { 380 ch1 = *psz1++; 381 if (ch1 >= 'A' && ch1 <= 'Z') 382 ch1 += 'a' - 'A'; /* to lower case */ 383 ch2 = *psz2++; 384 if (ch2 >= 'A' && ch2 <= 'Z') 385 ch2 += 'a' - 'A'; /* to lower case */ 386 } while (--cch > 0 && ch1 == ch2 && ch1 != '\0' && ch2 != '\0'); 387 388 return ch1 - ch2; 389 } 390 #endif 391 392 362 393 /** 363 394 * kstrlen - String length. … … 431 462 432 463 /******************************************************************************* 433 * Implementation Of The Important Function *464 * Implementation Of The Important Functions * 434 465 *******************************************************************************/ 435 466 … … 727 758 * @param filename Filename of the OS/2 kernel. 728 759 * @result ulBuild is set. 760 * @remark This step will be eliminated by searching thru the DOSGROUP datasegment 761 * in the kernel memory. This segment have a string "Internal revision 9.034[smp|uni]" 762 * This would be much faster than reading the kernel file. It will also give us a more precise 763 * answer to the question! This is currently a TODO issue. !FIXME! 729 764 */ 730 765 static int ReadOS2Krnl(char * pszFilename) … … 1117 1152 case 'S': /* Symbol file */ 1118 1153 i++; 1119 i += kargncpy(szUsrSym, &pReqPack->InitArgs[i], sizeof(szUsrSym)); 1154 if (pReqPack->InitArgs[i] == 'Y' || pReqPack->InitArgs[i] == 'y') 1155 i += kargncpy(szUsrSym, &pReqPack->InitArgs[i], sizeof(szUsrSym)); 1120 1156 break; 1121 1157
Note:
See TracChangeset
for help on using the changeset viewer.
