Changeset 1160 for trunk/src/crtdll/crtdll.cpp
- Timestamp:
- Oct 7, 1999, 11:28:49 AM (26 years ago)
- 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:54sandervl Exp $ */1 /* $Id: crtdll.cpp,v 1.8 1999-10-07 09:28:48 sandervl Exp $ */ 2 2 3 3 /* … … 267 267 /********************************************************************* 268 268 * _XcptFilter (CRTDLL.21) 269 * FIXME - Could not find anything about it 270 */ 271 INT CDECL CRTDLL__XcptFilter(DWORD ret) 269 */ 270 INT CDECL CRTDLL__XcptFilter(DWORD ret, struct _EXCEPTION_POINTERS * ExceptionInfo ) 272 271 { 273 272 dprintf(("CRTDLL: XcptFilter not implemented.\n")); … … 371 370 372 371 /********************************************************************* 372 * __fpecode (CRTDLL.27) 373 */ 374 int * CDECL CRTDLL___fpecode ( void ) 375 { 376 dprintf(("__fpecode not implemented.\n")); 377 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 378 return FALSE; 379 } 380 381 382 /********************************************************************* 373 383 * CRTDLL___isascii (CRTDLL.28) 374 384 */ … … 404 414 405 415 /********************************************************************* 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 */ 418 void ** 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) 419 428 */ 420 429 unsigned long CDECL CRTDLL___threadhandle( void ) 421 430 { 422 dprintf(("CRTDLL: __threadhandle 423 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 424 return FALSE; 425 } 426 427 428 /********************************************************************* 429 * CRTDLL___threadid (CRTDLL.3 3)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) 430 439 */ 431 440 int * CDECL CRTDLL___threadid(void) … … 459 468 460 469 /********************************************************************* 470 * CRTDLL___toascii (CRTDLL.38) 471 */ 472 int CDECL CRTDLL___toascii(int c) 473 { 474 dprintf(("CRTDLL: __toascii\n")); 475 return ((unsigned)(c) & 0x7F ); 476 } 477 478 479 /********************************************************************* 461 480 * _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 */ 482 VOID CDECL CRTDLL__aexit_rtn_dll(int exitcode) 483 { 484 dprintf(("CRTDLL: _aexit_rtn_dll\n")); 485 ExitProcess(exitcode); 469 486 } 470 487 … … 472 489 /********************************************************************* 473 490 * _amsg_exit (CRTDLL.40) 474 * FIXME - Could not find anything about it475 */ 476 INT CDECL CRTDLL__amsg_exit(DWORD ret) 477 { 478 dprintf(("CRTDLL: _amsg_exit not implemented.\n"));479 return 0;491 */ 492 VOID CDECL CRTDLL__amsg_exit(int errnum) 493 { 494 dprintf(("CRTDLL: _amsg_exit\n")); 495 fprintf(stderr,strerror(errnum)); 496 ExitProcess(-1); 480 497 } 481 498 … … 634 651 635 652 /********************************************************************* 653 * CRTDLL__commit (CRTDLL.58) 654 */ 655 int 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 /********************************************************************* 636 664 * CRTDLL__control87 (CRTDLL.60) 637 665 */ … … 753 781 dprintf(("CRTDLL: _endthread\n")); 754 782 _endthread (); 783 } 784 785 786 /********************************************************************* 787 * CRTDLL___eof (CRTDLL.76) 788 */ 789 int 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; 755 801 } 756 802 … … 1233 1279 1234 1280 /********************************************************************* 1281 * _getdllprocaddr (CRTDLL.123) 1282 */ 1283 FARPROC 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 /********************************************************************* 1235 1295 * _getdrive (CRTDLL.124) 1236 1296 */ … … 1260 1320 dprintf(("CRTDLL: _getpid\n")); 1261 1321 return (_getpid()); 1322 } 1323 1324 1325 /********************************************************************* 1326 * _getsystime (CRTDLL.127) 1327 */ 1328 unsigned int CDECL CRTDLL__getsystime(struct tm *tp) 1329 { 1330 dprintf(("CRTDLL: _getsystime not implemented.\n")); 1331 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1332 return FALSE; 1262 1333 } 1263 1334 … … 1721 1792 return FALSE; 1722 1793 // return (_lfind(v1,v2,i1,i2,i3(v3,v4))); 1794 } 1795 1796 1797 /********************************************************************* 1798 * _loaddll (CRTDLL.171) 1799 */ 1800 void * CDECL CRTDLL__loaddll (char *name) 1801 { 1802 dprintf(("CRTDLL: _loaddll not implemented.\n")); 1803 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1804 return FALSE; 1723 1805 } 1724 1806 … … 2506 2588 2507 2589 /********************************************************************* 2508 * _pctype_dll (CRTDLL.245)2509 * FIXME - Could not find anything about it2510 */2511 INT CDECL CRTDLL__pctype_dll(DWORD ret)2512 {2513 dprintf(("CRTDLL: _pctype_dll not implemented.\n"));2514 return 0;2515 }2516 2517 2518 /*********************************************************************2519 2590 * _pipe (CRTDLL.247) 2520 2591 */ … … 2535 2606 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 2536 2607 return FALSE; 2608 } 2609 2610 2611 /********************************************************************* 2612 * _purecall (CRTDLL.249) 2613 */ 2614 void CDECL CRTDLL__purecall(void) 2615 { 2616 dprintf(("CRTDLL: _purecall\n")); 2537 2617 } 2538 2618 … … 2670 2750 dprintf(("CRTDLL: _setmode\n")); 2671 2751 return (_setmode(fh, mode)); 2752 } 2753 2754 2755 /********************************************************************* 2756 * _setsystime (CRTDLL.264) 2757 */ 2758 unsigned 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; 2672 2763 } 2673 2764 … … 3049 3140 3050 3141 /********************************************************************* 3142 * CRTDLL__unloaddll (CRTDLL.313) 3143 */ 3144 int 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 /********************************************************************* 3051 3153 * CRTDLL__utime (CRTDLL.314) 3052 3154 */
Note:
See TracChangeset
for help on using the changeset viewer.