mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-14 17:36:29 +00:00
Fix spelling, trim empty space, tighten up function header comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13940 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f7e92b1dcf
commit
d6af686d28
@ -191,13 +191,8 @@ int llvm::RunProgramWithTimeout(const std::string &ProgramPath,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
// ExecWait - executes a program with the specified arguments and environment.
|
||||||
// Function: ExecWait ()
|
// It then waits for the progarm to termiante and then returns to the caller.
|
||||||
//
|
|
||||||
// Description:
|
|
||||||
// This function executes a program with the specified arguments and
|
|
||||||
// environment. It then waits for the progarm to termiante and then returns
|
|
||||||
// to the caller.
|
|
||||||
//
|
//
|
||||||
// Inputs:
|
// Inputs:
|
||||||
// argv - The arguments to the program as an array of C strings. The first
|
// argv - The arguments to the program as an array of C strings. The first
|
||||||
@ -230,10 +225,8 @@ int llvm::RunProgramWithTimeout(const std::string &ProgramPath,
|
|||||||
int llvm::ExecWait(const char * const old_argv[],
|
int llvm::ExecWait(const char * const old_argv[],
|
||||||
const char * const old_envp[]) {
|
const char * const old_envp[]) {
|
||||||
#ifdef HAVE_SYS_WAIT_H
|
#ifdef HAVE_SYS_WAIT_H
|
||||||
//
|
|
||||||
// Create local versions of the parameters that can be passed into execve()
|
// Create local versions of the parameters that can be passed into execve()
|
||||||
// without creating const problems.
|
// without creating const problems.
|
||||||
//
|
|
||||||
char ** const argv = (char ** const) old_argv;
|
char ** const argv = (char ** const) old_argv;
|
||||||
char ** const envp = (char ** const) old_envp;
|
char ** const envp = (char ** const) old_envp;
|
||||||
|
|
||||||
@ -256,7 +249,7 @@ int llvm::ExecWait(const char * const old_argv[],
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parent process: Wait for the child process to termiante.
|
// Parent process: Wait for the child process to terminate.
|
||||||
int status;
|
int status;
|
||||||
if ((wait (&status)) == -1)
|
if ((wait (&status)) == -1)
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user