msvcrt: popen stubs

Dimitrie O. Paun dpaun at rogers.com
Tue Aug 19 00:09:31 CDT 2003


ChangeLog
  Stub out the _[w]popen() functions.

Index: dlls/msvcrt/msvcrt.spec
===================================================================
RCS file: /var/cvs/wine/dlls/msvcrt/msvcrt.spec,v
retrieving revision 1.78
diff -u -r1.78 msvcrt.spec
--- dlls/msvcrt/msvcrt.spec	19 Aug 2003 01:03:08 -0000	1.78
+++ dlls/msvcrt/msvcrt.spec	19 Aug 2003 02:56:21 -0000
@@ -404,7 +404,7 @@
 @ extern _pctype MSVCRT__pctype
 @ extern _pgmptr MSVCRT__pgmptr
 @ stub _pipe #(ptr long long)
-@ stub _popen #(str str)
+@ cdecl _popen (str str)
 @ cdecl _purecall()
 @ cdecl _putch(long)
 @ cdecl _putenv(str)
@@ -534,7 +534,7 @@
 @ varargs _wopen(wstr long)
 @ stub _wperror #(wstr)
 @ extern _wpgmptr MSVCRT__wpgmptr
-@ stub _wpopen #(wstr wstr)
+@ cdecl _wpopen (wstr wstr)
 @ cdecl _wputenv(wstr)
 @ cdecl _wremove(wstr)
 @ cdecl _wrename(wstr wstr)
Index: dlls/msvcrt/process.c
===================================================================
RCS file: /var/cvs/wine/dlls/msvcrt/process.c,v
retrieving revision 1.17
diff -u -r1.17 process.c
--- dlls/msvcrt/process.c	17 Mar 2003 00:05:44 -0000	1.17
+++ dlls/msvcrt/process.c	19 Aug 2003 04:32:24 -0000
@@ -32,6 +32,7 @@
 #include "msvcrt.h"
 #include "msvcrt/errno.h"
 
+#include "msvcrt/stdio.h"
 #include "msvcrt/process.h"
 #include "msvcrt/stdlib.h"
 #include "msvcrt/string.h"
@@ -432,6 +433,24 @@
 int _spawnvp(int flags, const char* name, const char* const* argv)
 {
   return _spawnvpe(flags, name, argv, NULL);
+}
+
+/*********************************************************************
+ *		_popen (MSVCRT.@)
+ */
+MSVCRT_FILE* _popen(const char* command, const char* mode)
+{
+  FIXME("(command=%s, mode=%s): stub\n", debugstr_a(command), debugstr_a(mode));
+  return NULL;
+}
+
+/*********************************************************************
+ *		_wpopen (MSVCRT.@)
+ */
+MSVCRT_FILE* _wpopen(const MSVCRT_wchar_t* command, const MSVCRT_wchar_t* mode)
+{
+  FIXME("(command=%s, mode=%s): stub\n", debugstr_w(command), debugstr_w(mode));
+  return NULL;
 }
 
 /*********************************************************************
Index: dlls/msvcrtd/msvcrtd.spec
===================================================================
RCS file: /var/cvs/wine/dlls/msvcrtd/msvcrtd.spec,v
retrieving revision 1.4
diff -u -r1.4 msvcrtd.spec
--- dlls/msvcrtd/msvcrtd.spec	19 Aug 2003 01:03:08 -0000	1.4
+++ dlls/msvcrtd/msvcrtd.spec	19 Aug 2003 02:56:22 -0000
@@ -433,7 +433,7 @@
 @ extern _pctype msvcrt._pctype
 @ extern _pgmptr msvcrt._pgmptr
 @ stub _pipe #(ptr long long)
-@ stub _popen #(str str)
+@ cdecl _popen(str str) msvcrt._popen
 @ cdecl _purecall() msvcrt._purecall
 @ cdecl _putch(long) msvcrt._putch
 @ cdecl _putenv(str) msvcrt._putenv
@@ -564,7 +564,7 @@
 @ varargs _wopen(wstr long) msvcrt._wopen
 @ stub _wperror #(wstr)
 @ stub _wpgmptr # extern
-@ stub _wpopen #(wstr wstr)
+@ cdecl _wpopen(wstr wstr) msvcrt._wpopen
 @ cdecl _wputenv(wstr) msvcrt._wputenv
 @ cdecl _wremove(wstr) msvcrt._wremove
 @ cdecl _wrename(wstr wstr) msvcrt._wrename


-- 
Dimi.




More information about the wine-patches mailing list