- Timestamp:
- Nov 9, 1999, 10:31:14 AM (26 years ago)
- Location:
- trunk/src/NTDLL
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/NTDLL/crt.cpp
r1443 r1653 1 /* $Id: crt.cpp,v 1.1 0 1999-10-25 19:24:13phaller Exp $ */1 /* $Id: crt.cpp,v 1.11 1999-11-09 09:30:20 phaller Exp $ */ 2 2 3 3 /* … … 1646 1646 int CDECL NTDLL__vsnprintf( char *s, size_t bufsize, const char *format, va_list arg ) 1647 1647 { 1648 dprintf(("NTDLL: _ultoa(%08xh, %08xh, %08xh) not implemented\n",1648 dprintf(("NTDLL: _ultoa(%08xh, %08xh, %08xh)\n", 1649 1649 s, 1650 1650 bufsize, 1651 1651 format)); 1652 1652 1653 return 0;1653 return wvsnprintfA(s, bufsize, format, arg); 1654 1654 } 1655 1655 -
trunk/src/NTDLL/makefile
r1650 r1653 1 # $Id: makefile,v 1.1 1 1999-11-09 00:44:01phaller Exp $1 # $Id: makefile,v 1.12 1999-11-09 09:30:20 phaller Exp $ 2 2 3 3 # … … 33 33 time.obj\ 34 34 unknown.obj\ 35 arith64.obj 35 arith64.obj\ 36 regfunc.obj 36 37 37 38 … … 82 83 arith64.obj: .\arith64.asm 83 84 85 regfunc.obj: .\regfunc.asm 86 84 87 clean: 85 88 $(RM) *.obj *.lib *.dll *~ *.map *.pch -
trunk/src/NTDLL/ntdll.cpp
r557 r1653 1 /* $Id: ntdll.cpp,v 1. 2 1999-08-18 21:45:13phaller Exp $ */1 /* $Id: ntdll.cpp,v 1.3 1999-11-09 09:30:20 phaller Exp $ */ 2 2 3 3 /* … … 51 51 52 52 53 /***************************************************************************** 54 * Name : DbgPrint 55 * Purpose : print a debug line to somewhere? 56 * Parameters: 57 * Variables : 58 * Result : 59 * Remark : NTDLL.21 60 * Status : UNTESTED STUB 61 * 62 * Author : Patrick Haller [Tue, 1999/06/01 09:00] 63 *****************************************************************************/ 64 void __cdecl DbgPrint(LPCSTR lpcstrFormat,LPVOID args) 65 { 66 UCHAR szBuffer[600]; // as in original NTDLL.DLL 67 int rc; 68 69 rc = wvsnprintfA((LPSTR)szBuffer, 70 sizeof(szBuffer), 71 lpcstrFormat, 72 (va_list)args); 73 74 dprintf(("NTDLL: DbgPrint[%s]\n", 75 szBuffer)); 76 77 //@@@PH raise debug exception if running in debugger 78 } -
trunk/src/NTDLL/ntdll.def
r1650 r1653 1 ; $Id: ntdll.def,v 1.2 0 1999-11-09 00:44:01 phaller Exp $1 ; $Id: ntdll.def,v 1.21 1999-11-09 09:30:21 phaller Exp $ 2 2 3 3 ;Created by BLAST for IBM's compiler … … 8 8 IMPORTS 9 9 fwd_RtlUnwind = KERNEL32.RtlUnwind 10 fwd_memmove = KERNEL32.memmove 10 fwd_memmove = KERNEL32.memmove 11 11 fwd_RtlFillMemory = KERNEL32.RtlFillMemory 12 12 fwd_RtlMoveMemory = KERNEL32.RtlMoveMemory … … 23 23 HEAP_strdupWtoA = KERNEL32.HEAP_strdupWtoA 24 24 25 25 _wvsnprintfA@16 = USER32.wvsnprintfA 26 26 27 27 EXPORTS 28 28 29 ; unknown 30 _alldiv = _OS2_alldiv 31 _allmul = _OS2_allmul 32 33 RtlLargeIntegerToChar = _RtlLargeIntegerToChar@16 @425 34 35 ; forwarders 29 ; ------------------- 30 ; Forwarder Functions 31 ; ------------------- 32 36 33 RtlUnwind = fwd_RtlUnwind 37 34 RtlFillMemory = fwd_RtlFillMemory … … 42 39 RtlEnterCriticalSection = fwd_RtlEnterCriticalSection 43 40 RtlDeleteCriticalSection = fwd_RtlDeleteCriticalSection 41 42 ; unknown 43 _alldiv = _OS2_alldiv 44 _allmul = _OS2_allmul 45 46 RtlLargeIntegerToChar = _RtlLargeIntegerToChar@16 @425 44 47 45 48 ; real functions … … 266 269 RtlInitUnicodeString = _RtlInitUnicodeString@8 @403 267 270 RtlFreeUnicodeString = _RtlFreeUnicodeString@4 @377 268 RtlFreeAnsiString = _RtlFreeAnsiString@4 271 RtlFreeAnsiString = _RtlFreeAnsiString@4 269 272 RtlFreeOemString = _RtlFreeOemString@4 270 273 RtlUnicodeStringToOemString = _RtlUnicodeStringToOemString@12 @511 … … 292 295 RtlDestroyHeap = _RtlDestroyHeap@4 @333 293 296 RtlSizeHeap = _RtlSizeHeap@12 @493 294 ; DbgPrint = _DbgPrint@8295 297 296 298 NtRaiseException = ___regs_NtRaiseException@16 … … 299 301 DebugBreak = ___regs_DebugBreak@4 300 302 RtlRaiseStatus = _RtlRaiseStatus@4 301 RtlRandom = _RtlRandom@4 303 RtlRandom = _RtlRandom@4 302 304 303 305 RtlAcquirePebLock = _RtlAcquirePebLock@0 … … 309 311 RtlNormalizeProcessParams = _RtlNormalizeProcessParams@4 @441 310 312 RtlNtStatusToDosError = _RtlNtStatusToDosError@4 @442 311 RtlGetNtProductType = _RtlGetNtProductType@4 312 313 314 ; ------------------ 315 ; Integer Arithmetic 316 ; ------------------ 317 318 RtlLargeIntegerDivide = _RtlLargeIntegerDivide@20 @462 319 RtlLargeIntegerAdd = _RtlLargeIntegerAdd@16 @460 320 RtlEnlargedIntegerMultiply = _RtlEnlargedIntegerMultiply@8 @371 321 RtlEnlargedUnsignedMultiply = _RtlEnlargedUnsignedMultiply@8 @373 322 RtlEnlargedUnsignedDivide = _RtlEnlargedUnsignedDivide@16 @372 323 RtlExtendedLargeIntegerDivide = _RtlExtendedLargeIntegerDivide@16 @390 324 RtlExtendedMagicDivide = _RtlExtendedMagicDivide@20 @391 325 RtlExtendedIntegerMultiply = _RtlExtendedIntegerMultiply@12 @389 326 RtlLargeIntegerShiftLeft = _RtlLargeIntegerShiftLeft@12 @464 327 RtlLargeIntegerShiftRight = _RtlLargeIntegerShiftRight@12 @465 328 RtlLargeIntegerArithmeticShift= _RtlLargeIntegerArithmeticShift@12 @461 329 RtlLargeIntegerNegate = _RtlLargeIntegerNegate@8 @463 330 RtlLargeIntegerSubtract = _RtlLargeIntegerSubtract@16 @466 331 RtlConvertLongToLargeInteger = _RtlConvertLongToLargeInteger@4 @316 332 RtlConvertUlongToLargeInteger = _RtlConvertUlongToLargeInteger@4 @320 333 334 335 RtlFormatCurrentUserKeyPath = _RtlFormatCurrentUserKeyPath@4 313 RtlGetNtProductType = _RtlGetNtProductType@4 314 315 RtlFormatCurrentUserKeyPath = _RtlFormatCurrentUserKeyPath@4 336 316 RtlOpenCurrentUser = _RtlOpenCurrentUser@8 337 317 RtlDosPathNameToNtPathName_U = _RtlDosPathNameToNtPathName_U@16 @338 … … 345 325 RtlSecondsSince1970ToTime = _RtlSecondsSince1970ToTime@8 @476 346 326 RtlSecondsSince1980ToTime = _RtlSecondsSince1980ToTime@8 @477 347 RtlQueryTimeZoneInformation = _RtlQueryTimeZoneInformation@12 327 RtlQueryTimeZoneInformation = _RtlQueryTimeZoneInformation@12 348 328 349 329 RtlTimeToElapsedTimeFields = _RtlTimeToElapsedTimeFields@8 350 330 351 _alloca_probe = _OS2_alloca_probe @861 352 _chkstk = _OS2_chkstk @862 353 331 332 ; ------------------ 333 ; Integer Arithmetic 334 ; ------------------ 335 336 RtlLargeIntegerDivide = _RtlLargeIntegerDivide@20 @462 337 RtlLargeIntegerAdd = _RtlLargeIntegerAdd@16 @460 338 RtlEnlargedIntegerMultiply = _RtlEnlargedIntegerMultiply@8 @371 339 RtlEnlargedUnsignedMultiply = _RtlEnlargedUnsignedMultiply@8 @373 340 RtlEnlargedUnsignedDivide = _RtlEnlargedUnsignedDivide@16 @372 341 RtlExtendedLargeIntegerDivide = _RtlExtendedLargeIntegerDivide@16 @390 342 RtlExtendedMagicDivide = _RtlExtendedMagicDivide@20 @391 343 RtlExtendedIntegerMultiply = _RtlExtendedIntegerMultiply@12 @389 344 RtlLargeIntegerShiftLeft = _RtlLargeIntegerShiftLeft@12 @464 345 RtlLargeIntegerShiftRight = _RtlLargeIntegerShiftRight@12 @465 346 RtlLargeIntegerArithmeticShift = _RtlLargeIntegerArithmeticShift@12 @461 347 RtlLargeIntegerNegate = _RtlLargeIntegerNegate@8 @463 348 RtlLargeIntegerSubtract = _RtlLargeIntegerSubtract@16 @466 349 RtlConvertLongToLargeInteger = _RtlConvertLongToLargeInteger@4 @316 350 RtlConvertUlongToLargeInteger = _RtlConvertUlongToLargeInteger@4 @320 351 352 ; ------------------ 353 ; Register Functions 354 ; ------------------ 355 356 _alloca_probe = _chkstk @938 ; same export 357 _chkstk = _chkstk @946 358 359 ; ------------------ 360 ; Debugger Functions 361 ; ------------------ 362 363 DbgBreakPoint = DbgBreakPoint @20 364 DbgUserBreakPoint = DbgUserBreakPoint @28 365 DbgPrint = _DbgPrint @21 366 367 ; ----------------- 354 368 ; NTDLL's C runtime 369 ; ----------------- 355 370 ; Note: CDECL does not decorate the function names with parameter bytes! 356 _CIpow = _NTDLL__CIpow @749 357 _ftol = _NTDLL__ftol @864 358 _ltoa = _NTDLL__ltoa @866 359 _memicmp = _NTDLL__memicmp @868 360 _snprintf = _NTDLL__snprintf @869 361 _snwprintf = _NTDLL__snwprintf @870 362 _splitpath = _NTDLL__splitpath @871 363 _strcmpi = _NTDLL__strcmpi @872 364 _strlwr = _NTDLL__strlwr @874 365 _strnicmp = _NTDLL__strnicmp @875 366 _strupr = _NTDLL__strupr @876 367 _ultoa = _NTDLL__ultoa @877 368 _vsnprintf = _NTDLL__vsnprintf @878 371 372 _CIpow = _NTDLL__CIpow @749 373 _ftol = _NTDLL__ftol @864 374 _ltoa = _NTDLL__ltoa @866 375 _memicmp = _NTDLL__memicmp @868 376 _snprintf = _NTDLL__snprintf @869 377 _snwprintf = _NTDLL__snwprintf @870 378 _splitpath = _NTDLL__splitpath @871 379 _strcmpi = _NTDLL__strcmpi @872 380 _strlwr = _NTDLL__strlwr @874 381 _strnicmp = _NTDLL__strnicmp @875 382 _strupr = _NTDLL__strupr @876 383 _ultoa = _NTDLL__ultoa @877 384 _vsnprintf = _NTDLL__vsnprintf @878 369 385 _wcsicmp = _OS2_wcsicmp @879 370 386 _wcslwr = _OS2_wcslwr @880 … … 385 401 isspace = _OS2isspace @895 386 402 isupper = _OS2isupper @896 387 iswalpha = _NTDLL_iswalpha@897388 iswctype = _NTDLL_iswctype@898389 isxdigit = _NTDLL_isxdigit@899390 391 labs = _NTDLL_labs 392 log = _NTDLL_log 393 mbstowcs = _NTDLL_mbstowcs 394 memchr = _NTDLL_memchr 395 memcmp = _NTDLL_memcmp 396 memcpy = _NTDLL_memcpy 397 memmove = fwd_memmove 398 memset = _NTDLL_memset 399 pow = _NTDLL_pow 400 qsort = _NTDLL_qsort 401 sin = _NTDLL_sin 403 iswalpha = _NTDLL_iswalpha @897 404 iswctype = _NTDLL_iswctype @898 405 isxdigit = _NTDLL_isxdigit @899 406 407 labs = _NTDLL_labs @900 408 log = _NTDLL_log @901 409 mbstowcs = _NTDLL_mbstowcs @902 410 memchr = _NTDLL_memchr @903 411 memcmp = _NTDLL_memcmp @904 412 memcpy = _NTDLL_memcpy @905 413 memmove = fwd_memmove @906 414 memset = _NTDLL_memset @907 415 pow = _NTDLL_pow @908 416 qsort = _NTDLL_qsort @909 417 sin = _NTDLL_sin @910 402 418 sprintf = _OS2sprintf @911 403 sqrt = _NTDLL_sqrt@912404 sscanf = _NTDLL_sscanf@913419 sqrt = _NTDLL_sqrt @912 420 sscanf = _NTDLL_sscanf @913 405 421 strcat = _OS2strcat @914 406 422 strchr = _OS2strchr @915 … … 422 438 towlower = _OS2towlower @931 423 439 towupper = _OS2towupper @932 424 vsprintf = _NTDLL_vsprintf@933440 vsprintf = _NTDLL_vsprintf @933 425 441 wcscat = _OS2wcscat @934 426 442 wcschr = _OS2wcschr @935 427 443 wcscmp = _OS2wcscmp @936 428 444 wcscpy = _OS2wcscpy @937 429 wcscspn = _OS2wcscspn @938445 wcscspn = _OS2wcscspn 430 446 wcslen = _OS2wcslen @939 431 447 wcsncat = _OS2wcscat @940 … … 435 451 wcsrchr = _OS2wcsrchr @944 436 452 wcsspn = _OS2wcsspn @945 437 wcsstr = _OS2wcsstr @946453 wcsstr = _OS2wcsstr 438 454 wcstok = _NTDLL_wcstok @947 439 455 wcstol = _NTDLL_wcstol @948 … … 441 457 wcstoul = _NTDLL_wcstoul @950 442 458 443 _wtoi = _NTDLL__wtoi@983444 _wtol = _NTDLL__wtol@984459 _wtoi = _NTDLL__wtoi @983 460 _wtol = _NTDLL__wtol @984 445 461 446 462 _stricmp = _OS2_stricmp -
trunk/src/NTDLL/unknown.cpp
r591 r1653 1 /* $Id: unknown.cpp,v 1. 6 1999-08-19 20:43:19phaller Exp $ */1 /* $Id: unknown.cpp,v 1.7 1999-11-09 09:30:21 phaller Exp $ */ 2 2 3 3 /* … … 372 372 * Glorified "enter xxxx". 373 373 */ 374 void CDECL OS2_chkstk(DWORD x1) 375 { 376 dprintf(("NTDLL: _chkstk(%08xh) not implemented.\n", 377 x1)); 378 379 //ESP_reg(context) -= EAX_reg(context); 380 } 381 382 void CDECL OS2_alloca_probe(DWORD x1) 383 { 384 dprintf(("NTDLL: _alloca_probe(%08xh) not implemented.\n", 385 x1)); 386 387 //ESP_reg(context) -= EAX_reg(context); 388 } 374 extern void CDECL _chkstk(DWORD x1); 375 extern void CDECL _alloca_probe(DWORD x1); 389 376 390 377
Note:
See TracChangeset
for help on using the changeset viewer.