mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Converted cwait.c and system.c to lower case.
svn path=/trunk/; revision=328
This commit is contained in:
parent
0dc103b08e
commit
5bd64e22e4
2 changed files with 0 additions and 36 deletions
|
@ -1,20 +0,0 @@
|
|||
#include <process.h>
|
||||
#include <windows.h>
|
||||
|
||||
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
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
#include <process.h>
|
||||
#include <windows.h>
|
||||
|
||||
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;
|
||||
}
|
Loading…
Reference in a new issue