Changeset 1653 for trunk/src


Ignore:
Timestamp:
Nov 9, 1999, 10:31:14 AM (26 years ago)
Author:
phaller
Message:

Add: new functions implemented

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.10 1999-10-25 19:24:13 phaller Exp $ */
     1/* $Id: crt.cpp,v 1.11 1999-11-09 09:30:20 phaller Exp $ */
    22
    33/*
     
    16461646int CDECL NTDLL__vsnprintf( char *s, size_t bufsize, const char *format, va_list arg )
    16471647{
    1648   dprintf(("NTDLL: _ultoa(%08xh, %08xh, %08xh) not implemented\n",
     1648  dprintf(("NTDLL: _ultoa(%08xh, %08xh, %08xh)\n",
    16491649           s,
    16501650           bufsize,
    16511651           format));
    16521652
    1653   return 0;
     1653  return wvsnprintfA(s, bufsize, format, arg);
    16541654}
    16551655
  • trunk/src/NTDLL/makefile

    r1650 r1653  
    1 # $Id: makefile,v 1.11 1999-11-09 00:44:01 phaller Exp $
     1# $Id: makefile,v 1.12 1999-11-09 09:30:20 phaller Exp $
    22
    33#
     
    3333       time.obj\
    3434       unknown.obj\
    35        arith64.obj
     35       arith64.obj\
     36       regfunc.obj
    3637
    3738
     
    8283arith64.obj: .\arith64.asm
    8384
     85regfunc.obj: .\regfunc.asm
     86
    8487clean:
    8588        $(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:13 phaller Exp $ */
     1/* $Id: ntdll.cpp,v 1.3 1999-11-09 09:30:20 phaller Exp $ */
    22
    33/*
     
    5151
    5252
     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 *****************************************************************************/
     64void __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.20 1999-11-09 00:44:01 phaller Exp $
     1; $Id: ntdll.def,v 1.21 1999-11-09 09:30:21 phaller Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    88IMPORTS
    99    fwd_RtlUnwind                    =  KERNEL32.RtlUnwind
    10     fwd_memmove                      =  KERNEL32.memmove       
     10    fwd_memmove                      =  KERNEL32.memmove
    1111    fwd_RtlFillMemory                =  KERNEL32.RtlFillMemory
    1212    fwd_RtlMoveMemory                =  KERNEL32.RtlMoveMemory
     
    2323    HEAP_strdupWtoA                  =  KERNEL32.HEAP_strdupWtoA
    2424
    25 
     25    _wvsnprintfA@16                  =  USER32.wvsnprintfA
    2626
    2727EXPORTS
    2828
    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
    3633    RtlUnwind                    =  fwd_RtlUnwind
    3734    RtlFillMemory                =  fwd_RtlFillMemory
     
    4239    RtlEnterCriticalSection      =  fwd_RtlEnterCriticalSection
    4340    RtlDeleteCriticalSection     =  fwd_RtlDeleteCriticalSection
     41
     42; unknown
     43    _alldiv                          = _OS2_alldiv
     44    _allmul                          = _OS2_allmul
     45
     46    RtlLargeIntegerToChar            = _RtlLargeIntegerToChar@16     @425
    4447
    4548; real functions
     
    266269    RtlInitUnicodeString          = _RtlInitUnicodeString@8           @403
    267270    RtlFreeUnicodeString          = _RtlFreeUnicodeString@4           @377
    268     RtlFreeAnsiString             = _RtlFreeAnsiString@4             
     271    RtlFreeAnsiString             = _RtlFreeAnsiString@4
    269272    RtlFreeOemString              = _RtlFreeOemString@4
    270273    RtlUnicodeStringToOemString   = _RtlUnicodeStringToOemString@12   @511
     
    292295    RtlDestroyHeap                = _RtlDestroyHeap@4                 @333
    293296    RtlSizeHeap                   = _RtlSizeHeap@12                   @493
    294 ;   DbgPrint                      = _DbgPrint@8
    295297
    296298    NtRaiseException              = ___regs_NtRaiseException@16
     
    299301    DebugBreak                    = ___regs_DebugBreak@4
    300302    RtlRaiseStatus                = _RtlRaiseStatus@4
    301     RtlRandom                     = _RtlRandom@4                     
     303    RtlRandom                     = _RtlRandom@4
    302304
    303305    RtlAcquirePebLock             = _RtlAcquirePebLock@0
     
    309311    RtlNormalizeProcessParams     = _RtlNormalizeProcessParams@4      @441
    310312    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
    336316    RtlOpenCurrentUser            = _RtlOpenCurrentUser@8
    337317    RtlDosPathNameToNtPathName_U  = _RtlDosPathNameToNtPathName_U@16  @338
     
    345325    RtlSecondsSince1970ToTime     = _RtlSecondsSince1970ToTime@8      @476
    346326    RtlSecondsSince1980ToTime     = _RtlSecondsSince1980ToTime@8      @477
    347     RtlQueryTimeZoneInformation   = _RtlQueryTimeZoneInformation@12   
     327    RtlQueryTimeZoneInformation   = _RtlQueryTimeZoneInformation@12
    348328
    349329    RtlTimeToElapsedTimeFields    = _RtlTimeToElapsedTimeFields@8
    350330
    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; -----------------
    354368; NTDLL's C runtime
     369; -----------------
    355370; 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
    369385    _wcsicmp                      = _OS2_wcsicmp                      @879
    370386    _wcslwr                       = _OS2_wcslwr                       @880
     
    385401    isspace                       = _OS2isspace                       @895
    386402    isupper                       = _OS2isupper                       @896
    387     iswalpha                      = _NTDLL_iswalpha                   @897
    388     iswctype                      = _NTDLL_iswctype                   @898
    389     isxdigit                      = _NTDLL_isxdigit                   @899
    390 
    391     labs                          = _NTDLL_labs                       @900
    392     log                           = _NTDLL_log                        @901
    393     mbstowcs                      = _NTDLL_mbstowcs                   @902
    394     memchr                        = _NTDLL_memchr                     @903
    395     memcmp                        = _NTDLL_memcmp                     @904
    396     memcpy                        = _NTDLL_memcpy                     @905
    397     memmove                       = fwd_memmove                       @906
    398     memset                        = _NTDLL_memset                     @907
    399     pow                           = _NTDLL_pow                        @908
    400     qsort                         = _NTDLL_qsort                      @909
    401     sin                           = _NTDLL_sin                        @910
     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
    402418    sprintf                       = _OS2sprintf                       @911
    403     sqrt                          = _NTDLL_sqrt                       @912
    404     sscanf                        = _NTDLL_sscanf                     @913
     419    sqrt                         = _NTDLL_sqrt                       @912
     420    sscanf                       = _NTDLL_sscanf                     @913
    405421    strcat                        = _OS2strcat                        @914
    406422    strchr                        = _OS2strchr                        @915
     
    422438    towlower                      = _OS2towlower                      @931
    423439    towupper                      = _OS2towupper                      @932
    424     vsprintf                      = _NTDLL_vsprintf                   @933
     440    vsprintf                     = _NTDLL_vsprintf                   @933
    425441    wcscat                        = _OS2wcscat                        @934
    426442    wcschr                        = _OS2wcschr                        @935
    427443    wcscmp                        = _OS2wcscmp                        @936
    428444    wcscpy                        = _OS2wcscpy                        @937
    429     wcscspn                       = _OS2wcscspn                       @938
     445    wcscspn                       = _OS2wcscspn
    430446    wcslen                        = _OS2wcslen                        @939
    431447    wcsncat                       = _OS2wcscat                        @940
     
    435451    wcsrchr                       = _OS2wcsrchr                       @944
    436452    wcsspn                        = _OS2wcsspn                        @945
    437     wcsstr                        = _OS2wcsstr                        @946
     453    wcsstr                        = _OS2wcsstr
    438454    wcstok                        = _NTDLL_wcstok                     @947
    439455    wcstol                        = _NTDLL_wcstol                     @948
     
    441457    wcstoul                       = _NTDLL_wcstoul                    @950
    442458
    443     _wtoi                         = _NTDLL__wtoi                      @983
    444     _wtol                         = _NTDLL__wtol                      @984
     459    _wtoi                        = _NTDLL__wtoi                      @983
     460    _wtol                        = _NTDLL__wtol                      @984
    445461
    446462    _stricmp                      = _OS2_stricmp
  • trunk/src/NTDLL/unknown.cpp

    r591 r1653  
    1 /* $Id: unknown.cpp,v 1.6 1999-08-19 20:43:19 phaller Exp $ */
     1/* $Id: unknown.cpp,v 1.7 1999-11-09 09:30:21 phaller Exp $ */
    22
    33/*
     
    372372 * Glorified "enter xxxx".
    373373 */
    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 }
     374extern void CDECL _chkstk(DWORD x1);
     375extern void CDECL _alloca_probe(DWORD x1);
    389376
    390377
Note: See TracChangeset for help on using the changeset viewer.