Changeset 555 for trunk/src


Ignore:
Timestamp:
Aug 18, 1999, 9:35:43 PM (26 years ago)
Author:
phaller
Message:

Add: few more exception handling stubs

Location:
trunk/src/NTDLL
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/NTDLL/makefile

    r510 r555  
    1 # $Id: makefile,v 1.7 1999-08-16 16:28:01 sandervl Exp $
     1# $Id: makefile,v 1.8 1999-08-18 19:35:30 phaller Exp $
    22
    33#
     
    2121OBJS = NTDLL.obj\
    2222       file.obj\
     23       exception.obj\
    2324       nt.obj\
    2425       om.obj\
     
    7677unknown.obj: .\unknown.cpp .\ntdll.h
    7778
     79exception.obj: .\exception.cpp .\ntdll.h
     80
     81
    7882clean:
    7983        $(RM) *.obj *.lib *.dll *~ *.map *.pch
  • trunk/src/NTDLL/ntdll.def

    r554 r555  
    1 ; $Id: ntdll.def,v 1.11 1999-08-18 18:49:18 phaller Exp $
     1; $Id: ntdll.def,v 1.12 1999-08-18 19:35:30 phaller Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    263263;   DbgPrint                      = _DbgPrint@8
    264264
    265 ;   NtRaiseException              = _NtRaiseException@16
    266 ;   ZwRaiseException              = _NtRaiseException@16
    267 ;   RtlRaiseException             = _RtlRaiseException@4
     265    NtRaiseException              = ___regs_NtRaiseException@16
     266    ZwRaiseException              = ___regs_NtRaiseException@16
     267    RtlRaiseException             = ___regs_RtlRaiseException@8
     268    DebugBreak                    = ___regs_DebugBreak@4
     269    RtlRaiseStatus                = _RtlRaiseStatus@4
     270
    268271    RtlAcquirePebLock             = _RtlAcquirePebLock@0
    269272    RtlReleasePebLock             = _RtlReleasePebLock@0
     
    285288    RtlQueryEnvironmentVariable_U = _RtlQueryEnvironmentVariable_U@12
    286289
    287     RtlSystemTimeToLocalTime      = _RtlSystemTimeToLocalTime@8
    288     RtlTimeToSecondsSince1980     = _RtlTimeToSecondsSince1980@8
    289     RtlTimeToSecondsSince1970     = _RtlTimeToSecondsSince1970@8
    290     RtlSecondsSince1970ToTime     = _RtlSecondsSince1970ToTime@8
     290    RtlSystemTimeToLocalTime      = _RtlSystemTimeToLocalTime@8       @500
     291    RtlTimeToSecondsSince1970     = _RtlTimeToSecondsSince1970@8      @503
     292    RtlTimeToSecondsSince1980     = _RtlTimeToSecondsSince1980@8      @504
     293    RtlSecondsSince1970ToTime     = _RtlSecondsSince1970ToTime@8      @476
     294    RtlSecondsSince1980ToTime     = _RtlSecondsSince1980ToTime@8      @477
     295    RtlQueryTimeZoneInformation   = _RtlQueryTimeZoneInformation@12   @463
    291296
    292297    RtlTimeToElapsedTimeFields    = _RtlTimeToElapsedTimeFields@8
  • trunk/src/NTDLL/ntdll.h

    r554 r555  
    1 /* $Id: ntdll.h,v 1.5 1999-08-18 18:49:18 phaller Exp $ */
     1/* $Id: ntdll.h,v 1.6 1999-08-18 19:35:30 phaller Exp $ */
    22
    33/*
     
    2020#endif
    2121
    22 /******************
    23  * asynchronous I/O
    24  */
    25 #undef Status  /* conflict with X11-includes*/
     22
     23/* Win32 register functions */
     24// @@@PH what does GCC with this ?
     25#define REGS_FUNC(name) __regs_##name
    2626
    2727
     
    571571   LPDWORD timeret);
    572572
    573 BOOLEAN WINAPI RtlSecondsSince1970ToTime(LPSYSTEMTIME st,
    574                                          LPDWORD      timeret);
     573BOOLEAN WINAPI RtlSecondsSince1970ToTime(LPFILETIME ft, LPDWORD    timeret);
     574BOOLEAN WINAPI RtlSecondsSince1980ToTime(LPFILETIME ft, LPDWORD    timeret);
    575575
    576576
     
    611611 */
    612612void __cdecl DbgPrint(LPCSTR fmt,LPVOID args);
    613 DWORD NtRaiseException ( DWORD dwExceptionCode, DWORD dwExceptionFlags, DWORD nNumberOfArguments,CONST ULONG_PTR *lpArguments);
    614 DWORD RtlRaiseException ( DWORD x);
     613void WINAPI REGS_FUNC(DebugBreak)( CONTEXT *context );
     614void WINAPI RtlRaiseStatus( NTSTATUS status );
     615void WINAPI REGS_FUNC(NtRaiseException)( EXCEPTION_RECORD *rec, CONTEXT *ctx, BOOL first, CONTEXT *context );
     616//void WINAPI REGS_FUNC(RtlUnwind)( PEXCEPTION_FRAME pEndFrame, LPVOID unusedEip, PEXCEPTION_RECORD pRecord, DWORD returnEax, CONTEXT *context );
     617void WINAPI REGS_FUNC(RtlRaiseException)( EXCEPTION_RECORD *rec, CONTEXT *context );
     618
    615619VOID WINAPI RtlAcquirePebLock(void);
    616620VOID WINAPI RtlReleasePebLock(void);
  • trunk/src/NTDLL/time.cpp

    r554 r555  
    1 /* $Id: time.cpp,v 1.3 1999-08-18 18:49:18 phaller Exp $ */
     1/* $Id: time.cpp,v 1.4 1999-08-18 19:35:30 phaller Exp $ */
    22
    33/*
     
    212212}
    213213
     214
     215/******************************************************************************
     216 *  RtlSecondsSince1980ToTime             [NTDLL.477]
     217 */
     218BOOLEAN WINAPI RtlSecondsSince1980ToTime(LPFILETIME ft,
     219                                         LPDWORD    timeret)
     220{
     221  dprintf(("NTDLL: RtlSecondsSince1980ToTime(%08xh,%08xh) not implemented.\n",
     222           ft,
     223           timeret));
     224
     225  //*timeret = DOSFS_UnixTimeToFileTime(st,NULL);
     226  return 1;
     227}
     228
     229
    214230/******************************************************************************
    215231 *  RtlToTimeInSecondsSince1970             [NTDLL]
     
    228244
    229245/******************************************************************************
    230  *  RtlSecondsSince1970ToTime             [NTDLL]
    231  */
    232 BOOLEAN WINAPI RtlSecondsSince1970ToTime(LPSYSTEMTIME st,
    233                                          LPDWORD      timeret)
     246 *  RtlSecondsSince1970ToTime             [NTDLL.476]
     247 */
     248BOOLEAN WINAPI RtlSecondsSince1970ToTime(LPFILETIME ft,
     249                                         LPDWORD    timeret)
    234250{
    235251  dprintf(("NTDLL: RtlSecondsSince1970ToTime(%08xh,%08xh) not implemented.\n",
    236            st,
     252           ft,
    237253           timeret));
    238254
  • trunk/src/NTDLL/unknown.cpp

    r430 r555  
    1 /* $Id: unknown.cpp,v 1.2 1999-08-05 23:28:33 phaller Exp $ */
     1/* $Id: unknown.cpp,v 1.3 1999-08-18 19:35:31 phaller Exp $ */
    22
    33/*
     
    146146
    147147
     148/*****************************************************************************
     149 * Name      : RtlQueryTimeZoneInformation
     150 * Purpose   : unknown
     151 * Parameters: unknown, probably wrong
     152 * Variables :
     153 * Result    :
     154 * Remark    : NTDLL.?
     155 * Status    : UNTESTED STUB
     156 *
     157 * Author    : Patrick Haller [Tue, 1999/06/01 09:00]
     158 *****************************************************************************/
     159
     160DWORD WIN32API RtlQueryTimeZoneInformation(DWORD x1,
     161                                           DWORD x2,
     162                                           DWORD x3)
     163{
     164  dprintf(("NTDLL: RtlQueryTimeZoneInformation(%08xh,%08xh,%08xh) not implemented.\n",
     165           x1,
     166           x2,
     167           x3));
     168
     169  return 0;
     170}
    148171
    149172
    150173
     174
     175
     176
     177
Note: See TracChangeset for help on using the changeset viewer.