From 5bd64e22e414d80764bf42685129a0e7aa38a456 Mon Sep 17 00:00:00 2001 From: Boudewijn Dekker Date: Mon, 22 Mar 1999 18:09:39 +0000 Subject: [PATCH] Converted cwait.c and system.c to lower case. svn path=/trunk/; revision=328 --- reactos/lib/crtdll/process/Cwait.c | 20 -------------------- reactos/lib/crtdll/process/System.c | 16 ---------------- 2 files changed, 36 deletions(-) delete mode 100644 reactos/lib/crtdll/process/Cwait.c delete mode 100644 reactos/lib/crtdll/process/System.c diff --git a/reactos/lib/crtdll/process/Cwait.c b/reactos/lib/crtdll/process/Cwait.c deleted file mode 100644 index e7fdb2268a3..00000000000 --- a/reactos/lib/crtdll/process/Cwait.c +++ /dev/null @@ -1,20 +0,0 @@ -#include -#include - -int _cwait( int *termstat, int procHandle, int action ) -{ - DWORD RetVal; - RetVal = WaitForSingleObject((HANDLE)procHandle, INFINITE); - if (RetVal == WAIT_FAILED || RetVal == WAIT_ABANDONED) { - //errno = ECHILD; - return -1; - } - if ( RetVal == WAIT_OBJECT_0 ) { - GetExitCodeProcess((HANDLE)procHandle, termstat); - return procHandle; - } - - - return -1; - // WAIT_TIMEOUT -} diff --git a/reactos/lib/crtdll/process/System.c b/reactos/lib/crtdll/process/System.c deleted file mode 100644 index f8c9bada2fa..00000000000 --- a/reactos/lib/crtdll/process/System.c +++ /dev/null @@ -1,16 +0,0 @@ -#include -#include - -int system(const char *command) -{ - char CmdLine[MAX_PATH]; - char *comspec = getenv("COMSPEC"); - if ( comspec == NULL ) - comspec = "cmd.exe"; - strcpy(CmdLine,comspec); - strcat(CmdLine," /C "); - if ( !WinExec(CmdLine,SW_SHOWNORMAL) < 31 ) - return -1; - - return 0; -}