- Timestamp:
- Oct 28, 1999, 5:25:36 PM (26 years ago)
- Location:
- trunk/src/msvcrt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/msvcrt/msvcrt.cpp
r1118 r1494 1 /* $Id: msvcrt.cpp,v 1. 3 1999-10-04 09:55:58sandervl Exp $ */1 /* $Id: msvcrt.cpp,v 1.4 1999-10-28 15:25:35 sandervl Exp $ */ 2 2 3 3 /* … … 12 12 #include <os2win.h> 13 13 #include <wchar.h> 14 #include <except.h> 14 15 #include "debugtools.h" 15 16 #include <debugdefs.h> … … 18 19 DEFAULT_DEBUG_CHANNEL(msvcrt) 19 20 20 21 /********************************************************************* 22 * _XcptFilter (MSVCRT.21) 21 int __app_type; 22 int __usermatherr; 23 24 typedef struct 25 { 26 HANDLE handle; 27 int pad[7]; 28 } CRTDLL_FILE, *PCRTDLL_FILE; 29 30 extern LPSTR _acmdln_dll; 31 extern UINT _commode_dll; 32 extern UINT _fmode_dll; 33 extern INT __mb_cur_max_dll; 34 extern USHORT _pctype_dll; 35 extern CRTDLL_FILE _iob; 36 37 38 39 40 /********************************************************************* 41 * ??1type_info@@UAE@XZ (MSVCRT.14) 23 42 * FIXME - Could not find anything about it 24 43 */ 25 INT CDECL MSVCRT__XcptFilter(DWORD ret) 26 { 27 dprintf(("MSVCRT: _XcptFilter not implemented.\n")); 44 INT CDECL MSVCRT_EXP14(DWORD ret) 45 { 46 dprintf(("MSVCRT: ??1type_info@@UAE@XZ not implemented.\n")); 47 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 48 return FALSE; 49 } 50 51 52 /********************************************************************* 53 * ??2@YAPAXI@Z (MSVCRT.15) 54 * FIXME - Could not find anything about it 55 */ 56 INT CDECL MSVCRT_EXP15(DWORD ret) 57 { 58 dprintf(("MSVCRT: ??2@YAPAXI@Z not implemented.\n")); 59 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 60 return FALSE; 61 } 62 63 64 /********************************************************************* 65 * ??3@YAXPAX@Z (MSVCRT.16) 66 * FIXME - Could not find anything about it 67 */ 68 INT CDECL MSVCRT_EXP16(DWORD ret) 69 { 70 dprintf(("MSVCRT: ??3@YAXPAX@Z not implemented.\n")); 28 71 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 29 72 return FALSE; … … 68 111 69 112 /********************************************************************* 113 * __p__initenv (MSVCRT.101) 114 */ 115 char ** CDECL MSVCRT___p__initenv() 116 { 117 dprintf(("MSVCRT: __p__initenv not implemented\n")); 118 return &_acmdln_dll; 119 } 120 121 122 /********************************************************************* 123 * __p___mb_cur_max (MSVCRT.102) 124 */ 125 int * CDECL MSVCRT___p___mb_cur_max() 126 { 127 dprintf(("MSVCRT: __p___mb_cur_max\n")); 128 return &__mb_cur_max_dll; 129 } 130 131 132 /********************************************************************* 133 * __p__acmdln (MSVCRT.105) 134 */ 135 char ** CDECL MSVCRT___p__acmdln() 136 { 137 dprintf(("MSVCRT: __p__acmdln\n")); 138 return &_acmdln_dll; 139 } 140 141 /********************************************************************* 142 * __p__fmode (MSVCRT.107) 143 */ 144 int * CDECL MSVCRT___p__fmode() 145 { 146 dprintf(("MSVCRT: __p__fmode\n")); 147 return (int*)&_fmode_dll; 148 } 149 150 151 /********************************************************************* 152 * __p__commode (MSVCRT.112) 153 */ 154 int * CDECL MSVCRT___p__commode() 155 { 156 dprintf(("MSVCRT: __p__commode\n")); 157 return (int*)&_commode_dll; 158 } 159 160 161 /********************************************************************* 162 * __p__iob (MSVCRT.113) 163 */ 164 CRTDLL_FILE * CDECL MSVCRT___p__iob() 165 { 166 dprintf(("MSVCRT: __p__iob\n")); 167 return &_iob; 168 } 169 170 171 /********************************************************************* 172 * __p__pctype (MSVCRT.117) 173 */ 174 USHORT * CDECL MSVCRT___p__pctype() 175 { 176 dprintf(("MSVCRT: __p__pctype\n")); 177 return &_pctype_dll; 178 } 179 180 181 /********************************************************************* 182 * __set_app_type (MSVCRT.130) 183 */ 184 int CDECL MSVCRT___set_app_type(int app_type) 185 { 186 dprintf(("MSVCRT: __set_app_type\n")); 187 return __app_type = app_type; 188 } 189 190 191 /********************************************************************* 192 * __setusermatherr (MSVCRT.132) 193 */ 194 int CDECL MSVCRT___setusermatherr(int matherr) 195 { 196 dprintf(("MSVCRT: __setusermatherr\n")); 197 return __usermatherr = matherr; 198 } 199 200 201 /********************************************************************* 202 * _adjust_fdiv (MSVCRT.158) 203 * FIXME - Could not find anything about it 204 */ 205 INT CDECL MSVCRT__adjust_fdiv(DWORD ret) 206 { 207 dprintf(("MSVCRT: _adjust_fdiv not implemented.\n")); 208 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 209 return FALSE; 210 } 211 212 213 /********************************************************************* 214 * _except_handler3 (MSVCRT.203) 215 */ 216 INT CDECL MSVCRT__except_handler3 ( PEXCEPTION_RECORD rec, 217 PEXCEPTION_FRAME frame, PCONTEXT context, 218 PEXCEPTION_FRAME *dispatcher) 219 { 220 dprintf(("MSVCRT: _except_handler3\n")); 221 return 1; 222 } 223 224 225 /********************************************************************* 70 226 * _get_sbh_threshold (MSVCRT.247) 71 227 */ -
trunk/src/msvcrt/msvcrt.def
r1118 r1494 1 ; $Id: msvcrt.def,v 1. 3 1999-10-04 09:55:59sandervl Exp $1 ; $Id: msvcrt.def,v 1.4 1999-10-28 15:25:36 sandervl Exp $ 2 2 3 3 ;Created by BLAST for IBM's compiler … … 105 105 CRTDLL___dllonexit = CRTDLL.__dllonexit 106 106 CRTDLL___doserrno = CRTDLL.__doserrno 107 CRTDLL___fpecode = CRTDLL.__fpecode 107 108 CRTDLL___GetMainArgs = CRTDLL.__GetMainArgs 108 109 CRTDLL___isascii = CRTDLL.__isascii … … 127 128 CRTDLL__CItan = CRTDLL._CItan 128 129 CRTDLL__CItanh = CRTDLL._CItanh 130 CRTDLL__abnormal_termination = CRTDLL._abnormal_termination 129 131 CRTDLL__access = CRTDLL._access 130 CRTDLL__acmdln_dll = CRTDLL. acmdln_dll131 CRTDLL__aexit_rtn_dll = CRTDLL. aexit_rtn_dll132 CRTDLL__acmdln_dll = CRTDLL._acmdln_dll 133 CRTDLL__aexit_rtn_dll = CRTDLL._aexit_rtn_dll 132 134 CRTDLL__amsg_exit = CRTDLL._amsg_exit 133 CRTDLL__argc_dll = CRTDLL. argc_dll134 CRTDLL__argv_dll = CRTDLL. argv_dll135 CRTDLL__argc_dll = CRTDLL._argc_dll 136 CRTDLL__argv_dll = CRTDLL._argv_dll 135 137 CRTDLL__assert = CRTDLL._assert 136 138 CRTDLL__beep = CRTDLL._beep … … 147 149 CRTDLL__clearfp = CRTDLL._clearfp 148 150 CRTDLL__close = CRTDLL._close 149 CRTDLL__commode_dll = CRTDLL.commode_dll 151 CRTDLL__commit = CRTDLL._commit 152 CRTDLL__commode_dll = CRTDLL._commode_dll 150 153 CRTDLL__control87 = CRTDLL._control87 151 154 CRTDLL__controlfp = CRTDLL._controlfp … … 156 159 CRTDLL__cscanf = CRTDLL._cscanf 157 160 CRTDLL__cwait = CRTDLL._cwait 158 CRTDLL__daylight_dll = CRTDLL. daylight_dll161 CRTDLL__daylight_dll = CRTDLL._daylight_dll 159 162 CRTDLL__dup = CRTDLL._dup 160 163 CRTDLL__dup2 = CRTDLL._dup2 161 164 CRTDLL__ecvt = CRTDLL._ecvt 162 165 CRTDLL__endthread = CRTDLL._endthread 163 CRTDLL__environ_dll = CRTDLL.environ_dll 166 CRTDLL__environ_dll = CRTDLL._environ_dll 167 CRTDLL__eof = CRTDLL._eof 164 168 CRTDLL__errno = CRTDLL._errno 165 169 CRTDLL__except_handler2 = CRTDLL._except_handler2 … … 180 184 CRTDLL__fgetwchar = CRTDLL._fgetwchar 181 185 CRTDLL__filbuf = CRTDLL._filbuf 182 CRTDLL__fileinfo_dll = CRTDLL. fileinfo_dll186 CRTDLL__fileinfo_dll = CRTDLL._fileinfo_dll 183 187 CRTDLL__filelength = CRTDLL._filelength 184 188 CRTDLL__fileno = CRTDLL._fileno … … 189 193 CRTDLL__flsbuf = CRTDLL._flsbuf 190 194 CRTDLL__flushall = CRTDLL._flushall 191 CRTDLL__fmode_dll = CRTDLL. fmode_dll195 CRTDLL__fmode_dll = CRTDLL._fmode_dll 192 196 CRTDLL__fpclass = CRTDLL._fpclass 193 197 CRTDLL__fpieee_flt = CRTDLL._fpieee_flt … … 210 214 CRTDLL__getdrives = CRTDLL._getdrives 211 215 CRTDLL__getpid = CRTDLL._getpid 216 CRTDLL__getsystime = CRTDLL._getsystime 212 217 CRTDLL__getw = CRTDLL._getw 213 218 CRTDLL__getws = CRTDLL._getws … … 252 257 CRTDLL__kbhit = CRTDLL._kbhit 253 258 CRTDLL__lfind = CRTDLL._lfind 259 CRTDLL__loaddll = CRTDLL._loaddll 254 260 CRTDLL__local_unwind2 = CRTDLL._local_unwind2 255 261 CRTDLL__locking = CRTDLL._locking … … 316 322 CRTDLL__open_osfhandle = CRTDLL._open_osfhandle 317 323 CRTDLL__pclose = CRTDLL._pclose 318 CRTDLL__pctype_dll = CRTDLL. pctype_dll324 CRTDLL__pctype_dll = CRTDLL._pctype_dll 319 325 CRTDLL__pipe = CRTDLL._pipe 320 326 CRTDLL__popen = CRTDLL._popen 327 CRTDLL__purecall = CRTDLL._purecall 321 328 CRTDLL__putch = CRTDLL._putch 322 329 CRTDLL__putenv = CRTDLL._putenv … … 332 339 CRTDLL__setmode = CRTDLL._setmode 333 340 CRTDLL__seterrormode = CRTDLL._seterrormode 341 CRTDLL__setsystime = CRTDLL._setsystime 334 342 CRTDLL__spawnl = CRTDLL._spawnl 335 343 CRTDLL__spawnle = CRTDLL._spawnle … … 354 362 CRTDLL__swab = CRTDLL._swab 355 363 CRTDLL__sys_errlist = CRTDLL.sys_errlist 356 CRTDLL__sys_nerr_dll = CRTDLL. sys_nerr_dll364 CRTDLL__sys_nerr_dll = CRTDLL._sys_nerr_dll 357 365 CRTDLL__tell = CRTDLL._tell 358 366 CRTDLL__tempnam = CRTDLL._tempnam 359 CRTDLL__timezone_dll = CRTDLL. timezone_dll367 CRTDLL__timezone_dll = CRTDLL._timezone_dll 360 368 CRTDLL__tolower = CRTDLL._tolower 361 369 CRTDLL__toupper = CRTDLL._toupper 362 370 CRTDLL__tzset = CRTDLL._tzset 363 CRTDLL__tzname = CRTDLL. tzname371 CRTDLL__tzname = CRTDLL._tzname 364 372 CRTDLL__ungetch = CRTDLL._ungetch 365 373 CRTDLL__unlink = CRTDLL._unlink 374 CRTDLL__unloaddll = CRTDLL._unloaddll 366 375 CRTDLL__utime = CRTDLL._utime 367 376 CRTDLL__vsnwprintf = CRTDLL._vsnwprintf … … 371 380 CRTDLL__wcsrev = CRTDLL._wcsrev 372 381 CRTDLL__wcsset = CRTDLL._wcsset 373 CRTDLL__winmajor_dll = CRTDLL. winmajor_dll374 CRTDLL__winminor_dll = CRTDLL. winminor_dll375 CRTDLL__winver_dll = CRTDLL. winver_dll382 CRTDLL__winmajor_dll = CRTDLL._winmajor_dll 383 CRTDLL__winminor_dll = CRTDLL._winminor_dll 384 CRTDLL__winver_dll = CRTDLL._winver_dll 376 385 CRTDLL__write = CRTDLL._write 386 CRTDLL__XcptFilter = CRTDLL._XcptFilter 377 387 CRTDLL__y0 = CRTDLL._y0 378 388 CRTDLL__y1 = CRTDLL._y1 … … 391 401 CRTDLL_cosh = CRTDLL.cosh 392 402 CRTDLL_ctime = CRTDLL.ctime 403 CRTDLL_ctype = CRTDLL.ctype 393 404 CRTDLL_difftime = CRTDLL.difftime 394 405 CRTDLL_div = CRTDLL.div … … 425 436 CRTDLL_gets = CRTDLL.gets 426 437 CRTDLL_gmtime = CRTDLL.gmtime 438 CRTDLL_HUGE_dll = CRTDLL._HUGE_dll 427 439 CRTDLL_is_wctype = CRTDLL.is_wctype 428 440 CRTDLL_isalnum = CRTDLL.isalnum … … 449 461 CRTDLL_longjmp = CRTDLL.longjmp 450 462 CRTDLL_malloc = CRTDLL.malloc 463 CRTDLL_mbctype = CRTDLL.mbctype 451 464 CRTDLL_mblen = CRTDLL.mblen 452 465 CRTDLL_mbtowc = CRTDLL.mbtowc 453 466 CRTDLL_mktime = CRTDLL.mktime 454 467 CRTDLL_modf = CRTDLL.modf 468 CRTDLL_osver_dll = CRTDLL._osver_dll 455 469 CRTDLL_perror = CRTDLL.perror 470 CRTDLL_pgmptr_dll = CRTDLL._pgmptr_dll 456 471 CRTDLL_printf = CRTDLL.printf 457 472 CRTDLL_putc = CRTDLL.putc 458 473 CRTDLL_putchar = CRTDLL.putchar 459 474 CRTDLL_puts = CRTDLL.puts 475 CRTDLL_pwctype_dll = CRTDLL._pwctype_dll 460 476 CRTDLL_raise = CRTDLL.raise 461 477 CRTDLL_rand = CRTDLL.rand … … 515 531 ; ??1bad_typeid@@UAE@XZ @12 516 532 ; ??1exception@@UAE@XZ @13 517 ; ??1type_info@@UAE@XZ@14518 ; ??2@YAPAXI@Z@15519 ; ??3@YAXPAX@Z@16533 ??1type_info@@UAE@XZ = _MSVCRT_EXP14 @14 534 ??2@YAPAXI@Z = _MSVCRT_EXP15 @15 535 ??3@YAXPAX@Z = _MSVCRT_EXP16 @16 520 536 ; ??4__non_rtti_object@@QAEAAV0@ABV0@@Z @17 521 537 ; ??4bad_cast@@QAEAAV0@ABV0@@Z @18 … … 572 588 ; _Getmonths @69 573 589 ; _Gettnames @70 574 ; _HUGE@71590 _HUGE = CRTDLL_HUGE_dll @71 575 591 ; _Strftime = @72 576 _XcptFilter = _MSVCRT__XcptFilter @73592 _XcptFilter = CRTDLL__XcptFilter @73 577 593 __CxxFrameHandler = _MSVCRT___CxxFrameHandler @74 578 594 ; __CxxLongjmpUnwind @75 … … 589 605 __dllonexit = CRTDLL___dllonexit @86 590 606 __doserrno = CRTDLL___doserrno @87 591 ; __fpecode@88607 __fpecode = CRTDLL___fpecode @88 592 608 __getmainargs = CRTDLL___GetMainArgs @89 593 609 ; __initenv @90 … … 604 620 605 621 ; __p___argv @100 606 ; __p___initenv@101607 ; __p___mb_cur_max@102622 __p___initenv = _MSVCRT___p__initenv @101 623 __p___mb_cur_max = _MSVCRT___p___mb_cur_max @102 608 624 ; __p___wargv @103 609 625 ; __p___winitenv @104 610 ; __p__acmdln@105626 __p__acmdln = _MSVCRT___p__acmdln @105 611 627 ; __p__amblksiz @106 612 ; __p__commode@107628 __p__commode = _MSVCRT___p__commode @107 613 629 ; __p__daylight @108 614 630 ; __p__dstbias @109 615 631 ; __p__environ @110 616 632 ; __p__fileinfo @111 617 ; __p__fmode@112618 ; __p__iob@113633 __p__fmode = _MSVCRT___p__fmode @112 634 __p__iob = _MSVCRT___p__iob @113 619 635 ; __p__mbcasemap @114 620 636 ; __p__mbctype @115 621 637 ; __p__osver @116 622 ; __p__pctype@117638 __p__pctype = _MSVCRT___p__pctype @117 623 639 ; __p__pgmptr @118 624 640 ; __p__pwctype @119 … … 633 649 ; __pioinfo @128 634 650 ; __pxcptinfoptrs @129 635 ; __set_app_type@130651 __set_app_type = _MSVCRT___set_app_type @130 636 652 ; __setlc_active @131 637 ; __setusermatherr@132653 __setusermatherr = _MSVCRT___setusermatherr @132 638 654 __threadhandle = CRTDLL___threadhandle @133 639 655 __threadid = CRTDLL___threadid @134 640 ; __toascii 656 ; __toascii = CRTDLL___toascii @135 641 657 ; __unDName @136 642 658 ; __unDNameEx @137 … … 645 661 ; __wgetmainargs @140 646 662 ; __winitenv @141 647 ; _abnormal_termination@142663 _abnormal_termination = CRTDLL__abnormal_termination @142 648 664 _access = CRTDLL__access @143 649 665 _acmdln = CRTDLL__acmdln_dll @144 … … 661 677 ; _adj_fprem1 @156 662 678 ; _adj_fptan @157 663 ; _adjust_fdiv@158679 _adjust_fdiv = _MSVCRT__adjust_fdiv @158 664 680 _aexit_rtn = CRTDLL__aexit_rtn_dll @159 665 681 _amsg_exit = CRTDLL__amsg_exit @160 … … 683 699 _clearfp = CRTDLL__clearfp @179 684 700 _close = CRTDLL__close @180 685 ; _commit@181701 _commit = CRTDLL__commit @181 686 702 _commode = CRTDLL__commode_dll @182 687 703 _control87 = CRTDLL__control87 @183 … … 692 708 _creat = CRTDLL__creat @188 693 709 _cscanf = CRTDLL__cscanf @189 694 ; _ctype@190710 _ctype = CRTDLL_ctype @190 695 711 _cwait = CRTDLL__cwait @191 696 712 _daylight_dll = CRTDLL__daylight_dll @192 … … 704 720 705 721 706 ; _eof@200722 _eof = CRTDLL__eof @200 707 723 _errno = CRTDLL__errno @201 708 724 _except_handler2 = CRTDLL__except_handler2 @202 709 ; _except_handler3@203725 _except_handler3 = _MSVCRT__except_handler3 @203 710 726 _execl = CRTDLL__execl @204 711 727 _execle = CRTDLL__execle @205 … … 763 779 _getmbcp = _MSVCRT__getmbcp @257 764 780 _getpid = CRTDLL__getpid @258 765 ; _getsystime@259781 _getsystime = CRTDLL__getsystime @259 766 782 _getw = CRTDLL__getw @260 767 783 _getws = CRTDLL__getws @261 … … 821 837 _kbhit = CRTDLL__kbhit @314 822 838 _lfind = CRTDLL__lfind @315 823 ; _loaddll@316839 _loaddll = CRTDLL__loaddll @316 824 840 _local_unwind2 = CRTDLL__local_unwind2 @317 825 841 ; _lock @318 826 842 _locking = CRTDLL__locking @319 827 843 _logb = CRTDLL__logb @320 828 ; _longjmpex @321 844 _longjmpex = CRTDLL_longjmp @321 ; Not correct 829 845 _lrotl = CRTDLL__lrotl @322 830 846 _lrotr = CRTDLL__lrotr @323 … … 847 863 _mbctombb = CRTDLL__mbctombb @340 848 864 _mbctoupper = CRTDLL__mbctoupper @341 849 ; _mbctype@342865 _mbctype = CRTDLL_mbctype @342 850 866 _mbsbtype = CRTDLL__mbsbtype @343 851 867 _mbscat = CRTDLL__mbscat @344 … … 899 915 _open = CRTDLL__open @392 900 916 _open_osfhandle = CRTDLL__open_osfhandle @393 901 ; _osver@394917 _osver = CRTDLL_osver_dll @394 902 918 _outp = _MSVCRT__outp @395 903 919 _outpd = _MSVCRT__outpd @396 … … 907 923 908 924 909 ; _pgmptr@400925 _pgmptr = CRTDLL_pgmptr_dll @400 910 926 _pipe = CRTDLL__pipe @401 911 927 _popen = CRTDLL__popen @402 912 ; _purecall@403928 _purecall = CRTDLL__purecall @403 913 929 _putch = CRTDLL__putch @404 914 930 _putenv = CRTDLL__putenv @405 915 931 _putw = CRTDLL__putw @406 916 932 _putws = _MSVCRT__putws @407 917 ; _pwctype@408933 _pwctype = CRTDLL_pwctype_dll @408 918 934 _read = CRTDLL__read @409 919 935 _rmdir = CRTDLL__rmdir @410 … … 932 948 _seterrormode = CRTDLL__seterrormode @423 933 949 _setjmp = CRTDLL__setjmp @424 934 ; _setjmp3 @425 950 _setjmp3 = CRTDLL__setjmp @425 ; Not correct 935 951 ; _setmaxstdio @426 936 952 ; _setmbcp @427 937 953 _setmode @428 938 ; _setsystime@429954 _setsystime = CRTDLL__setsystime @429 939 955 _sleep = CRTDLL__sleep @430 940 956 _snprintf = NTDLL__snprintf @431 … … 986 1002 _ungetch = CRTDLL__ungetch @477 987 1003 _unlink = CRTDLL__unlink @478 988 ; _unloaddll@4791004 _unloaddll = CRTDLL__unloaddll @479 989 1005 ; _unlock @480 990 1006 _utime = CRTDLL__utime @481
Note:
See TracChangeset
for help on using the changeset viewer.