From 00e5ccfa17787665dbf816b0fb0dbfb95cb812ba Mon Sep 17 00:00:00 2001 From: "Dimitrie O. Paun" Date: Wed, 20 Aug 2003 03:34:20 +0000 Subject: [PATCH] Stub out the _[w]popen/_pclose() functions. --- dlls/msvcrt/msvcrt.spec | 6 +++--- dlls/msvcrt/process.c | 28 ++++++++++++++++++++++++++++ dlls/msvcrtd/msvcrtd.spec | 6 +++--- 3 files changed, 34 insertions(+), 6 deletions(-) diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 4948745ad65..69b4c107548 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -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) diff --git a/dlls/msvcrt/process.c b/dlls/msvcrt/process.c index 0ed72a52ac9..e592b9ecf73 100644 --- a/dlls/msvcrt/process.c +++ b/dlls/msvcrt/process.c @@ -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" @@ -434,6 +435,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; +} + /********************************************************************* * system (MSVCRT.@) */ diff --git a/dlls/msvcrtd/msvcrtd.spec b/dlls/msvcrtd/msvcrtd.spec index 9b30f648156..124ad1b9d74 100644 --- a/dlls/msvcrtd/msvcrtd.spec +++ b/dlls/msvcrtd/msvcrtd.spec @@ -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