- Timestamp:
- Oct 7, 1999, 11:28:49 AM (26 years ago)
- Location:
- trunk/src/crtdll
- Files:
-
- 3 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 */ -
trunk/src/crtdll/crtdll.def
r1118 r1160 1 ; $Id: crtdll.def,v 1. 7 1999-10-04 09:55:55sandervl Exp $1 ; $Id: crtdll.def,v 1.8 1999-10-07 09:28:48 sandervl Exp $ 2 2 3 3 ;Created by BLAST for IBM's compiler … … 120 120 _CItan = _CRTDLL__CItan @18 121 121 _CItanh = _CRTDLL__CItanh @19 122 ; _HUGE_dll@20122 _HUGE_dll = CRTDLL_HUGE_dll @20 123 123 _XcptFilter = _CRTDLL__XcptFilter @21 124 124 __GetMainArgs = _CRTDLL__GetMainArgs @22 … … 127 127 __dllonexit = _CRTDLL___dllonexit @25 128 128 __doserrno = _CRTDLL___doserrno @26 129 ; __fpecode@27129 __fpecode = _CRTDLL___fpecode @27 130 130 __isascii = _CRTDLL___isascii @28 131 131 __iscsym = _CRTDLL___iscsym @29 132 132 __iscsymf = _CRTDLL___iscsymf @30 133 __mb_cur_max_dll = _CRTDLL___mb_cur_max_dll@31134 ; __pxcptinfoptrs@32133 __mb_cur_max_dll = CRTDLL_mb_cur_max_dll @31 134 __pxcptinfoptrs = _CRTDLL___pxcptinfoptrs @32 135 135 __threadhandle = _CRTDLL___threadhandle @33 136 136 __threadid = _CRTDLL___threadid @34 137 ; __toascii@35137 __toascii = _CRTDLL___toascii @35 138 138 _abnormal_termination = _CRTDLL__abnormal_termination @36 139 139 _access = _CRTDLL__access @37 … … 158 158 _clearfp = _CRTDLL__clearfp @56 159 159 _close = _CRTDLL__close @57 160 ; _commit@58160 _commit = _CRTDLL__commit @58 161 161 _commode_dll = CRTDLL_commode_dll @59 162 162 _control87 = _CRTDLL__control87 @60 … … 164 164 _copysign = _CRTDLL__copysign @62 165 165 _cprintf = _CRTDLL__cprintf @63 166 ; _cpumode_dll@64166 _cpumode_dll = CRTDLL_cpumode_dll @64 167 167 _cputs = _CRTDLL__cputs @65 168 168 _creat = _CRTDLL__creat @66 169 169 _cscanf = _CRTDLL__cscanf @67 170 ; _ctype@68170 _ctype = CRTDLL_ctype @68 171 171 _cwait = _CRTDLL__cwait @69 172 172 _daylight_dll = CRTDLL_daylight_dll @70 … … 176 176 _endthread = _CRTDLL__endthread @74 177 177 _environ_dll = CRTDLL_environ_dll @75 178 ; _eof@76178 _eof = _CRTDLL__eof @76 179 179 _errno = _CRTDLL__errno @77 180 180 _except_handler2 = _CRTDLL__except_handler2 @78 … … 224 224 _getdcwd = _CRTDLL__getdcwd @121 225 225 _getdiskfree = _CRTDLL__getdiskfree @122 226 ; _getdllprocaddr@123226 _getdllprocaddr = _CRTDLL__getdllprocaddr @123 227 227 _getdrive = _CRTDLL__getdrive @124 228 228 _getdrives = _CRTDLL__getdrives @125 229 229 _getpid = _CRTDLL__getpid @126 230 ; _getsystime@127230 _getsystime = _CRTDLL__getsystime @127 231 231 _getw = _CRTDLL__getw @128 232 232 _global_unwind2 = _CRTDLL__global_unwind2 @129 … … 272 272 _kbhit = _CRTDLL__kbhit @169 273 273 _lfind = _CRTDLL__lfind @170 274 ; _loaddll@171274 _loaddll = _CRTDLL__loaddll @171 275 275 _local_unwind2 = _CRTDLL__local_unwind2 @172 276 276 _locking = _CRTDLL__locking @173 … … 294 294 _mbctombb = _CRTDLL__mbctombb @191 295 295 _mbctoupper = _CRTDLL__mbctoupper @192 296 ; _mbctype@193296 _mbctype = CRTDLL_mbctype @193 297 297 _mbsbtype = _CRTDLL__mbsbtype @194 298 298 _mbscat = _CRTDLL__mbscat @195 … … 347 347 _osversion_dll = CRTDLL_osversion_dll @243 348 348 _pclose = _CRTDLL__pclose @244 349 _pctype_dll = _CRTDLL__pctype_dll @245350 ; _pgmptr_dll@246349 _pctype_dll = CRTDLL_pctype_dll @245 350 _pgmptr_dll = CRTDLL_pgmptr_dll @246 351 351 _pipe = _CRTDLL__pipe @247 352 352 _popen = _CRTDLL__popen @248 353 ; _purecall@249353 _purecall = _CRTDLL__purecall @249 354 354 _putch = _CRTDLL__putch @250 355 355 _putenv = _CRTDLL__putenv @251 356 356 _putw = _CRTDLL__putw @252 357 ; _pwctype_dll@253357 _pwctype_dll = CRTDLL_pwctype_dll @253 358 358 _read = _CRTDLL__read @254 359 359 _rmdir = _CRTDLL__rmdir @255 … … 366 366 _setjmp = _CRTDLL__setjmp @262 367 367 _setmode = _CRTDLL__setmode @263 368 ; _setsystime@264368 _setsystime = _CRTDLL__setsystime @264 369 369 _sleep = _CRTDLL__sleep @265 370 370 _snprintf = NTDLL__snprintf @266 … … 416 416 _ungetch = _CRTDLL__ungetch @311 417 417 _unlink = _CRTDLL__unlink @312 418 ; _unloaddll@313418 _unloaddll = _CRTDLL__unloaddll @313 419 419 _utime = _CRTDLL__utime @314 420 420 _vsnprintf = NTDLL__vsnprintf @315 -
trunk/src/crtdll/crtinc.h
r1118 r1160 1 /* $Id: crtinc.h,v 1. 4 1999-10-04 09:55:56sandervl Exp $ */1 /* $Id: crtinc.h,v 1.5 1999-10-07 09:28:49 sandervl Exp $ */ 2 2 3 3 /* Definitions for the CRTDLL library (CRTDLL.DLL) … … 47 47 static new_handler_type new_handler; 48 48 49 CRTDLL_FILE * CDECL CRTDLL__fdopen(INT handle, LPCSTR mode); 50 51 52 49 double *CRTDLL_HUGE_dll; /* CRTDLL.20 */ 53 50 UINT CRTDLL_argc_dll; /* CRTDLL.23 */ 54 51 LPSTR *CRTDLL_argv_dll; /* CRTDLL.24 */ 52 int CRTDLL_mb_cur_max_dll; /* CRTDLL.31 */ 55 53 LPSTR CRTDLL_acmdln_dll; /* CRTDLL.38 */ 56 54 UINT CRTDLL_basemajor_dll; /* CRTDLL.42 */ … … 58 56 UINT CRTDLL_baseversion_dll; /* CRTDLL.44 */ 59 57 UINT CRTDLL_commode_dll; /* CRTDLL.59 */ 58 UCHAR *CRTDLL_cpumode_dll; /* CRTDLL.64 */ 59 USHORT *CRTDLL_ctype; /* CRTDLL.68 */ 60 60 UINT CRTDLL_daylight_dll; /* CRTDLL.70 */ 61 61 LPSTR CRTDLL_environ_dll; /* CRTDLL.75 */ 62 62 LPSTR CRTDLL_fileinfo_dll; /* CRTDLL.95 */ 63 63 UINT CRTDLL_fmode_dll; /* CRTDLL.104 */ 64 LPSTR CRTDLL_mbctype; /* CRTDLL.193 */ 64 65 UINT CRTDLL_osmajor_dll; /* CRTDLL.239 */ 65 66 UINT CRTDLL_osminor_dll; /* CRTDLL.240 */ … … 67 68 UINT CRTDLL_osver_dll; /* CRTDLL.242 */ 68 69 UINT CRTDLL_osversion_dll; /* CRTDLL.243 */ 70 USHORT CRTDLL_pctype_dll[] = {0,0}; /* CRTDLL.245 */ 71 LPSTR CRTDLL_pgmptr_dll; /* CRTDLL.246 */ 72 USHORT *CRTDLL_pwctype_dll; /* CRTDLL.253 */ 69 73 UINT CRTDLL_sys_errlist; /* CRTDLL.300 */ 70 74 UINT CRTDLL_sys_nerr_dll; /* CRTDLL.301 */ … … 75 79 UINT CRTDLL_winver_dll; /* CRTDLL.328 */ 76 80 77 INT CDECL NTDLL__wcsicmp( LPCWSTR str1, LPCWSTR str2 );78 INT CDECL CRTDLL_vfprintf( CRTDLL_FILE *file, LPSTR format, va_list args );79 VOID* CDECL CRTDLL_malloc(DWORD size);80 81 82 83 84 CRTDLL_FILE * CDECL CRTDLL__fdopen(INT handle, LPCSTR mode); 85 INT CDECL NTDLL__wcsicmp( LPCWSTR str1, LPCWSTR str2 ); 86 INT CDECL CRTDLL_vfprintf( CRTDLL_FILE *file, LPSTR format, va_list args ); 87 VOID * CDECL CRTDLL_malloc(DWORD size); 88 long CDECL CRTDLL__lseek(int handle,long offset,int origin); 89 long CDECL CRTDLL__filelength( int i ); 90 VOID CDECL CRTDLL__exit(DWORD ret);
Note:
See TracChangeset
for help on using the changeset viewer.