Index: trunk/src/crtdll/crtdll.cpp
===================================================================
--- trunk/src/crtdll/crtdll.cpp	(revision 963)
+++ trunk/src/crtdll/crtdll.cpp	(revision 965)
@@ -1,3 +1,3 @@
-/* $Id: crtdll.cpp,v 1.2 1999-09-13 09:05:13 sandervl Exp $ */
+/* $Id: crtdll.cpp,v 1.3 1999-09-18 10:36:34 sandervl Exp $ */
 
 /*
@@ -31,4 +31,13 @@
 #include <locale.h>
 #include <signal.h>
+#include <io.h>
+#include <assert.h>
+#include <process.h>
+#include <float.h>
+#include <conio.h>
+#include <direct.h>
+#include <malloc.h>
+#include <sys\utime.h>
+#include <sys\stat.h>
 
 #include <crtdll.h>
@@ -138,4 +147,38 @@
 }
 
+
+/*********************************************************************
+ *           CRTDLL___isascii   (CRTDLL.28)
+ */
+int CDECL CRTDLL___isascii(int i)
+{
+  dprintf(("CRTDLL: __isascii\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL___iscsym   (CRTDLL.29)
+ */
+int CDECL CRTDLL___iscsym(int i)
+{
+  dprintf(("CRTDLL: __iscsym\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL___iscsymf   (CRTDLL.30)
+ */
+int CDECL CRTDLL___iscsymf(int i)
+{
+  dprintf(("CRTDLL: __iscsymf\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
 /*********************************************************************
  *                  __mb_cur_max_dll    (CRTDLL.31)
@@ -149,4 +192,48 @@
 }
 
+
+/*********************************************************************
+ *           CRTDLL___threadhandle   (CRTDLL.32)
+ */
+unsigned long CDECL CRTDLL___threadhandle( void )
+{
+  dprintf(("CRTDLL: __threadhandle\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL___threadid   (CRTDLL.33)
+ */
+int * CDECL CRTDLL___threadid(void)
+{
+  dprintf(("CRTDLL: __threadid\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__abnormal_termination   (CRTDLL.36)
+ */
+int CDECL CRTDLL__abnormal_termination(void)
+{
+  dprintf(("CRTDLL: _abnormal_termination\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__access   (CRTDLL.37)
+ */
+int CDECL CRTDLL__access(const char *path,int mode)
+{
+  dprintf(("CRTDLL: _access\n"));
+  return (_access(path, mode));
+}
+
+
 /*********************************************************************
  *                  _aexit_rtn_dll    (CRTDLL.39)
@@ -160,4 +247,5 @@
 }
 
+
 /*********************************************************************
  *                  _amsg_exit    (CRTDLL.40)
@@ -170,4 +258,27 @@
 	return 0;
 }
+
+
+/*********************************************************************
+ *           CRTDLL__assert   (CRTDLL.41)
+ */
+void CDECL CRTDLL__assert( char *s1, char *s2, int i)
+{
+  dprintf(("CRTDLL: _assert\n"));
+  _assert(s1, s2, i);
+}
+
+
+/*********************************************************************
+ *           CRTDLL__beginthread   (CRTDLL.46)
+ */
+unsigned long CDECL CRTDLL__beginthread(  register void (*start_address)(void *),
+		unsigned stack_size, void *arglist )
+{
+  dprintf(("CRTDLL: _beginthread\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
 
 /*********************************************************************
@@ -182,4 +293,85 @@
 }
 
+
+/*********************************************************************
+ *           CRTDLL__close   (CRTDLL.57)
+ */
+int CDECL CRTDLL__close(int handle)
+{
+  dprintf(("CRTDLL: _close\n"));
+  return (_close(handle));
+}
+
+
+/*********************************************************************
+ *           CRTDLL__control87   (CRTDLL.60)
+ */
+unsigned CDECL CRTDLL__control87(unsigned i1,unsigned i2)
+{
+  dprintf(("CRTDLL: _control87\n"));
+  return (_control87(i1, i2));
+}
+
+
+/*********************************************************************
+ *           CRTDLL__cwait   (CRTDLL.69)
+ */
+int CDECL CRTDLL__cwait( int *status, int process_id, int action_code )
+{
+  dprintf(("CRTDLL: _cwait\n"));
+  return (_cwait(status, process_id, action_code));
+}
+
+
+/*********************************************************************
+ *           CRTDLL__dup   (CRTDLL.71)
+ */
+int CDECL CRTDLL__dup(int handle)
+{
+  dprintf(("CRTDLL: _dup\n"));
+  return (_dup(handle));
+}
+
+
+/*********************************************************************
+ *           CRTDLL__dup2  (CRTDLL.72)
+ */
+int CDECL CRTDLL__dup2(int handle1,int handle2)
+{
+  dprintf(("CRTDLL: _dup2\n"));
+  return (_dup2(handle1, handle2));
+}
+
+
+/*********************************************************************
+ *           CRTDLL__ecvt  (CRTDLL.73)
+ */
+char * CDECL CRTDLL__ecvt( double val, int ndig, int *dec, int *sign )
+{
+  dprintf(("CRTDLL: _ecvt\n"));
+  return (_ecvt(val, ndig, dec, sign));
+}
+
+
+/*********************************************************************
+ *           CRTDLL__endthread  (CRTDLL.74)
+ */
+void CDECL CRTDLL__endthread(void)
+{
+  dprintf(("CRTDLL: _endthread\n"));
+  _endthread ();
+}
+
+
+/*********************************************************************
+ *           CRTDLL__errno  (CRTDLL.77)
+ */
+int * CDECL CRTDLL__errno(void)
+{
+  dprintf(("CRTDLL: _errno\n"));
+  return (_errno());
+}
+
+
 /*********************************************************************
  *                  _except_handler2    (CRTDLL.78)
@@ -193,4 +385,5 @@
 }
 
+
 /*********************************************************************
  *                  _exit          (CRTDLL.87)
@@ -201,4 +394,26 @@
 	ExitProcess(ret);
 }
+
+
+/*********************************************************************
+ *           CRTDLL__expand   (CRTDLL.88)
+ */
+void * CDECL CRTDLL__expand( void *ptr, size_t size )
+{
+  dprintf(("CRTDLL: _expand\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__fcvt  (CRTDLL.90)
+ */
+char * CDECL CRTDLL__fcvt( double val, int ndig, int *dec, int *sign )
+{
+  dprintf(("CRTDLL: _fcvt\n"));
+  return (_fcvt(val, ndig, dec, sign));
+}
+
 
 /*********************************************************************
@@ -232,39 +447,238 @@
 }
 
+
+/*********************************************************************
+ *           CRTDLL__fgetchar  (CRTDLL.92)
+ */
+int CDECL CRTDLL__fgetchar( void )
+{
+  dprintf(("CRTDLL: _fgetchar\n"));
+  return (_fgetchar());
+}
+
+
+/*********************************************************************
+ *           CRTDLL__fgetwchar  (CRTDLL.93)
+ */
+wint_t CDECL CRTDLL__fgetwchar( void *i )
+{
+  dprintf(("CRTDLL: _fgetwchar\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+ /*********************************************************************
+ *                  _findclose    (CRTDLL.098)
+ */
+int CDECL CRTDLL__findclose( long handle )
+{
+  dprintf(("CRTDLL: _findclose\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
  /*********************************************************************
  *                  _findfirst    (CRTDLL.099)
- * 
- * BUGS
- *   Unimplemented
  */
 DWORD CDECL CRTDLL__findfirst(LPCSTR fname,  struct find_t * x2)
 {
-  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-  return FALSE;
-}
+  dprintf(("CRTDLL: _findfirst\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
 
 /*********************************************************************
  *                  _findnext     (CRTDLL.100)
- * 
- * BUGS
- *   Unimplemented
  */
 INT CDECL CRTDLL__findnext(DWORD hand, struct find_t * x2)
 {
-  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-  return FALSE;
-}
+  dprintf(("CRTDLL: _findnext\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _finite     (CRTDLL.101)
+ */
+INT CDECL CRTDLL__finite(double x)
+{
+  dprintf(("CRTDLL: _finite\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _fpreset     (CRTDLL.107)
+ */
+INT CDECL CRTDLL__fpreset(void)
+{
+  dprintf(("CRTDLL: _fpreset\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _fputchar     (CRTDLL.108)
+ */
+INT CDECL CRTDLL__fputchar( int c )
+{
+  dprintf(("CRTDLL: _fputchar\n"));
+  return(_fputchar(c));
+}
+
+
+/*********************************************************************
+ *                  _fputwchar     (CRTDLL.109)
+ */
+wint_t CDECL CRTDLL__fputwchar( wint_t )
+{
+  dprintf(("CRTDLL: _fputwchar\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _fsopen     (CRTDLL.110)
+ */
+FILE * CDECL CRTDLL__fsopen( const char *filename, const char *mode, int shflag )
+{
+  dprintf(("CRTDLL: _fsopen\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
 
 /*********************************************************************
  *                  _fstat        (CRTDLL.111)
- * 
- * BUGS
- *   Unimplemented
  */
 int CDECL CRTDLL__fstat(int file, struct stat* buf)
 {
-  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-  return FALSE;
-}
+  dprintf(("CRTDLL: _fstat\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ftime        (CRTDLL.112)
+ */
+int CDECL CRTDLL__ftime( struct timeb *timeptr )
+{
+  dprintf(("CRTDLL: _ftime\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _fullpath     (CRTDLL.114)
+ */
+char * CDECL CRTDLL__fullpath( char *buf, char *path, size_t size )
+{
+  dprintf(("CRTDLL: _fullpath\n"));
+  return (_fullpath(buf, path, size));
+}
+
+
+/*********************************************************************
+ *                  _gcvt     (CRTDLL.116)
+ */
+char * CDECL CRTDLL__gcvt( double val, int ndig, char *buf )
+{
+  dprintf(("CRTDLL: _gcvt\n"));
+  return (_gcvt(val, ndig, buf));
+}
+
+
+/*********************************************************************
+ *                  _get_osfhandle     (CRTDLL.117)
+ */
+long CDECL CRTDLL__get_osfhandle( int posixhandle )
+{
+  dprintf(("CRTDLL: _gcvt\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _getch     (CRTDLL.118)
+ */
+int CDECL CRTDLL__getch(void)
+{
+  dprintf(("CRTDLL: _getch\n"));
+  return (_getch());
+}
+
+
+/*********************************************************************
+ *                  _getche     (CRTDLL.119)
+ */
+int CDECL CRTDLL__getche(void)
+{
+  dprintf(("CRTDLL: _getche\n"));
+  return (_getche());
+}
+
+
+/*********************************************************************
+ *                  _getcwd     (CRTDLL.120)
+ */
+char * CDECL CRTDLL__getcwd( char *buf, size_t size )
+{
+  dprintf(("CRTDLL: _getcwd\n"));
+  return (_getcwd(buf, size));
+}
+
+
+/*********************************************************************
+ *                  _getdcwd     (CRTDLL.121)
+ */
+char * CDECL CRTDLL__getdcwd( int drive, char *buffer, size_t maxlen )
+{
+  dprintf(("CRTDLL: _getdcwd\n"));
+  return (_getdcwd(drive, buffer, maxlen));
+}
+
+
+/*********************************************************************
+ *                  _getdiskfree     (CRTDLL.122)
+ */
+unsigned CDECL CRTDLL__getdiskfree( unsigned drive, struct _diskfree_t *diskspace)
+{
+  dprintf(("CRTDLL: _getdiskfree\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _getdrive    (CRTDLL.124)
+ */
+unsigned CDECL CRTDLL__getdrive( void )
+{
+  dprintf(("CRTDLL: _getdrive\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _getw     (CRTDLL.128)
+ */
+int CDECL CRTDLL__getw( FILE *fp )
+{
+  dprintf(("CRTDLL: _getw\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
 
 /*******************************************************************
@@ -276,4 +690,46 @@
     RtlUnwind( frame, 0, NULL, 0 );
 }
+
+
+/*********************************************************************
+ *                  _heapchk    (CRTDLL.130)
+ */
+int CDECL CRTDLL__heapchk( void )
+{
+  dprintf(("CRTDLL: _heapchk\n"));
+  return (_heapchk());
+}
+
+
+/*********************************************************************
+ *                  _heapmin    (CRTDLL.131)
+ */
+int CDECL CRTDLL__heapmin( void )
+{
+  dprintf(("CRTDLL: _heapmin\n"));
+  return (_heapmin());
+}
+
+
+/*********************************************************************
+ *                  _heapset    (CRTDLL.132)
+ */
+int CDECL CRTDLL__heapset( unsigned int fill )
+{
+  dprintf(("CRTDLL: _heapset\n"));
+  return (_heapset(fill));
+}
+
+
+/*********************************************************************
+ *                  _heapwalk     (CRTDLL.133)
+ */
+int CDECL CRTDLL__heapwalk( struct _heapinfo *entry )
+{
+  dprintf(("CRTDLL: _heapwalk\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
 
 /*********************************************************************
@@ -292,4 +748,5 @@
 	return 0;
 }
+
 
 /*********************************************************************
@@ -317,4 +774,257 @@
 }
 
+
+/*********************************************************************
+ *                  _ismbbalnum     (CRTDLL.139)
+ */
+int CDECL CRTDLL__ismbbalnum( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbbalnum\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbbalpha     (CRTDLL.140)
+ */
+int CDECL CRTDLL__ismbbalpha( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbbalpha\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbbgraph     (CRTDLL.141)
+ */
+int CDECL CRTDLL__ismbbgraph( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbbgraph\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbbkalnum     (CRTDLL.142)
+ */
+int CDECL CRTDLL__ismbbkalnum( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbbkalnum\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbbkana     (CRTDLL.143)
+ */
+int CDECL CRTDLL__ismbbkana( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbbkana\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbbkpunct     (CRTDLL.144)
+ */
+int CDECL CRTDLL__ismbbkpunct( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbbkpunct\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbblead     (CRTDLL.145)
+ */
+int CDECL CRTDLL__ismbblead( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbblead\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbbprint     (CRTDLL.146)
+ */
+int CDECL CRTDLL__ismbbprint( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbbprint\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbbpunct     (CRTDLL.147)
+ */
+int CDECL CRTDLL__ismbbpunct( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbbpunct\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbbtrail     (CRTDLL.148)
+ */
+int CDECL CRTDLL__ismbbtrail( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbbtrail\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbcalpha     (CRTDLL.149)
+ */
+int CDECL CRTDLL__ismbcalpha( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbcalpha\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbcdigit     (CRTDLL.150)
+ */
+int CDECL CRTDLL__ismbcdigit( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbcdigit\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbchira     (CRTDLL.151)
+ */
+int CDECL CRTDLL__ismbchira( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbchira\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbckata     (CRTDLL.152)
+ */
+int CDECL CRTDLL__ismbckata( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbckata\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+/*********************************************************************
+ *                  _ismbcl0     (CRTDLL.153)
+ */
+int CDECL CRTDLL__ismbcl0( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbcl0\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbcl1     (CRTDLL.154)
+ */
+int CDECL CRTDLL__ismbcl1( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbcl1\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbcl2     (CRTDLL.155)
+ */
+int CDECL CRTDLL__ismbcl2( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbcl2\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbclegal     (CRTDLL.156)
+ */
+int CDECL CRTDLL__ismbclegal( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbclegal\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbclower     (CRTDLL.157)
+ */
+int CDECL CRTDLL__ismbclower( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbclower\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbcprint     (CRTDLL.158)
+ */
+int CDECL CRTDLL__ismbcprint( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbcprint\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbcspace     (CRTDLL.159)
+ */
+int CDECL CRTDLL__ismbcspace( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbcspace\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbcsymbol     (CRTDLL.160)
+ */
+int CDECL CRTDLL__ismbcsymbol( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbcsymbol\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _ismbcupper     (CRTDLL.161)
+ */
+int CDECL CRTDLL__ismbcupper( unsigned int ch )
+{
+  dprintf(("CRTDLL: _ismbcupper\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
 /*******************************************************************
  *         _local_unwind2  (CRTDLL.172)
@@ -324,4 +1034,253 @@
 	dprintf(("CRTDLL: local_undwind2\n"));
 }
+
+
+/*********************************************************************
+ *                  _locking        (CRTDLL.173)
+ */
+int CDECL CRTDLL__locking(int handle,int mode,unsigned long nbyte)
+{
+  dprintf(("CRTDLL: _locking\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _lrotl	(CRTDLL.175)
+ */
+unsigned long CDECL CRTDLL__lrotl( unsigned long value, unsigned int shift )
+{
+  dprintf(("CRTDLL: _lrotl\n"));
+  return (_lrotl(value, shift));
+}
+
+
+/*********************************************************************
+ *                  _lrotr	(CRTDLL.176)
+ */
+unsigned long CDECL CRTDLL__lrotr( unsigned long value, unsigned int shift )
+{
+  dprintf(("CRTDLL: _lrotr\n"));
+  return (_lrotr(value, shift));
+}
+
+
+/*********************************************************************
+ *                  _lseek	(CRTDLL.178)
+ */
+long CDECL CRTDLL__lseek(int handle,long offset,int origin)
+{
+  dprintf(("CRTDLL: _lssek\n"));
+  return (_lseek(handle, offset, origin));
+}
+
+
+/*********************************************************************
+ *                  _makepath	(CRTDLL.180)
+ */
+void CDECL CRTDLL__makepath( char *path, char *drive,
+                    char *dir, char *fname, char *ext )
+{
+  dprintf(("CRTDLL: _makepath\n"));
+  _makepath(path, drive, dir, fname, ext);
+}
+
+
+/*********************************************************************
+ *                  _matherr	(CRTDLL.181)
+ */
+double CDECL CRTDLL__matherr( struct exception * excep )
+{
+  dprintf(("CRTDLL: _matherr\n"));
+  return (_matherr(excep));
+}
+
+
+/*********************************************************************
+ *                  _mbbtombc        (CRTDLL.182)
+ */
+unsigned int CDECL CRTDLL__mbbtombc( unsigned int ch )
+{
+  dprintf(("CRTDLL: _mbbtombc\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _mbbtype        (CRTDLL.183)
+ */
+int CDECL CRTDLL__mbbtype( unsigned char s, int i )
+{
+  dprintf(("CRTDLL: _mbbtype\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _mbccpy        (CRTDLL.184)
+ */
+void CDECL CRTDLL__mbccpy( unsigned char *dest, const unsigned char *ch )
+{
+  dprintf(("CRTDLL: _mbccpy\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+}
+
+
+/*********************************************************************
+ *                  _mbcjistojms     (CRTDLL.185)
+ */
+int CDECL CRTDLL__mbcjistojms( unsigned int ch )
+{
+  dprintf(("CRTDLL: _mbcjistojms\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _mbcjmstojis     (CRTDLL.186)
+ */
+int CDECL CRTDLL__mbcjmstojis( unsigned int ch )
+{
+  dprintf(("CRTDLL: _mbcjmstojis\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _mbclen    (CRTDLL.187)
+ */
+size_t CDECL CRTDLL__mbclen( const unsigned char *ch )
+{
+  dprintf(("CRTDLL: _mbclen\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _mbctohira     (CRTDLL.188)
+ */
+int CDECL CRTDLL__mbctohira( unsigned int ch )
+{
+  dprintf(("CRTDLL: _mbctohira\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _mbctokata     (CRTDLL.189)
+ */
+int CDECL CRTDLL__mbctokata( unsigned int ch )
+{
+  dprintf(("CRTDLL: _mbctokata\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _mbctolower     (CRTDLL.190)
+ */
+unsigned int CDECL CRTDLL__mbctolower( unsigned int ch )
+{
+  dprintf(("CRTDLL: _mbctolower\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _mbctombb        (CRTDLL.191)
+ */
+unsigned int CDECL CRTDLL__mbctombb( unsigned int ch )
+{
+  dprintf(("CRTDLL: _mbctombb\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _mbctoupper     (CRTDLL.192)
+ */
+unsigned int CDECL CRTDLL__mbctoupper( unsigned int ch )
+{
+  dprintf(("CRTDLL: _mbctoupper\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _mbsbtype     (CRTDLL.194)
+ */
+int CDECL CRTDLL__mbsbtype( const unsigned char *s1, int ch )
+{
+  dprintf(("CRTDLL: _mbsbtype\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _mbscat       (CRTDLL.195)
+ */
+unsigned char * CDECL CRTDLL__mbscat( unsigned char *s1, const unsigned char *s2 )
+{
+  dprintf(("CRTDLL: _mbscat\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _mbschr       (CRTDLL.196)
+ */
+unsigned char * CDECL CRTDLL__mbschr( const unsigned char *s, unsigned int ch )
+{
+  dprintf(("CRTDLL: _mbschr\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _mbscmp       (CRTDLL.197)
+ */
+int CDECL CRTDLL__mbscmp( const unsigned char *s1, const unsigned char *s2 )
+{
+  dprintf(("CRTDLL: _mbscmp\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _mbscpy       (CRTDLL.198)
+ */
+unsigned char * CDECL CRTDLL__mbscpy( unsigned char *s1, const unsigned char *s2 )
+{
+  dprintf(("CRTDLL: _mbscpy\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _mbscspn        (CRTDLL.199)
+ */
+size_t CDECL CRTDLL__mbscspn( const unsigned char *s, const unsigned char *charset )
+{
+  dprintf(("CRTDLL: _mbscspn\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
 
 /*********************************************************************
@@ -350,4 +1309,302 @@
 }
 
+
+/*********************************************************************
+ *           CRTDLL__mbsdec    (CRTDLL.200)
+ */
+unsigned char * CDECL CRTDLL__mbsdec( const unsigned char *s, const unsigned char *ch )
+{
+  dprintf(("CRTDLL: _mbsdec\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsdec    (CRTDLL.201)
+ */
+unsigned char * CDECL CRTDLL__mbsdup( unsigned char *src )
+{
+  dprintf(("CRTDLL: _mbsdup\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsicmp   (CRTDLL.202)
+ */
+int CDECL CRTDLL__mbsicmp( const unsigned char *s1, const unsigned char *s2 )
+{
+  dprintf(("CRTDLL: _mbsicmp\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbslwr    (CRTDLL.205)
+ */
+unsigned char * CDECL CRTDLL__mbslwr( unsigned char *s )
+{
+  dprintf(("CRTDLL: _mbslwr\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsnbcat  (CRTDLL.206)
+ */
+unsigned char * CDECL CRTDLL__mbsnbcat( unsigned char *s1, const unsigned char *s2, size_t n )
+{
+  dprintf(("CRTDLL: _mbsnbcat\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsnbcmp  (CRTDLL.207)
+ */
+int CDECL CRTDLL__mbsnbcmp( const unsigned char *s1, const unsigned char *s2, size_t n )
+{
+  dprintf(("CRTDLL: _mbsnbcmp\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsnbcnt  (CRTDLL.208)
+ */
+size_t CDECL CRTDLL__mbsnbcnt( const unsigned char *s, size_t n )
+{
+  dprintf(("CRTDLL: _mbsnbcnt\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsnbcpy  (CRTDLL.209)
+ */
+unsigned char * CDECL CRTDLL__mbsnbcpy( unsigned char *s1, const unsigned char *s2, size_t n )
+{
+  dprintf(("CRTDLL: _mbsnbcpy\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsnbicmp (CRTDLL.210)
+ */
+int CDECL CRTDLL__mbsnbicmp( const unsigned char *s1, const unsigned char *s2, size_t n )
+{
+  dprintf(("CRTDLL: _mbsnbicmp\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsnbset (CRTDLL.211)
+ */
+unsigned char * CDECL CRTDLL__mbsnbset( unsigned char *s, unsigned int ch, size_t n )
+{
+  dprintf(("CRTDLL: _mbsnbset\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsncat (CRTDLL.212)
+ */
+unsigned char * CDECL CRTDLL__mbsncat( unsigned char *s1, const unsigned char *s2, size_t n )
+{
+  dprintf(("CRTDLL: _mbsncat\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsnccnt (CRTDLL.213)
+ */
+size_t CDECL CRTDLL__mbsnccnt( const unsigned char *s, size_t n )
+{
+  dprintf(("CRTDLL: _mbsnccnt\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsncmp (CRTDLL.214)
+ */
+int CDECL CRTDLL__mbsncmp( const unsigned char *s1, const unsigned char *s2, size_t n )
+{
+  dprintf(("CRTDLL: _mbsncmp\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsncpy (CRTDLL.215)
+ */
+unsigned char * CDECL CRTDLL__mbsncpy( unsigned char *s1, const unsigned char *s2, size_t n )
+{
+  dprintf(("CRTDLL: _mbsncpy\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsnextc (CRTDLL.216)
+ */
+unsigned int CDECL CRTDLL__mbsnextc( const unsigned char *s )
+{
+  dprintf(("CRTDLL: _mbsnextc\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsnicmp (CRTDLL.217)
+ */
+int CDECL CRTDLL__mbsnicmp( const unsigned char *s1, const unsigned char *s2, size_t n )
+{
+  dprintf(("CRTDLL: _mbsnicmp\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsninc (CRTDLL.218)
+ */
+unsigned char * CDECL CRTDLL__mbsninc( const unsigned char *s, size_t count )
+{
+  dprintf(("CRTDLL: _mbsninc\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsnset (CRTDLL.219)
+ */
+unsigned char * CDECL CRTDLL__mbsnset( unsigned char *s, unsigned int ch, size_t n )
+{
+  dprintf(("CRTDLL: _mbsnset\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbspbrk   (CRTDLL.220)
+ */
+unsigned char * CDECL CRTDLL__mbspbrk( const unsigned char *s, const unsigned char *charset )
+{
+  dprintf(("CRTDLL: _mbspbrk\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsrchr   (CRTDLL.221)
+ */
+unsigned char * CDECL CRTDLL__mbsrchr( const unsigned char *s, unsigned int ch )
+{
+  dprintf(("CRTDLL: _mbsrchr\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsrev    (CRTDLL.222)
+ */
+unsigned char * CDECL CRTDLL__mbsrev( unsigned char *s )
+{
+  dprintf(("CRTDLL: _mbsrev\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsset    (CRTDLL.223)
+ */
+unsigned char * CDECL CRTDLL__mbsset( unsigned char *s, unsigned int ch )
+{
+  dprintf(("CRTDLL: _mbsset\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsspn   (CRTDLL.224)
+ */
+size_t CDECL CRTDLL__mbsspn( const unsigned char *s, const unsigned char *charset )
+{
+  dprintf(("CRTDLL: _mbsspn\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsspnp   (CRTDLL.225)
+ */
+unsigned char * CDECL CRTDLL__mbsspnp( const unsigned char *s, const unsigned char *charset )
+{
+  dprintf(("CRTDLL: _mbsspnp\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsstr    (CRTDLL.226)
+ */
+unsigned char * CDECL CRTDLL__mbsstr( const unsigned char *s1, const unsigned char *s2 )
+{
+  dprintf(("CRTDLL: _mbsstr\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbstok    (CRTDLL.227)
+ */
+unsigned char * CDECL CRTDLL__mbstok( unsigned char *s, const unsigned char *delim )
+{
+  dprintf(("CRTDLL: _mbstok\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__mbsupr    (CRTDLL.229)
+ */
+unsigned char * CDECL CRTDLL__mbsupr( unsigned char *s )
+{
+  dprintf(("CRTDLL: _mbsupr\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
 /*********************************************************************
  *                  _mkdir           (CRTDLL.232)
@@ -363,4 +1620,58 @@
 
 /*********************************************************************
+ *                  _mktemp        (CRTDLL.233)
+ */
+char * CDECL CRTDLL__mktemp( char * templt )
+{
+  dprintf(("CRTDLL: _mktemp\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _msize        (CRTDLL.234)
+ */
+size_t CDECL CRTDLL__msize( void *ptr )
+{
+  dprintf(("CRTDLL: _msize\n"));
+  return (_msize(ptr));
+}
+
+
+/*********************************************************************
+ *                  _open        (CRTDLL.237)
+ */
+INT CDECL CRTDLL__open(const char *path,int oflag,...)
+{
+  dprintf(("CRTDLL: _open\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _open_osfhandle  (CRTDLL.238)
+ */
+INT CDECL CRTDLL__open_osfhandle( long osfhandle, int flags )
+{
+  dprintf(("CRTDLL: _open_osfhandle\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _pclose     (CRTDLL.244)
+ */
+INT CDECL CRTDLL__pclose( FILE *fp )
+{
+  dprintf(("CRTDLL: _pclose\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
  *                  _pctype_dll    (CRTDLL.245)
  *	FIXME - Could not find anything about it
@@ -371,4 +1682,26 @@
 
 	return 0;
+}
+
+
+/*********************************************************************
+ *                  _pipe     (CRTDLL.247)
+ */
+INT CDECL CRTDLL__pipe( int *phandles, unsigned psize, int textmode )
+{
+  dprintf(("CRTDLL: _pipe\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *                  _popen    (CRTDLL.248)
+ */
+FILE * CDECL CRTDLL__popen( const char *command, const char *mode )
+{
+  dprintf(("CRTDLL: _popen\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
 }
 
@@ -386,4 +1719,275 @@
 }
 
+
+/*********************************************************************
+ *                  _putw     (CRTDLL.252)
+ */
+INT CDECL CRTDLL__putw( int binint, FILE *fp )
+{
+  dprintf(("CRTDLL: _putw\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__rotl 	 (CRTDLL.257)
+ */
+unsigned int CDECL CRTDLL__rotl( unsigned int value, unsigned int shift )
+{
+  dprintf(("CRTDLL: _rotl\n"));
+  return (_rotl(value, shift));
+}
+
+
+/*********************************************************************
+ *           CRTDLL__rotr 	 (CRTDLL.258)
+ */
+unsigned int CDECL CRTDLL__rotr( unsigned int value, unsigned int shift )
+{
+  dprintf(("CRTDLL: _rotr\n"));
+  return (_rotr(value, shift));
+}
+ 
+
+/*********************************************************************
+ *           CRTDLL__searchenv 	 (CRTDLL.260)
+ */
+void CDECL CRTDLL__searchenv( const char *name, const char *env_var, char *buf )
+{
+  dprintf(("CRTDLL: _searchenv\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+}
+
+
+/*********************************************************************
+ *           CRTDLL__setjmp 	 (CRTDLL.262)
+ */
+int CDECL CRTDLL__setjmp( jmp_buf env )
+{
+  dprintf(("CRTDLL: _setjmp -> setjmp\n"));
+  return(setjmp( env));
+}
+
+
+/*********************************************************************
+ *           CRTDLL__stat   	 (CRTDLL.278)
+ */
+int CDECL CRTDLL__stat( const char *s1, struct stat * n )
+{
+  dprintf(("CRTDLL: _stat\n"));
+  return(_stat(s1, n));
+}
+
+
+/*********************************************************************
+ *           CRTDLL__strdate   	 (CRTDLL.281)
+ */
+char * CDECL CRTDLL__strdate( char *buf )
+{
+  dprintf(("CRTDLL: _strdate\n"));
+  return(_strdate(buf));
+}
+
+
+/*********************************************************************
+ *           CRTDLL__strdec    	 (CRTDLL.282)
+ */
+char * CDECL CRTDLL__strdec( const char *, const char *p ) 
+{
+  dprintf(("CRTDLL: _strdec\n"));
+  return( (char *)(p-1) );
+}
+
+
+/*********************************************************************
+ *           CRTDLL__strdup    	 (CRTDLL.283)
+ */
+char * CDECL CRTDLL__strdup( const char *string )
+{
+  dprintf(("CRTDLL: _strdup\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__stricoll  	 (CRTDLL.286)
+ */
+int CDECL CRTDLL__stricoll( const char *s1, const char *s2 )
+{
+  dprintf(("CRTDLL: _stricoll\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__strinc  	 (CRTDLL.287)
+ */
+char * CDECL CRTDLL__strinc( const char *p )
+{
+    dprintf(("CRTDLL: _strinc\n"));
+    return( (char *)(p+1) );
+}
+
+
+/*********************************************************************
+ *           CRTDLL__strncnt	 (CRTDLL.289)
+ */
+size_t CDECL CRTDLL__strncnt( const char *p, size_t l ) 
+{
+    dprintf(("CRTDLL: _strncnt\n"));
+    size_t i;
+    i = strlen(p);
+    return( (i>l) ? l : i );
+}
+
+/*********************************************************************
+ *           CRTDLL__strnextc	 (CRTDLL.290)
+ */
+unsigned int CDECL CRTDLL__strnextc( const char *p )
+{
+    dprintf(("CRTDLL: _strnextc\n"));
+    return( (unsigned int)*p );
+}
+
+
+/*********************************************************************
+ *           CRTDLL__strninc	 (CRTDLL.292)
+ */
+char * CDECL CRTDLL__strninc( const char *p, size_t l )
+{
+    dprintf(("CRTDLL: _strninc\n"));
+    return( (char *)(p+l) );
+}
+
+
+/*********************************************************************
+ *           CRTDLL__strnset	 (CRTDLL.293)
+ */
+char * CDECL CRTDLL__strnset( char *string, int c, size_t len )
+{
+  dprintf(("CRTDLL: _strnset\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__strrev	 (CRTDLL.294)
+ */
+char * CDECL CRTDLL__strrev( char *string )
+{
+  dprintf(("CRTDLL: _strrev\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__strset	 (CRTDLL.295)
+ */
+char * CDECL CRTDLL__strset( char *string, int c )
+{
+  dprintf(("CRTDLL: _strset\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__strspnp	 (CRTDLL.296)
+ */
+char * CDECL CRTDLL__strspnp( const char *p1, const char *p2 ) 
+{
+    dprintf(("CRTDLL: _strspnp\n"));
+    return( (*(p1 += strspn(p1,p2))!='\0') ? (char*)p1 : NULL );
+}
+
+
+/*********************************************************************
+ *           CRTDLL__strtime	 (CRTDLL.297)
+ */
+char * CDECL CRTDLL__strtime( char *buf )
+{
+  dprintf(("CRTDLL: _strtime\n"));
+  return (_strtime(buf));
+}
+
+
+/*********************************************************************
+ *           CRTDLL__tempnam	 (CRTDLL.303)
+ */
+char * CDECL CRTDLL__tempnam( char *dir, char *prefix )
+{
+  dprintf(("CRTDLL: _tempnam\n"));
+  return (_tempnam(dir, prefix));
+}
+	
+
+/*********************************************************************
+ *           CRTDLL__tolower	 (CRTDLL.305)
+ */
+int CDECL CRTDLL__tolower(int n)
+{
+  dprintf(("CRTDLL: _tolower\n"));
+  return (_tolower(n));
+}
+
+
+/*********************************************************************
+ *           CRTDLL__toupper	 (CRTDLL.306)
+ */
+int CDECL CRTDLL__toupper(int n)
+{
+  dprintf(("CRTDLL: _toupper\n"));
+  return (_toupper(n));
+}
+
+
+/*********************************************************************
+ *           CRTDLL__utime	 (CRTDLL.314)
+ */
+int CDECL CRTDLL__utime( char *path, struct utimbuf * times )
+{
+  dprintf(("CRTDLL: _utime\n"));
+  return (_utime(path, times));
+}
+
+
+/*********************************************************************
+ *           CRTDLL__vsnwprintf	 (CRTDLL.316)
+ */
+int CDECL CRTDLL__vsnwprintf( wchar_t *s1, size_t n, const wchar_t *s2, va_list arg )
+{
+  dprintf(("CRTDLL: _vsnwprintf\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__wcsdup	 (CRTDLL.317)
+ */
+wchar_t * CDECL CRTDLL__wcsdup( const wchar_t *s1 )
+{
+  dprintf(("CRTDLL: _wcsdup\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
+/*********************************************************************
+ *           CRTDLL__wcsicoll	 (CRTDLL.319)
+ */
+int CDECL CRTDLL__wcsicoll( const wchar_t *s1, const wchar_t *s2 )
+{
+  dprintf(("CRTDLL: _wcsicoll\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
+
 /*********************************************************************
  *           CRTDLL__wcsnset    (CRTDLL.322)
@@ -395,4 +1999,16 @@
     return ret;
 }
+
+
+/*********************************************************************
+ *           CRTDLL__wcsrev	 (CRTDLL.323)
+ */
+wchar_t * CDECL CRTDLL__wcsrev( wchar_t *s1 )
+{
+  dprintf(("CRTDLL: _wcsrev\n"));
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+  return FALSE;
+}
+
 
 /*********************************************************************
Index: trunk/src/crtdll/crtdll.def
===================================================================
--- trunk/src/crtdll/crtdll.def	(revision 963)
+++ trunk/src/crtdll/crtdll.def	(revision 965)
@@ -1,3 +1,3 @@
-; $Id: crtdll.def,v 1.2 1999-09-13 09:05:13 sandervl Exp $
+; $Id: crtdll.def,v 1.3 1999-09-18 10:36:35 sandervl Exp $
 
 ;Created by BLAST for IBM's compiler
@@ -101,41 +101,245 @@
 
 EXPORTS
+;   ??2@YAPAXI@Z						@1
+;   ??3@YAXPAX@Z						@2
+;   ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z			@3
+;   _CIacos							@4
+;   _CIasin							@5
+;   _CIatan							@6
+;   _CIatan2							@7
+;   _CIcos							@8
+;   _CIcosh							@9
+;   _CIexp							@10
+;   _CIfmod							@11
+;   _CIlog							@12
+;   _CIlog10							@13
     _CIpow			= NTDLL__CIpow			@14
+;   _CIsin							@15
+;   _CIsinh							@16
+;   _CIsqrt							@17
+;   _CItan							@18
+;   _CItanh							@19
+;   _HUGE_dll							@20
     _XcptFilter			= _CRTDLL__XcptFilter		@21
     __GetMainArgs		= _CRTDLL__GetMainArgs		@22
     __argc_dll			= CRTDLL_argc_dll		@23
     __argv_dll			= CRTDLL_argv_dll		@24
+;   __dllonexit							@25
+;   __doserrno							@26
+;   __fpecode							@27
+    __isascii			= _CRTDLL___isascii		@28
+    __iscsym			= _CRTDLL___iscsym		@29
+    __iscsymf			= _CRTDLL___iscsymf		@30
     __mb_cur_max_dll		= _CRTDLL___mb_cur_max_dll	@31
+;   __pxcptinfoptrs						@32
+    __threadhandle		= _CRTDLL___threadhandle	@33
+    __threadid			= _CRTDLL___threadid		@34
+;   __toascii							@35
+    _abnormal_termination	= _CRTDLL__abnormal_termination	@36
+    _access			= _CRTDLL__access		@37
     _acmdln_dll			= CRTDLL_acmdln_dll		@38
     _aexit_rtn_dll		= _CRTDLL__aexit_rtn_dll	@39
     _amsg_exit     		= _CRTDLL__amsg_exit		@40
+    _assert			= _CRTDLL__assert		@41
     _basemajor_dll		= CRTDLL_basemajor_dll		@42
     _baseminor_dll		= CRTDLL_baseminor_dll		@43
     _baseversion_dll		= CRTDLL_baseversion_dll	@44
+;   _beep							@45
+    _beginthread		= _CRTDLL__beginthread		@46
+;   _c_exit							@47
+;   _cabs							@48
+;   _cexit							@49
+;   _cgets							@50
     _chdir			= _CRTDLL__chdir		@51
+;   _chdrive							@52
+;   _chgsign							@53
+;   _chmod							@54
+;   _chsize							@55
+;   _clearfp							@56
+    _close			= _CRTDLL__close		@57
+;   _commit							@58
     _commode_dll		= CRTDLL_commode_dll		@59
+    _control87			= _CRTDLL__control87		@60
+;   _controlfp							@61
+;   _copysign							@62
+;   _cprintf							@63
+;   _cpumode_dll						@64
+;   _cputs							@65
+;   _creat							@66
+;   _cscanf							@67
+;   _ctype							@68
+    _cwait			= _CRTDLL__cwait		@69
+;   _daylight_dll						@70
+    _dup			= _CRTDLL__dup			@71
+    _dup2			= _CRTDLL__dup2			@72
+    _ecvt			= _CRTDLL__ecvt			@73
+    _endthread			= _CRTDLL__endthread		@74
     _environ_dll		= CRTDLL_environ_dll		@75
+;   _eof							@76
+    _errno			= _CRTDLL__errno		@77
     _except_handler2		= _CRTDLL__except_handler2	@78
+;   _execl							@79
+;   _execle							@80
+;   _execlp							@81
+;   _execlpe							@82
+;   _execv							@83
+;   _execve							@84
+;   _execvp							@85
+;   _execvpe							@86
     _exit			= _CRTDLL__exit			@87
+    _expand			= _CRTDLL__expand		@88
+;   _fcloseall							@89
+    _fcvt			= _CRTDLL__fcvt			@90
     _fdopen			= _CRTDLL__fdopen		@91
+    _fgetchar			= _CRTDLL__fgetchar		@92
+    _fgetwchar			= _CRTDLL__fgetwchar		@93
+;   _filbuf							@94
+;   _fileinfo_dll						@95
+;   _filelength							@96
+;   _fileno							@97
+    _findclose			= _CRTDLL__findclose		@98
     _findfirst			= _CRTDLL__findfirst		@99
     _findnext			= _CRTDLL__findnext		@100
 
+    _finite			= _CRTDLL__finite		@101
+;   _flsbuf							@102
+;   _flushall							@103
     _fmode_dll			= CRTDLL_fmode_dll		@104
+;   _fpclass							@105
+;   _fpieee_flt							@106
+    _fpreset			= _CRTDLL__fpreset		@107
+    _fputchar			= _CRTDLL__fputchar		@108
+    _fputwchar			= _CRTDLL__fputwchar		@109
+    _fsopen			= _CRTDLL__fsopen		@110
     _fstat			= _CRTDLL__fstat		@111
+    _ftime			= _CRTDLL__ftime		@112
     _ftol			= NTDLL__ftol			@113
+    _fullpath			= _CRTDLL__fullpath		@114
+;   _futime							@115
+    _gcvt			= _CRTDLL__gcvt			@116
+    _get_osfhandle		= _CRTDLL__get_osfhandle	@117
+    _getch			= _CRTDLL__getch		@118
+    _getche			= _CRTDLL__getche		@119
+    _getcwd			= _CRTDLL__getcwd		@120
+    _getdcwd			= _CRTDLL__getdcwd		@121
+    _getdiskfree		= _CRTDLL__getdiskfree		@122
+;   _getdllprocaddr						@123
+    _getdrive			= _CRTDLL__getdrive		@124
+;   _getdrives							@125
+;   _getpid							@126
+;   _getsystime							@127
+    _getw			= _CRTDLL__getw			@128
     _global_unwind2		= _CRTDLL__global_unwind2	@129
+    _heapchk			= _CRTDLL__heapchk		@130
+    _heapmin			= _CRTDLL__heapmin		@131
+    _heapset			= _CRTDLL__heapset		@132
+    _heapwalk			= _CRTDLL__heapwalk		@133
+;   _hypot							@134
 ;    _initterm			= _CRTDLL__initterm		@135
     _initterm			= _DLL_InitTerm			@135
     _iob			= CRTDLL_iob			@136
+;   _isatty							@137
     _isctype			= _CRTDLL__isctype		@138
+    _ismbbalnum			= _CRTDLL__ismbbalnum		@139
+    _ismbbalpha			= _CRTDLL__ismbbalpha		@140
+    _ismbbgraph			= _CRTDLL__ismbbgraph		@141
+    _ismbbkalnum		= _CRTDLL__ismbbkalnum		@142
+    _ismbbkana			= _CRTDLL__ismbbkana		@143
+    _ismbbkpunct		= _CRTDLL__ismbbkpunct		@144
+    _ismbblead			= _CRTDLL__ismbblead		@145
+    _ismbbprint			= _CRTDLL__ismbbprint		@146
+    _ismbbpunct			= _CRTDLL__ismbbpunct		@147
+    _ismbbtrail			= _CRTDLL__ismbbtrail		@148
+    _ismbcalpha			= _CRTDLL__ismbcalpha		@149
+    _ismbcdigit			= _CRTDLL__ismbcdigit		@150
+    _ismbchira			= _CRTDLL__ismbchira		@151
+    _ismbckata			= _CRTDLL__ismbckata		@152
+    _ismbcl0			= _CRTDLL__ismbcl0		@153
+    _ismbcl1			= _CRTDLL__ismbcl1		@154
+    _ismbcl2			= _CRTDLL__ismbcl2		@155
+    _ismbclegal			= _CRTDLL__ismbclegal		@156
+    _ismbclower			= _CRTDLL__ismbclower		@157
+    _ismbcprint			= _CRTDLL__ismbcprint		@158
+    _ismbcspace			= _CRTDLL__ismbcspace		@159
+    _ismbcsymbol		= _CRTDLL__ismbcsymbol		@160
+    _ismbcupper			= _CRTDLL__ismbcupper		@161
+;   _ismbslead							@162
+;   _ismbstrail							@163
+;   _isnan							@164
     _itoa			= NTDLL__itoa			@165
+;   _j0								@166
+;   _j1								@167
+;   _jn								@168
+;   _kbhit							@169
+;   _lfind							@170
+;   _loaddll							@171
     _local_unwind2		= _CRTDLL__local_unwind2	@172
+    _locking			= _CRTDLL__locking		@173
+;   _logb							@174
+    _lrotl			= _CRTDLL__lrotl		@175
+    _lrotr			= _CRTDLL__lrotr		@176
+;   _lsearch							@177
+    _lseek			= _CRTDLL__lseek		@178
     _ltoa			= NTDLL__ltoa			@179
-
+    _makepath			= _CRTDLL__makepath		@180
+    _matherr			= _CRTDLL__matherr		@181
+    _mbbtombc			= _CRTDLL__mbbtombc		@182
+    _mbbtype			= _CRTDLL__mbbtype		@183
+    _mbccpy			= _CRTDLL__mbccpy		@184
+    _mbcjistojms		= _CRTDLL__mbcjistojms		@185
+    _mbcjmstojis		= _CRTDLL__mbcjmstojis		@186
+    _mbclen			= _CRTDLL__mbclen		@187
+    _mbctohira			= _CRTDLL__mbctohira		@188
+    _mbctokata			= _CRTDLL__mbctokata		@189
+    _mbctolower			= _CRTDLL__mbctolower		@190
+    _mbctombb			= _CRTDLL__mbctombb		@191
+    _mbctoupper			= _CRTDLL__mbctoupper		@192
+;   _mbctype							@193
+    _mbsbtype			= _CRTDLL__mbsbtype		@194
+    _mbscat			= _CRTDLL__mbscat		@195
+    _mbschr			= _CRTDLL__mbschr		@196
+    _mbscmp			= _CRTDLL__mbscmp		@197
+    _mbscpy			= _CRTDLL__mbscpy		@198
+    _mbscspn			= _CRTDLL__mbscspn		@199
+
+    _mbsdec			= _CRTDLL__mbsdec		@200
+    _mbsdup			= _CRTDLL__mbsdup		@201
+    _mbsicmp			= _CRTDLL__mbsicmp		@202
     _mbsinc			= _CRTDLL__mbsinc		@203
     _mbslen			= _CRTDLL__mbslen		@204
+    _mbslwr			= _CRTDLL__mbslwr		@205
+    _mbsnbcat			= _CRTDLL__mbsnbcat		@206
+    _mbsnbcmp			= _CRTDLL__mbsnbcmp		@207
+    _mbsnbcnt			= _CRTDLL__mbsnbcnt		@208
+    _mbsnbcpy			= _CRTDLL__mbsnbcpy		@209
+    _mbsnbicmp			= _CRTDLL__mbsnbicmp		@210
+    _mbsnbset			= _CRTDLL__mbsnbset		@211
+    _mbsncat			= _CRTDLL__mbsncat		@212
+    _mbsnccnt			= _CRTDLL__mbsnccnt		@213
+    _mbsncmp			= _CRTDLL__mbsncmp		@214
+    _mbsncpy			= _CRTDLL__mbsncpy		@215
+    _mbsnextc			= _CRTDLL__mbsnextc		@216
+    _mbsnicmp			= _CRTDLL__mbsnicmp		@217
+    _mbsninc			= _CRTDLL__mbsninc		@218
+    _mbsnset			= _CRTDLL__mbsnset		@219
+    _mbspbrk			= _CRTDLL__mbspbrk		@220
+    _mbsrchr			= _CRTDLL__mbsrchr		@221
+    _mbsrev			= _CRTDLL__mbsrev		@222
+    _mbsset			= _CRTDLL__mbsset		@223
+    _mbsspn			= _CRTDLL__mbsspn		@224
+    _mbsspnp			= _CRTDLL__mbsspnp		@225
+    _mbsstr			= _CRTDLL__mbsstr		@226
+    _mbstok			= _CRTDLL__mbstok		@227
+;   _mbstrlen							@228
+    _mbsupr			= _CRTDLL__mbsupr		@229
+;   _memccpy							@230
     _memicmp			= NTDLL__memicmp		@231
     _mkdir			= _CRTDLL__mkdir		@232
+    _mktemp			= _CRTDLL__mktemp		@233
+    _msize			= _CRTDLL__msize		@234
+;   _nextafter							@235
+;   _onexit							@236
+    _open			= _CRTDLL__open			@237
+    _open_osfhandle		= _CRTDLL__open_osfhandle	@238
     _osmajor_dll		= CRTDLL_osmajor_dll		@239
     _osminor_dll		= CRTDLL_osminor_dll		@240
@@ -143,21 +347,85 @@
     _osver_dll			= CRTDLL_osver_dll		@242
     _osversion_dll		= CRTDLL_osversion_dll		@243
+    _pclose			= _CRTDLL__pclose		@244
     _pctype_dll			= _CRTDLL__pctype_dll		@245
+;   _pgmptr_dll							@246
+    _pipe			= _CRTDLL__pipe			@247
+    _popen			= _CRTDLL__popen		@248
+;   _purecall							@249
+;   _putch							@250
+;   _putenv							@251
+    _putw			= _CRTDLL__putw			@252
+;   _pwctype_dll						@253
     _read			= _CRTDLL__read			@254
+;   _rmdir							@255
+;   _rmtmp							@256
+    _rotl			= _CRTDLL__rotl			@257
+    _rotr			= _CRTDLL__rotr			@258
+;   _scalb							@259
+    _searchenv			= _CRTDLL__searchenv		@260
+;   _seterrormode						@261
+    _setjmp			= _CRTDLL__setjmp		@262
+;   _setmode							@263
+;   _setsystime							@264
+;   _sleep							@265
     _snprintf			= NTDLL__snprintf		@266
     _snwprintf			= NTDLL__snwprintf		@267
+;   _sopen							@268
+;   _spawnl							@269
+;   _spawnle							@270
+;   _spawnlp							@271
+;   _spawnlpe							@272
+;   _spawnv							@273
+;   _spawnve							@274
+;   _spawnvp							@275
+;   _spawnvpe							@276
     _splitpath			= NTDLL__splitpath		@277
+    _stat			= _CRTDLL__stat			@278
+;   _statusfp							@279
     _strcmpi			= NTDLL__strcmpi		@280
+    _strdate			= _CRTDLL__strdate		@281
+    _strdec			= _CRTDLL__strdec		@282
+    _strdup			= _CRTDLL__strdup		@283
+;   _strerror							@284
     _stricmp			= NTDLL__stricmp		@285
+    _stricoll			= _CRTDLL__stricoll		@286
+    _strinc			= _CRTDLL__strinc		@287
     _strlwr			= NTDLL__strlwr			@288
+    _strncnt			= _CRTDLL__strncnt		@289
+    _strnextc			= _CRTDLL__strnextc		@290
     _strnicmp			= NTDLL__strnicmp		@291
+    _strninc			= _CRTDLL__strninc		@292
+    _strnset			= _CRTDLL__strnset		@293
+    _strrev			= _CRTDLL__strrev		@294
+    _strset			= _CRTDLL__strset		@295
+    _strspnp			= _CRTDLL__strspnp		@296
+    _strtime			= _CRTDLL__strtime		@297
     _strupr			= NTDLL__strupr			@298
-
+;   _swab							@299
+
+;   _sys_errlist						@300
+;   _sys_nerr_dll						@301
+;   _tell							@302
+    _tempnam			= _CRTDLL__tempnam		@303
+;   _timezone_dll						@304
+    _tolower			= _CRTDLL__tolower		@305
+    _toupper			= _CRTDLL__toupper		@306
+;   _tzname							@307
+;   _tzset							@308
     _ultoa			= NTDLL__ultoa			@309
+;   _umask							@310
+;   _ungetch							@311
+;   _unlink							@312
+;   _unloaddll							@313
+    _utime			= _CRTDLL__utime		@314
     _vsnprintf			= NTDLL__vsnprintf		@315
+    _vsnwprintf			= _CRTDLL__vsnwprintf		@316
+    _wcsdup			= _CRTDLL__wcsdup		@317
     _wcsicmp			= NTDLL__wcsicmp		@318
+    _wcsicoll			= _CRTDLL__wcsicoll		@319
     _wcslwr			= NTDLL__wcslwr			@320
     _wcsnicmp			= NTDLL__wcsnicmp		@321
     _wcsnset			= _CRTDLL__wcsnset		@322
+    _wcsrev			= _CRTDLL__wcsrev		@323
     _wcsset			= _CRTDLL__wcsset		@324
     _wcsupr			= NTDLL__wcsupr			@325
@@ -165,7 +433,10 @@
     _winminor_dll 		= CRTDLL_winminor_dll		@327
     _winver_dll 		= CRTDLL_winver_dll		@328
+;   _write							@329
     _wtoi			= NTDLL__wtoi			@330
     _wtol			= NTDLL__wtol			@331
-
+;   _y0								@332
+;   _y1								@333
+;   _yn								@334
     abort			= _CRTDLL_abort			@335
     abs				= NTDLL_abs			@336
