summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-09-17 15:14:25 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-09-17 15:14:25 +0000
commite9ba8b36740f46ba1a7a68706cafda1df1d2ca74 (patch)
tree4c960b2d029de2a8453a674f4d30867578516970 /include
parent5afb5f63773bc329eb4549b5f9e83a4dac029cb2 (diff)
downloadllvm-e9ba8b36740f46ba1a7a68706cafda1df1d2ca74.tar.gz
llvm-e9ba8b36740f46ba1a7a68706cafda1df1d2ca74.tar.bz2
llvm-e9ba8b36740f46ba1a7a68706cafda1df1d2ca74.tar.xz
Added the ExecWait() function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8578 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/Support/SystemUtils.h8
-rw-r--r--include/llvm/Support/SystemUtils.h8
2 files changed, 16 insertions, 0 deletions
diff --git a/include/Support/SystemUtils.h b/include/Support/SystemUtils.h
index 4573e27ce0..7a4c6277dc 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 4573e27ce0..7a4c6277dc 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