Changeset 1118 for trunk/src/crtdll/crtdll.cpp
- Timestamp:
- Oct 4, 1999, 11:56:04 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/crtdll/crtdll.cpp
r1083 r1118 1 /* $Id: crtdll.cpp,v 1. 6 1999-09-28 13:26:34 sandervl Exp $ */1 /* $Id: crtdll.cpp,v 1.7 1999-10-04 09:55:54 sandervl Exp $ */ 2 2 3 3 /* … … 29 29 #include <wctype.h> 30 30 #include <math.h> 31 #include <l ocale.h>31 #include <libc\locale.h> 32 32 #include <signal.h> 33 33 #include <io.h> … … 40 40 #include <drive.h> 41 41 #include <fcntl.h> 42 #include <search.h> 42 43 #include <sys\utime.h> 43 44 #include <sys\stat.h> … … 100 101 101 102 /********************************************************************* 103 * _CIacos (CRTDLL.004) 104 */ 105 double CDECL CRTDLL__CIacos( double x ) 106 { 107 dprintf(("NTDLL: _CIacos\n")); 108 dprintf(("should be register function\n")); 109 return acos(x); 110 } 111 112 113 /********************************************************************* 114 * _CIasin (CRTDLL.005) 115 */ 116 double CDECL CRTDLL__CIasin( double x ) 117 { 118 dprintf(("NTDLL: _CIasin\n")); 119 dprintf(("should be register function\n")); 120 return asin(x); 121 } 122 123 124 /********************************************************************* 125 * _CIatan (CRTDLL.006) 126 */ 127 double CDECL CRTDLL__CIatan( double x ) 128 { 129 dprintf(("NTDLL: _CIatan\n")); 130 dprintf(("should be register function\n")); 131 return atan(x); 132 } 133 134 135 /********************************************************************* 136 * _CIatan2 (CRTDLL.007) 137 */ 138 double CDECL CRTDLL__CIatan2( double x, double y ) 139 { 140 dprintf(("NTDLL: _CIatan2\n")); 141 dprintf(("should be register function\n")); 142 return atan2(x,y); 143 } 144 145 146 /********************************************************************* 147 * _CIcos (CRTDLL.008) 148 */ 149 double CDECL CRTDLL__CIcos( double x ) 150 { 151 dprintf(("NTDLL: _CIcos\n")); 152 dprintf(("should be register function\n")); 153 return cos(x); 154 } 155 156 157 /********************************************************************* 158 * _CIcosh (CRTDLL.009) 159 */ 160 double CDECL CRTDLL__CIcosh( double x ) 161 { 162 dprintf(("NTDLL: _CIcosh\n")); 163 dprintf(("should be register function\n")); 164 return cosh(x); 165 } 166 167 168 /********************************************************************* 169 * _CIexp (CRTDLL.010) 170 */ 171 double CDECL CRTDLL__CIexp( double x ) 172 { 173 dprintf(("NTDLL: _CIexp\n")); 174 dprintf(("should be register function\n")); 175 return exp(x); 176 } 177 178 179 /********************************************************************* 180 * _CIfmod (CRTDLL.011) 181 */ 182 double CDECL CRTDLL__CIfmod( double x, double y ) 183 { 184 dprintf(("NTDLL: _CIfmod\n")); 185 dprintf(("should be register function\n")); 186 return fmod(x,y); 187 } 188 189 190 /********************************************************************* 191 * _CIlog (CRTDLL.012) 192 */ 193 double CDECL CRTDLL__CIlog( double x ) 194 { 195 dprintf(("NTDLL: _CIlog\n")); 196 dprintf(("should be register function\n")); 197 return log(x); 198 } 199 200 201 /********************************************************************* 202 * _CIlog10 (CRTDLL.013) 203 */ 204 double CDECL CRTDLL__CIlog10( double x ) 205 { 206 dprintf(("NTDLL: _CIlog10\n")); 207 dprintf(("should be register function\n")); 208 return log10(x); 209 } 210 211 212 /********************************************************************* 213 * _CIsin (CRTDLL.015) 214 */ 215 double CDECL CRTDLL__CIsin( double x ) 216 { 217 dprintf(("NTDLL: _CIsin\n")); 218 dprintf(("should be register function\n")); 219 return sin(x); 220 } 221 222 223 /********************************************************************* 224 * _CIsinh (CRTDLL.016) 225 */ 226 double CDECL CRTDLL__CIsinh( double x ) 227 { 228 dprintf(("NTDLL: _CIsinh\n")); 229 dprintf(("should be register function\n")); 230 return sinh(x); 231 } 232 233 234 /********************************************************************* 235 * _CIsqrt (CRTDLL.017) 236 */ 237 double CDECL CRTDLL__CIsqrt( double x ) 238 { 239 dprintf(("NTDLL: _CIsqrt\n")); 240 dprintf(("should be register function\n")); 241 return acos(x); 242 } 243 244 245 /********************************************************************* 246 * _CItan (CRTDLL.018) 247 */ 248 double CDECL CRTDLL__CItan( double x ) 249 { 250 dprintf(("NTDLL: _CItan\n")); 251 dprintf(("should be register function\n")); 252 return tan(x); 253 } 254 255 256 /********************************************************************* 257 * _CItanh (CRTDLL.019) 258 */ 259 double CDECL CRTDLL__CItanh( double x ) 260 { 261 dprintf(("NTDLL: _CItanh\n")); 262 dprintf(("should be register function\n")); 263 return tanh(x); 264 } 265 266 267 /********************************************************************* 102 268 * _XcptFilter (CRTDLL.21) 103 269 * FIXME - Could not find anything about it … … 109 275 return FALSE; 110 276 } 277 111 278 112 279 /********************************************************************* … … 139 306 140 307 /* missing threading init */ 308 309 i=0;xargv=NULL;xargc=0;afterlastspace=0; 141 310 /* 142 i=0;xargv=NULL;xargc=0;afterlastspace=0;143 311 dprintf(("CRTDLL: GetMainArgs i loop\n")); 144 312 while (cmdline[i]) { … … 157 325 afterlastspace=i; 158 326 dprintf(("CRTDLL: GetMainArgs *3\n")); 327 159 328 } else 160 329 i++; 161 330 162 331 } 332 163 333 xargv=(char**)HeapReAlloc( GetProcessHeap(), 0, xargv, 164 334 sizeof(char*)*(++xargc)); … … 168 338 xargv[xargc-1] = HEAP_strdupA( GetProcessHeap(), 0, 169 339 cmdline+afterlastspace); 170 dprintf(("CRTDLL: GetMainArgs *6\n")); 171 dprintf(("CRTDLL: GetMainArgs *7\n")); 340 */ 172 341 CRTDLL_argc_dll = xargc; 173 dprintf(("CRTDLL: GetMainArgs *8\n"));174 342 *argc = xargc; 175 dprintf(("CRTDLL: GetMainArgs *9\n"));176 343 CRTDLL_argv_dll = xargv; 177 dprintf(("CRTDLL: GetMainArgs *11\n"));178 344 *argv = xargv; 179 */180 345 dprintf(("CRTDLL: GetMainArgs end\n")); 181 346 CRTDLL_environ_dll = *environ = GetEnvironmentStringsA(); … … 194 359 195 360 /********************************************************************* 361 * __doserrno (CRTDLL.26) 362 */ 363 long * CDECL CRTDLL___doserrno() 364 { 365 dprintf(("__doserrno not implemented.\n")); 366 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 367 return FALSE; 368 // return _doserrno(); 369 } 370 371 372 /********************************************************************* 196 373 * CRTDLL___isascii (CRTDLL.28) 197 374 */ … … 315 492 316 493 /********************************************************************* 494 * CRTDLL__beep (CRTDLL.45) 495 */ 496 void CDECL CRTDLL__beep(unsigned i1, unsigned i2) 497 { 498 dprintf(("_beep not implemented.\n")); 499 } 500 501 502 /********************************************************************* 317 503 * CRTDLL__beginthread (CRTDLL.46) 318 504 */ … … 338 524 339 525 /********************************************************************* 526 * CRTDLL__cabs (CRTDLL.48) 527 */ 528 double CDECL CRTDLL__cabs(struct complex * c) 529 { 530 dprintf(("CRTDLL: _cabs not implemented.\n")); 531 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 532 return FALSE; 533 // return (_cabs(c)); 534 } 535 536 537 /********************************************************************* 340 538 * _cexit (CRTDLL.49) 341 539 * … … 345 543 dprintf(("_cexit(%d)\n",ret)); 346 544 ExitProcess(ret); 545 } 546 547 548 /********************************************************************* 549 * CRTDLL__cgets (CRTDLL.50) 550 */ 551 char * CDECL CRTDLL__cgets( char *s ) 552 { 553 dprintf(("CRTDLL: _cgets\n")); 554 return (_cgets(s)); 347 555 } 348 556 … … 375 583 376 584 /********************************************************************* 585 * CRTDLL__chgsign (CRTDLL.53) 586 */ 587 double CDECL CRTDLL__chgsign(double x) 588 { 589 dprintf(("CRTDLL: _chgsign not implemented.\n")); 590 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 591 return FALSE; 592 } 593 594 595 /********************************************************************* 596 * CRTDLL__chmod (CRTDLL.54) 597 */ 598 int CDECL CRTDLL__chmod( const char *s, int i) 599 { 600 dprintf(("CRTDLL: _chmod\n")); 601 return (_chmod(s, i)); 602 } 603 604 605 /********************************************************************* 606 * CRTDLL__chsize (CRTDLL.55) 607 */ 608 int CDECL CRTDLL__chsize( int i, long l ) 609 { 610 dprintf(("CRTDLL: _chsize\n")); 611 return (_chsize(i, l)); 612 } 613 614 615 /********************************************************************* 616 * CRTDLL__clearfp (CRTDLL.56) 617 */ 618 unsigned int CDECL CRTDLL__clearfp( void ) 619 { 620 dprintf(("CRTDLL: _clearfp\n")); 621 return (_clear87()); 622 } 623 624 625 /********************************************************************* 377 626 * CRTDLL__close (CRTDLL.57) 378 627 */ … … 396 645 /********************************************************************* 397 646 * CRTDLL__controlfp (CRTDLL.61) 398 * FIXME - Could not find anything about it 399 */ 400 INT CDECL CRTDLL__controlfp(DWORD ret) 401 { 402 dprintf(("CRTDLL: _controlfp not implemented.\n")); 647 */ 648 unsigned CDECL CRTDLL__controlfp(unsigned i1,unsigned i2) 649 { 650 dprintf(("CRTDLL: _controlfp\n")); 651 return (_control87(i1, i2)); 652 } 653 654 655 /********************************************************************* 656 * CRTDLL__copysign (CRTDLL.62) 657 */ 658 double CDECL CRTDLL__copysign( double x, double y ) 659 { 660 dprintf(("CRTDLL: _copysign not implemented.\n")); 661 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 662 return FALSE; 663 } 664 665 666 /********************************************************************* 667 * CRTDLL__cprintf (CRTDLL.63) 668 */ 669 INT CDECL CRTDLL__cprintf( char *s, ... ) 670 { 671 dprintf(("CRTDLL: _cprintf not implemented.\n")); 672 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 673 return FALSE; 674 } 675 676 677 /********************************************************************* 678 * CRTDLL__cputs (CRTDLL.65) 679 */ 680 INT CDECL CRTDLL__cputs( char * s ) 681 { 682 dprintf(("CRTDLL: _cputs\n")); 683 return (_cputs(s)); 684 } 685 686 687 /********************************************************************* 688 * CRTDLL__creat (CRTDLL.66) 689 */ 690 INT CDECL CRTDLL__creat( const char *s, int i ) 691 { 692 dprintf(("CRTDLL: _creat\n")); 693 return (_creat(s, i)); 694 } 695 696 697 /********************************************************************* 698 * CRTDLL__cscanf (CRTDLL.67) 699 */ 700 INT CDECL CRTDLL__cscanf( char *s, ... ) 701 { 702 dprintf(("CRTDLL: _cscanf not implemented.\n")); 403 703 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 404 704 return FALSE; … … 479 779 480 780 /********************************************************************* 781 * CRTDLL__execl (CRTDLL.79) 782 */ 783 int CDECL CRTDLL__execl( char *s1, char *s2, ...) 784 { 785 dprintf(("CRTDLL: _execl not implemented.\n")); 786 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 787 return FALSE; 788 } 789 790 791 /********************************************************************* 792 * CRTDLL__execle (CRTDLL.80) 793 */ 794 int CDECL CRTDLL__execle( char *s1, char *s2, ...) 795 { 796 dprintf(("CRTDLL: _execle not implemented.\n")); 797 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 798 return FALSE; 799 } 800 801 802 /********************************************************************* 803 * CRTDLL__execlp (CRTDLL.81) 804 */ 805 int CDECL CRTDLL__execlp( char *s1, char *s2, ...) 806 { 807 dprintf(("CRTDLL: _execlp not implemented.\n")); 808 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 809 return FALSE; 810 } 811 812 813 /********************************************************************* 814 * CRTDLL__execlpe (CRTDLL.82) 815 */ 816 int CDECL CRTDLL__execlpe( char *s1, char *s2, ...) 817 { 818 dprintf(("CRTDLL: _execlpe not implemented.\n")); 819 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 820 return FALSE; 821 } 822 823 824 /********************************************************************* 825 * CRTDLL__execv (CRTDLL.83) 826 */ 827 int CDECL CRTDLL__execv( char *s1, char **s2) 828 { 829 dprintf(("CRTDLL: _execv\n")); 830 return (_execv(s1, s2)); 831 } 832 833 834 /********************************************************************* 835 * CRTDLL__execve (CRTDLL.84) 836 */ 837 int CDECL CRTDLL__execve( char *s1, char **s2, char **s3) 838 { 839 dprintf(("CRTDLL: _execve\n")); 840 return (_execve(s1, s2, s3)); 841 } 842 843 844 /********************************************************************* 845 * CRTDLL__execvp (CRTDLL.85) 846 */ 847 int CDECL CRTDLL__execvp( char *s1, char **s2) 848 { 849 dprintf(("CRTDLL: _execvp\n")); 850 return (_execvp(s1, s2)); 851 } 852 853 854 /********************************************************************* 855 * CRTDLL__execvpe (CRTDLL.86) 856 */ 857 int CDECL CRTDLL__execvpe( char *s1, char **s2, char **s3) 858 { 859 dprintf(("CRTDLL: _execvpe\n")); 860 return (_execvpe(s1, s2, s3)); 861 } 862 863 864 /********************************************************************* 481 865 * _exit (CRTDLL.87) 482 866 */ … … 496 880 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 497 881 return FALSE; 882 } 883 884 885 /********************************************************************* 886 * CRTDLL__fcloseall (CRTDLL.89) 887 */ 888 int CDECL CRTDLL__fcloseall( void ) 889 { 890 dprintf(("CRTDLL: _fcloseall\n")); 891 return (_fcloseall()); 498 892 } 499 893 … … 561 955 562 956 563 /********************************************************************* 564 * _findclose (CRTDLL.098) 565 */ 957 /********************************************************************* 958 * CRTDLL__filbuf (CRTDLL.94) 959 */ 960 int CDECL CRTDLL__filbuf(FILE * f) 961 { 962 dprintf(("CRTDLL: _filbuf not implemented.\n")); 963 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 964 return FALSE; 965 } 966 967 968 /********************************************************************* 969 * CRTDLL__filelength (CRTDLL.96) 970 */ 971 long CDECL CRTDLL__filelength( int i ) 972 { 973 dprintf(("CRTDLL: _filelength\n")); 974 return (_filelength(i)); 975 } 976 977 978 /********************************************************************* 979 * CRTDLL__fileno (CRTDLL.97) 980 */ 981 int CDECL CRTDLL__fileno(FILE * f) 982 { 983 dprintf(("CRTDLL: _fileno\n")); 984 return (_fileno(f)); 985 } 986 987 988 /********************************************************************* 989 * _findclose (CRTDLL.098) 990 */ 566 991 int CDECL CRTDLL__findclose( long handle ) 567 992 { … … 606 1031 607 1032 /********************************************************************* 1033 * _flsbuf (CRTDLL.102) 1034 */ 1035 INT CDECL CRTDLL__flsbuf(int i, FILE * f) 1036 { 1037 dprintf(("CRTDLL: _flsbuf not implemented.\n")); 1038 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1039 return FALSE; 1040 } 1041 1042 1043 /********************************************************************* 1044 * _flushall (CRTDLL.103) 1045 */ 1046 INT CDECL CRTDLL__flushall(void) 1047 { 1048 dprintf(("CRTDLL: _flushall\n")); 1049 return (_flushall()); 1050 } 1051 1052 1053 /********************************************************************* 1054 * _fpclass (CRTDLL.105) 1055 */ 1056 INT CDECL CRTDLL__fpclass( double x ) 1057 { 1058 dprintf(("CRTDLL: _fpclass not implemented.\n")); 1059 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1060 return FALSE; 1061 } 1062 1063 1064 /********************************************************************* 1065 * _fpieee_flt (CRTDLL.106) 1066 */ 1067 INT CDECL CRTDLL__fpieee_flt( unsigned long exc_code, struct _EXCEPTION_POINTERS *exc_info, int handler) 1068 { 1069 dprintf(("CRTDLL: _fpieee_flt not implemented.\n")); 1070 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1071 return FALSE; 1072 } 1073 1074 1075 1076 /********************************************************************* 608 1077 * _fpreset (CRTDLL.107) 609 1078 */ … … 681 1150 682 1151 /********************************************************************* 1152 * _futime (CRTDLL.115) 1153 */ 1154 int CDECL CRTDLL__futime( int handle, struct _utimbuf *filetime ) 1155 { 1156 dprintf(("CRTDLL: _futime not implemented.\n")); 1157 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1158 return FALSE; 1159 } 1160 1161 1162 /********************************************************************* 683 1163 * _gcvt (CRTDLL.116) 684 1164 */ … … 763 1243 764 1244 /********************************************************************* 1245 * _getdrives (CRTDLL.125) 1246 */ 1247 unsigned long CDECL CRTDLL__getdrives(void) 1248 { 1249 dprintf(("CRTDLL: _getdrives not implemented.\n")); 1250 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1251 return FALSE; 1252 } 1253 1254 1255 /********************************************************************* 1256 * _getpid (CRTDLL.126) 1257 */ 1258 int CDECL CRTDLL__getpid( void ) 1259 { 1260 dprintf(("CRTDLL: _getpid\n")); 1261 return (_getpid()); 1262 } 1263 1264 1265 /********************************************************************* 765 1266 * _getw (CRTDLL.128) 766 1267 */ … … 821 1322 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 822 1323 return FALSE; 1324 } 1325 1326 1327 /********************************************************************* 1328 * _hypot (CRTDLL.134) 1329 */ 1330 double CDECL CRTDLL__hypot(double x1, double x2) 1331 { 1332 dprintf(("CRTDLL: _hypot not implemented.\n")); 1333 return (_hypot(x1, x2)); 823 1334 } 824 1335 … … 1128 1639 1129 1640 1641 /********************************************************************* 1642 * _ismbslead (CRTDLL.162) 1643 */ 1644 int CDECL CRTDLL__ismbslead(const unsigned char *s1, const unsigned char *s2) 1645 { 1646 dprintf(("CRTDLL: _ismbslead not implemented.\n")); 1647 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1648 return FALSE; 1649 } 1650 1651 1652 /********************************************************************* 1653 * _ismbstrail (CRTDLL.163) 1654 */ 1655 int CDECL CRTDLL__ismbstrail(const unsigned char *s1, const unsigned char *s2) 1656 { 1657 dprintf(("CRTDLL: _ismbstrail not implemented.\n")); 1658 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1659 return FALSE; 1660 } 1661 1662 1663 /********************************************************************* 1664 * _isnan (CRTDLL.164) 1665 */ 1666 int CDECL CRTDLL__isnan( double x ) 1667 { 1668 dprintf(("CRTDLL: _isnan not implemented.\n")); 1669 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1670 return FALSE; 1671 } 1672 1673 1674 /********************************************************************* 1675 * _j0 (CRTDLL.166) 1676 */ 1677 double CDECL CRTDLL__j0(double x) 1678 { 1679 dprintf(("CRTDLL: _j0\n")); 1680 return (_j0(x)); 1681 } 1682 1683 1684 /********************************************************************* 1685 * _j1 (CRTDLL.167) 1686 */ 1687 double CDECL CRTDLL__j1(double x) 1688 { 1689 dprintf(("CRTDLL: _j1\n")); 1690 return (_j1(x));} 1691 1692 1693 /********************************************************************* 1694 * _jn (CRTDLL.168) 1695 */ 1696 double CDECL CRTDLL__jn(int i, double x) 1697 { 1698 dprintf(("CRTDLL: _jn\n")); 1699 return (_jn(i, x)); 1700 } 1701 1702 1703 /********************************************************************* 1704 * _kbhit (CRTDLL.169) 1705 */ 1706 int CDECL CRTDLL__kbhit( void ) 1707 { 1708 dprintf(("CRTDLL: _kbhit\n")); 1709 return (_kbhit()); 1710 } 1711 1712 1713 /********************************************************************* 1714 * _lfind (CRTDLL.170) 1715 */ 1716 void * CDECL CRTDLL__lfind(const void *v1, const void *v2, unsigned int *i1, unsigned int i2, 1717 int (CDECL *i3)(const void *v3, const void *v4)) 1718 { 1719 dprintf(("CRTDLL: _lfind not implemented.\n")); 1720 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1721 return FALSE; 1722 // return (_lfind(v1,v2,i1,i2,i3(v3,v4))); 1723 } 1724 1725 1130 1726 /******************************************************************* 1131 1727 * _local_unwind2 (CRTDLL.172) … … 1149 1745 1150 1746 /********************************************************************* 1747 * _logb (CRTDLL.174) 1748 */ 1749 double CDECL CRTDLL__logb( double x ) 1750 { 1751 dprintf(("CRTDLL: _logb not implemented.\n")); 1752 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1753 return FALSE; 1754 } 1755 1756 1757 /********************************************************************* 1151 1758 * _lrotl (CRTDLL.175) 1152 1759 */ … … 1165 1772 dprintf(("CRTDLL: _lrotr\n")); 1166 1773 return (_lrotr(value, shift)); 1774 } 1775 1776 1777 /********************************************************************* 1778 * _lsearch (CRTDLL.177) 1779 */ 1780 void * CDECL CRTDLL__lsearch(const void *v1, void *v2, unsigned int *i1, unsigned int i2, 1781 int (CDECL *i3)(const void *v3, const void *v4)) 1782 { 1783 dprintf(("CRTDLL: _lsearch not implemented.\n")); 1784 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1785 return FALSE; 1786 // return (_lsearch(v1,v2,i1,i2,i3(v3,v4))); 1167 1787 } 1168 1788 … … 1713 2333 1714 2334 /********************************************************************* 2335 * CRTDLL__mbstrlen (CRTDLL.228) 2336 */ 2337 size_t CDECL CRTDLL__mbstrlen(const char *s) 2338 { 2339 dprintf(("CRTDLL: _mbstrlen not implemented.\n")); 2340 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 2341 return FALSE; 2342 } 2343 2344 2345 /********************************************************************* 1715 2346 * CRTDLL__mbsupr (CRTDLL.229) 1716 2347 */ … … 1718 2349 { 1719 2350 dprintf(("CRTDLL: _mbsupr not implemented.\n")); 2351 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 2352 return FALSE; 2353 } 2354 2355 2356 /********************************************************************* 2357 * CRTDLL__memccpy (CRTDLL.230) 2358 */ 2359 void * CDECL CRTDLL__memccpy(void *v1, const void *v2, int i, size_t s) 2360 { 2361 dprintf(("CRTDLL: _memccpy not implemented.\n")); 1720 2362 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1721 2363 return FALSE; … … 1753 2395 dprintf(("CRTDLL: _msize\n")); 1754 2396 return (_msize(ptr)); 2397 } 2398 2399 2400 /********************************************************************* 2401 * _nextafter (CRTDLL.235) 2402 */ 2403 double CDECL CRTDLL__nextafter( double x, double y ) 2404 { 2405 dprintf(("CRTDLL: _nextafter not implemented.\n")); 2406 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 2407 return FALSE; 2408 } 2409 2410 2411 /********************************************************************* 2412 * _onexit (CRTDLL.236) 2413 */ 2414 onexit_t CDECL CRTDLL__onexit(onexit_t t) 2415 { 2416 dprintf(("CRTDLL: _onexit\n")); 2417 return (_onexit(t)); 1755 2418 } 1756 2419 … … 1874 2537 } 1875 2538 2539 2540 /********************************************************************* 2541 * _putch (CRTDLL.250) 2542 */ 2543 INT CDECL CRTDLL__putch( int i ) 2544 { 2545 dprintf(("CRTDLL: _putch\n")); 2546 return (_putch(i)); 2547 } 2548 2549 2550 /********************************************************************* 2551 * _putenv (CRTDLL.251) 2552 */ 2553 INT CDECL CRTDLL__putenv(const char *s) 2554 { 2555 dprintf(("CRTDLL: _putenv\n")); 2556 return (_putenv(s)); 2557 } 2558 2559 2560 /********************************************************************* 2561 * _putw (CRTDLL.252) 2562 */ 2563 INT CDECL CRTDLL__putw( int binint, FILE *fp ) 2564 { 2565 dprintf(("CRTDLL: _putw not implemented.\n")); 2566 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 2567 return FALSE; 2568 } 2569 2570 1876 2571 /********************************************************************* 1877 2572 * _read (CRTDLL.254) … … 1886 2581 1887 2582 /********************************************************************* 1888 * _putw (CRTDLL.252) 1889 */ 1890 INT CDECL CRTDLL__putw( int binint, FILE *fp ) 1891 { 1892 dprintf(("CRTDLL: _putw not implemented.\n")); 1893 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1894 return FALSE; 2583 * _rmdir (CRTDLL.255) 2584 */ 2585 INT CDECL CRTDLL__rmdir(const char *s1) 2586 { 2587 dprintf(("CRTDLL: _rmdir\n")); 2588 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 2589 return FALSE; 2590 // return (_rmdir(s1)); 2591 } 2592 2593 2594 /********************************************************************* 2595 * _rmtmp (CRTDLL.256) 2596 */ 2597 INT CDECL CRTDLL__rmtmp(void) 2598 { 2599 dprintf(("CRTDLL: _rmtmp\n")); 2600 return(_rmtmp()); 1895 2601 } 1896 2602 … … 1914 2620 return (_rotr(value, shift)); 1915 2621 } 1916 2622 2623 2624 /********************************************************************* 2625 * CRTDLL__scalb (CRTDLL.259) 2626 */ 2627 double CDECL CRTDLL__scalb( double x, long exp ) 2628 { 2629 dprintf(("CRTDLL: _scalb not implemented.\n")); 2630 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 2631 return FALSE; 2632 } 2633 1917 2634 1918 2635 /********************************************************************* … … 1922 2639 { 1923 2640 dprintf(("CRTDLL: _searchenv not implemented.\n")); 2641 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 2642 } 2643 2644 2645 /********************************************************************* 2646 * CRTDLL__seterrormode (CRTDLL.261) 2647 */ 2648 void CDECL CRTDLL__seterrormode(int i) 2649 { 2650 dprintf(("CRTDLL: _seterrormode not implemented.\n")); 1924 2651 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 1925 2652 } … … 1938 2665 /********************************************************************* 1939 2666 * _setmode (CRTDLL.263) 1940 * FIXME: At present we ignore the request to translate CR/LF to LF.1941 *1942 * We allways translate when we read with fgets, we never do with fread1943 *1944 2667 */ 1945 2668 INT CDECL CRTDLL__setmode( INT fh,INT mode) 1946 2669 { 1947 /* FIXME */ 1948 dprintf(("on fhandle %d mode %s, STUB.\n", 1949 fh,(mode=O_TEXT)?"O_TEXT": 1950 (mode=O_BINARY)?"O_BINARY":"UNKNOWN")); 1951 return -1; 2670 dprintf(("CRTDLL: _setmode\n")); 2671 return (_setmode(fh, mode)); 1952 2672 } 1953 2673 … … 1964 2684 1965 2685 /********************************************************************* 2686 * CRTDLL__sopen (CRTDLL.268) 2687 */ 2688 int CDECL CRTDLL__sopen( const char *s, int i1, int i2, ... ) 2689 { 2690 dprintf(("CRTDLL: _sopen not implemented.\n")); 2691 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 2692 return FALSE; 2693 } 2694 2695 2696 /********************************************************************* 2697 * CRTDLL__spawnl (CRTDLL.269) 2698 */ 2699 int CDECL CRTDLL__spawnl( int i, char *s1, char *s2, ... ) 2700 { 2701 dprintf(("CRTDLL: _spawnl not implemented.\n")); 2702 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 2703 return FALSE; 2704 } 2705 2706 2707 /********************************************************************* 2708 * CRTDLL__spawnle (CRTDLL.270) 2709 */ 2710 int CDECL CRTDLL__spawnle( int i, char *s1, char *s2, ... ) 2711 { 2712 dprintf(("CRTDLL: _spawnle not implemented.\n")); 2713 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 2714 return FALSE; 2715 } 2716 2717 2718 /********************************************************************* 2719 * CRTDLL__spawnlp (CRTDLL.271) 2720 */ 2721 int CDECL CRTDLL__spawnlp( int i, char *s1, char *s2, ... ) 2722 { 2723 dprintf(("CRTDLL: _spawnlp not implemented.\n")); 2724 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 2725 return FALSE; 2726 } 2727 2728 2729 /********************************************************************* 2730 * CRTDLL__spawnlpe (CRTDLL.272) 2731 */ 2732 int CDECL CRTDLL__spawnlpe( int i, char *s1, char *s2, ... ) 2733 { 2734 dprintf(("CRTDLL: _spawnlpe not implemented.\n")); 2735 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 2736 return FALSE; 2737 } 2738 2739 2740 /********************************************************************* 2741 * CRTDLL__spawnv (CRTDLL.273) 2742 */ 2743 int CDECL CRTDLL__spawnv( int i, char *s1, char ** s2 ) 2744 { 2745 dprintf(("CRTDLL: _spawnv\n")); 2746 return (_spawnv(i, s1, s2)); 2747 } 2748 2749 2750 /********************************************************************* 2751 * CRTDLL__spawnve (CRTDLL.274) 2752 */ 2753 int CDECL CRTDLL__spawnve( int i, char *s1, char ** s2, char ** s3 ) 2754 { 2755 dprintf(("CRTDLL: _spawnve\n")); 2756 return (_spawnve(i, s1, s2, s3)); 2757 } 2758 2759 2760 /********************************************************************* 2761 * CRTDLL__spawnvp (CRTDLL.275) 2762 */ 2763 int CDECL CRTDLL__spawnvp( int i, char *s1, char ** s2 ) 2764 { 2765 dprintf(("CRTDLL: _spawnvp\n")); 2766 return (_spawnvp(i, s1, s2)); 2767 } 2768 2769 /********************************************************************* 2770 * CRTDLL__spawnv (CRTDLL.276) 2771 */ 2772 int CDECL CRTDLL__spawnvpe( int i, char *s1, char ** s2, char ** s3 ) 2773 { 2774 dprintf(("CRTDLL: _spawnvpe\n")); 2775 return (_spawnvpe(i, s1, s2, s3)); 2776 } 2777 2778 2779 /********************************************************************* 1966 2780 * CRTDLL__stat (CRTDLL.278) 1967 2781 */ … … 1974 2788 1975 2789 /********************************************************************* 2790 * CRTDLL__statusfp (CRTDLL.279) 2791 */ 2792 unsigned int CDECL CRTDLL__statusfp( void ) 2793 { 2794 dprintf(("CRTDLL: _statusfp\n")); 2795 return (_status87()); 2796 } 2797 2798 2799 /********************************************************************* 1976 2800 * CRTDLL__strdate (CRTDLL.281) 1977 2801 */ … … 2000 2824 dprintf(("CRTDLL: _strdup\n")); 2001 2825 return HEAP_strdupA(GetProcessHeap(),0,ptr); 2826 } 2827 2828 2829 /********************************************************************* 2830 * CRTDLL__strerror (CRTDLL.284) 2831 */ 2832 char * CDECL CRTDLL__strerror(const char *s) 2833 { 2834 dprintf(("CRTDLL: _strerror not implemented\n")); 2835 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 2836 return FALSE; 2837 // return (_strerror(s)); 2002 2838 } 2003 2839 … … 2109 2945 2110 2946 /********************************************************************* 2947 * CRTDLL__swab (CRTDLL.299) 2948 */ 2949 void CDECL CRTDLL__swab(char *s1, char *s2, int i) 2950 { 2951 dprintf(("CRTDLL: _swab\n")); 2952 _swab(s1, s2, i); 2953 } 2954 2955 2956 /********************************************************************* 2957 * CRTDLL__tell (CRTDLL.302) 2958 */ 2959 long CDECL CRTDLL__tell( int i ) 2960 { 2961 dprintf(("CRTDLL: _tell\n")); 2962 return (_tell(i)); 2963 } 2964 2965 2966 /********************************************************************* 2111 2967 * CRTDLL__tempnam (CRTDLL.303) 2112 2968 */ … … 2135 2991 dprintf(("CRTDLL: _toupper\n")); 2136 2992 return (_toupper(n)); 2993 } 2994 2995 2996 /********************************************************************* 2997 * CRTDLL__tzset (CRTDLL.308) 2998 */ 2999 void CDECL CRTDLL__tzset( void ) 3000 { 3001 dprintf(("CRTDLL: _tzset not implemented.\n")); 3002 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 3003 } 3004 3005 3006 /********************************************************************* 3007 * CRTDLL__umask (CRTDLL.310) 3008 */ 3009 int CDECL CRTDLL__umask( int i ) 3010 { 3011 dprintf(("CRTDLL: _umask\n")); 3012 return (_umask(i)); 3013 } 3014 3015 3016 /********************************************************************* 3017 * CRTDLL__ungetch (CRTDLL.311) 3018 */ 3019 int CDECL CRTDLL__ungetch( int i ) 3020 { 3021 dprintf(("CRTDLL: _ungetch\n")); 3022 return (_ungetch(i)); 2137 3023 } 2138 3024 … … 2273 3159 2274 3160 /********************************************************************* 3161 * _y0 (CRTDLL.332) 3162 */ 3163 double CDECL CRTDLL__y0(double x) 3164 { 3165 dprintf(("CRTDLL: _y0\n")); 3166 return (_y0(x)); 3167 } 3168 3169 3170 /********************************************************************* 3171 * _y1 (CRTDLL.333) 3172 */ 3173 double CDECL CRTDLL__y1(double x) 3174 { 3175 dprintf(("CRTDLL: _y1\n")); 3176 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 3177 return (_y1(x)); 3178 } 3179 3180 3181 /********************************************************************* 3182 * _yn (CRTDLL.334) 3183 */ 3184 double CDECL CRTDLL__yn(int i, double x) 3185 { 3186 dprintf(("CRTDLL: _yn\n")); 3187 return (_yn(i, x)); 3188 } 3189 3190 3191 /********************************************************************* 2275 3192 * isleadbyte (CRTDLL.335) 2276 3193 */
Note:
See TracChangeset
for help on using the changeset viewer.