msvcrt: popen stubs (take 2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[Sorry, I've left out the _pclose function]

ChangeLog
  Stub out the _[w]popen/_pclose() 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 05:18:36 -0000
@@ -400,11 +400,11 @@
 @ stub _outp #(long long)
 @ stub _outpd #(long long)
 @ stub _outpw #(long long)
-@ stub _pclose #(ptr)
+@ cdecl _pclose (ptr)
 @ 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 05:20:29 -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,33 @@
 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;
+}
+
+/*********************************************************************
+ *		_pclose (MSVCRT.@)
+ */
+int _pclose(MSVCRT_FILE* file)
+{
+  FIXME("(file=%p): stub\n", file);
+  return 0;
 }
 
 /*********************************************************************
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 05:18:00 -0000
@@ -429,11 +429,11 @@
 @ stub _outp #(long long)
 @ stub _outpd #(long long)
 @ stub _outpw #(long long)
-@ stub _pclose #(ptr)
+@ cdecl _pclose(ptr) msvcrt._pclose
 @ 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.



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux