msvcrt: stubs for chsize, dup, dup2
Dimitrie O. Paun
dpaun at rogers.com
Fri Jan 10 17:07:46 CST 2003
These are needed by the inline functions in the header.
ChangeLog
Create stubs for chsize, dup, and dup2.
Index: dlls/msvcrt/file.c
===================================================================
RCS file: /var/cvs/wine/dlls/msvcrt/file.c,v
retrieving revision 1.45
diff -u -r1.45 file.c
--- dlls/msvcrt/file.c 19 Dec 2002 04:21:30 -0000 1.45
+++ dlls/msvcrt/file.c 10 Jan 2003 23:04:38 -0000
@@ -349,6 +349,33 @@
}
/*********************************************************************
+ * _chsize (MSVCRT.@)
+ */
+int _chsize(int fd, long size)
+{
+ FIXME("(fd=%d, size=%ld): stub\n", fd, size);
+ return -1;
+}
+
+/*********************************************************************
+ * _dup (MSVCRT.@)
+ */
+int _dup(int od)
+{
+ FIXME("(od=%d): stub\n", od);
+ return -1;
+}
+
+/*********************************************************************
+ * _dup2 (MSVCRT.@)
+ */
+int _dup2(int od, int nd)
+{
+ FIXME("(od=%d, nd=%d): stub\n", od, nd);
+ return -1;
+}
+
+/*********************************************************************
* _unlink (MSVCRT.@)
*/
int _unlink(const char *path)
Index: dlls/msvcrt/msvcrt.spec
===================================================================
RCS file: /var/cvs/wine/dlls/msvcrt/msvcrt.spec,v
retrieving revision 1.58
diff -u -r1.58 msvcrt.spec
--- dlls/msvcrt/msvcrt.spec 2 Jan 2003 19:28:09 -0000 1.58
+++ dlls/msvcrt/msvcrt.spec 10 Jan 2003 22:53:26 -0000
@@ -179,7 +179,7 @@
@ cdecl _chgsign( double ) _chgsign
@ cdecl -i386 _chkesp() _chkesp
@ cdecl _chmod(str long) _chmod
-@ stub _chsize #(long long)
+@ cdecl _chsize (long long) _chsize
@ cdecl _clearfp() _clearfp
@ cdecl _close(long) _close
@ cdecl _commit(long) _commit
@@ -195,8 +195,8 @@
@ cdecl _cwait(ptr long long) _cwait
@ stub _daylight
@ stub _dstbias
-@ stub _dup #(long)
-@ stub _dup2 #(long long)
+@ cdecl _dup (long) _dup
+@ cdecl _dup2 (long long) _dup2
@ cdecl _ecvt( double long ptr ptr) ecvt
@ cdecl _endthread () _endthread
@ cdecl _endthreadex(long) _endthreadex
--
Dimi.
More information about the wine-patches
mailing list