From e9ba8b36740f46ba1a7a68706cafda1df1d2ca74 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Wed, 17 Sep 2003 15:14:25 +0000 Subject: [PATCH] Added the ExecWait() function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8578 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/Support/SystemUtils.h | 8 ++++++++ include/llvm/Support/SystemUtils.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/include/Support/SystemUtils.h b/include/Support/SystemUtils.h index 4573e27ce02..7a4c6277dc5 100644 --- a/include/Support/SystemUtils.h +++ b/include/Support/SystemUtils.h @@ -34,4 +34,12 @@ int RunProgramWithTimeout(const std::string &ProgramPath, const char **Args, const std::string &StdOutFile = "", const std::string &StdErrFile = ""); +/// +/// Function: ExecWait() +/// +/// Description: +/// Execute a program with the given arguments and environment and +/// wait for it to terminate. +/// +int ExecWait (char ** argv, char ** envp); #endif diff --git a/include/llvm/Support/SystemUtils.h b/include/llvm/Support/SystemUtils.h index 4573e27ce02..7a4c6277dc5 100644 --- a/include/llvm/Support/SystemUtils.h +++ b/include/llvm/Support/SystemUtils.h @@ -34,4 +34,12 @@ int RunProgramWithTimeout(const std::string &ProgramPath, const char **Args, const std::string &StdOutFile = "", const std::string &StdErrFile = ""); +/// +/// Function: ExecWait() +/// +/// Description: +/// Execute a program with the given arguments and environment and +/// wait for it to terminate. +/// +int ExecWait (char ** argv, char ** envp); #endif