Ignore:
Timestamp:
Oct 7, 1999, 11:28:49 AM (26 years ago)
Author:
sandervl
Message:

Jens Weissner's changes (all functions included)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/crtdll/crtdll.cpp

    r1118 r1160  
    1 /* $Id: crtdll.cpp,v 1.7 1999-10-04 09:55:54 sandervl Exp $ */
     1/* $Id: crtdll.cpp,v 1.8 1999-10-07 09:28:48 sandervl Exp $ */
    22
    33/*
     
    267267/*********************************************************************
    268268 *                  _XcptFilter    (CRTDLL.21)
    269  *      FIXME - Could not find anything about it
    270  */
    271 INT CDECL CRTDLL__XcptFilter(DWORD ret)
     269 */
     270INT CDECL CRTDLL__XcptFilter(DWORD ret, struct _EXCEPTION_POINTERS *  ExceptionInfo )
    272271{
    273272  dprintf(("CRTDLL: XcptFilter not implemented.\n"));
     
    371370
    372371/*********************************************************************
     372 *                  __fpecode            (CRTDLL.27)
     373 */
     374int * CDECL CRTDLL___fpecode ( void )
     375{       
     376        dprintf(("__fpecode not implemented.\n"));
     377        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     378        return FALSE;
     379}
     380
     381
     382/*********************************************************************
    373383 *           CRTDLL___isascii   (CRTDLL.28)
    374384 */
     
    404414
    405415/*********************************************************************
    406  *                  __mb_cur_max_dll    (CRTDLL.31)
    407  *      FIXME - Could not find anything about it
    408  */
    409 INT CDECL CRTDLL___mb_cur_max_dll(DWORD ret)
    410 {
    411   dprintf(("CRTDLL: __mb_cur_max_dll not implemented.\n"));
    412   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    413   return FALSE;
    414 }
    415 
    416 
    417 /*********************************************************************
    418  *           CRTDLL___threadhandle   (CRTDLL.32)
     416 *           CRTDLL___pxcptinfoptrs   (CRTDLL.32)
     417 */
     418void ** CDECL CRTDLL___pxcptinfoptrs (void)
     419{
     420  dprintf(("CRTDLL: __pxcptinfoptrs not implemented.\n"));
     421  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     422  return NULL;
     423}
     424
     425
     426/*********************************************************************
     427 *           CRTDLL___threadhandle   (CRTDLL.33)
    419428 */
    420429unsigned long CDECL CRTDLL___threadhandle( void )
    421430{
    422   dprintf(("CRTDLL: __threadhandle  not implemented.\n"));
    423   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    424   return FALSE;
    425 }
    426 
    427 
    428 /*********************************************************************
    429  *           CRTDLL___threadid   (CRTDLL.33)
     431  dprintf(("CRTDLL: __threadhandle not implemented.\n"));
     432  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     433  return FALSE;
     434}
     435
     436
     437/*********************************************************************
     438 *           CRTDLL___threadid   (CRTDLL.34)
    430439 */
    431440int * CDECL CRTDLL___threadid(void)
     
    459468
    460469/*********************************************************************
     470 *           CRTDLL___toascii   (CRTDLL.38)
     471 */
     472int CDECL CRTDLL___toascii(int c)
     473{
     474  dprintf(("CRTDLL: __toascii\n"));
     475  return ((unsigned)(c) & 0x7F );
     476}
     477
     478
     479/*********************************************************************
    461480 *                  _aexit_rtn_dll    (CRTDLL.39)
    462  *      FIXME - Could not find anything about it
    463  */
    464 INT CDECL CRTDLL__aexit_rtn_dll(DWORD ret)
    465 {
    466   dprintf(("CRTDLL: _aexit_rtn_dll not implemented.\n"));
    467   SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    468   return FALSE;
     481 */
     482VOID CDECL CRTDLL__aexit_rtn_dll(int exitcode)
     483{
     484  dprintf(("CRTDLL: _aexit_rtn_dll\n"));
     485  ExitProcess(exitcode);
    469486}
    470487
     
    472489/*********************************************************************
    473490 *                  _amsg_exit    (CRTDLL.40)
    474  *      FIXME - Could not find anything about it
    475  */
    476 INT CDECL CRTDLL__amsg_exit(DWORD ret)
    477 {
    478         dprintf(("CRTDLL: _amsg_exit not implemented.\n"));
    479         return 0;
     491 */
     492VOID CDECL CRTDLL__amsg_exit(int errnum)
     493{
     494  dprintf(("CRTDLL: _amsg_exit\n"));
     495  fprintf(stderr,strerror(errnum));
     496  ExitProcess(-1);
    480497}
    481498
     
    634651
    635652/*********************************************************************
     653 *                  CRTDLL__commit    (CRTDLL.58)
     654 */
     655int CDECL CRTDLL__commit( int handle )
     656{
     657  dprintf(("CRTDLL: _commit not implemented.\n"));
     658  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     659  return FALSE;
     660}
     661
     662
     663/*********************************************************************
    636664 *           CRTDLL__control87   (CRTDLL.60)
    637665 */
     
    753781  dprintf(("CRTDLL: _endthread\n"));
    754782  _endthread ();
     783}
     784
     785
     786/*********************************************************************
     787 *           CRTDLL___eof   (CRTDLL.76)
     788 */
     789int CDECL CRTDLL__eof( int _fd )
     790{
     791  dprintf(("CRTDLL: _eof\n"));
     792  int cur_pos = CRTDLL__lseek(_fd, 0, SEEK_CUR);
     793  int end_pos = CRTDLL__filelength( _fd );
     794  if ( cur_pos == -1 || end_pos == -1)
     795        return -1;
     796
     797  if ( cur_pos == end_pos )
     798        return 1;
     799
     800  return 0;
    755801}
    756802
     
    12331279
    12341280/*********************************************************************
     1281 *                  _getdllprocaddr     (CRTDLL.123)
     1282 */
     1283FARPROC CDECL  CRTDLL__getdllprocaddr(HMODULE hModule,char * lpProcName, int iOrdinal)
     1284{
     1285  dprintf(("CRTDLL: _getdllprocaddr\n"));   
     1286  if ( lpProcName != NULL )
     1287        return GetProcAddress(hModule, lpProcName);
     1288  else
     1289        return GetProcAddress(hModule, (LPSTR)iOrdinal);
     1290  return (NULL);
     1291}
     1292
     1293
     1294/*********************************************************************
    12351295 *                  _getdrive    (CRTDLL.124)
    12361296 */
     
    12601320  dprintf(("CRTDLL: _getpid\n"));
    12611321  return (_getpid());
     1322}
     1323
     1324
     1325/*********************************************************************
     1326 *                  _getsystime    (CRTDLL.127)
     1327 */
     1328unsigned int CDECL CRTDLL__getsystime(struct tm *tp)
     1329{
     1330  dprintf(("CRTDLL: _getsystime not implemented.\n"));
     1331  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     1332  return FALSE;
    12621333}
    12631334
     
    17211792  return FALSE;
    17221793//  return (_lfind(v1,v2,i1,i2,i3(v3,v4)));
     1794}
     1795
     1796
     1797/*********************************************************************
     1798 *                  _loaddll    (CRTDLL.171)
     1799 */
     1800void * CDECL CRTDLL__loaddll (char *name)
     1801{
     1802  dprintf(("CRTDLL: _loaddll not implemented.\n"));
     1803  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     1804  return FALSE;
    17231805}
    17241806
     
    25062588
    25072589/*********************************************************************
    2508  *                  _pctype_dll    (CRTDLL.245)
    2509  *      FIXME - Could not find anything about it
    2510  */
    2511 INT CDECL CRTDLL__pctype_dll(DWORD ret)
    2512 {
    2513         dprintf(("CRTDLL: _pctype_dll not implemented.\n"));
    2514         return 0;
    2515 }
    2516 
    2517 
    2518 /*********************************************************************
    25192590 *                  _pipe     (CRTDLL.247)
    25202591 */
     
    25352606  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    25362607  return FALSE;
     2608}
     2609
     2610
     2611/*********************************************************************
     2612 *                  _purecall     (CRTDLL.249)
     2613 */
     2614void CDECL CRTDLL__purecall(void)
     2615{
     2616  dprintf(("CRTDLL: _purecall\n"));
    25372617}
    25382618
     
    26702750        dprintf(("CRTDLL: _setmode\n"));
    26712751        return (_setmode(fh, mode));
     2752}
     2753
     2754
     2755/*********************************************************************
     2756 *                  _setsystime    (CRTDLL.264)
     2757 */
     2758unsigned int CDECL CRTDLL__setsystime(struct tm *tp, unsigned int ms)
     2759{
     2760  dprintf(("CRTDLL: _setsystime not implemented.\n"));
     2761  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     2762  return FALSE;
    26722763}
    26732764
     
    30493140
    30503141/*********************************************************************
     3142 *           CRTDLL__unloaddll   (CRTDLL.313)
     3143 */
     3144int CDECL CRTDLL__unloaddll(void *handle)
     3145{
     3146  dprintf(("CRTDLL: _unloaddll not implemented.\n"));
     3147  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     3148  return FALSE;
     3149}
     3150
     3151
     3152/*********************************************************************
    30513153 *           CRTDLL__utime       (CRTDLL.314)
    30523154 */
Note: See TracChangeset for help on using the changeset viewer.