* Added an interface for how LLEE would communicate with the OS
* Implemented the interface in StorageProxy.c
* Removed the script `llee' as it is now created by the Makefile
* Makefile now compiles a shared object version of the library, but only if
using gcc-3.3, linking fails under gcc-3.2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8751 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/llee/SysUtils.h b/tools/llee/SysUtils.h
index 84e7f9d..2e498a8 100644
--- a/tools/llee/SysUtils.h
+++ b/tools/llee/SysUtils.h
@@ -8,6 +8,14 @@
#ifndef SYSUTILS_H
#define SYSUTILS_H
+struct stat;
+
+/*
+ * isExecutable - This function returns true if given struct stat describes the
+ * file as being executable.
+ */
+unsigned isExecutable(const struct stat *buf);
+
/*
* isExecutableFile - This function returns true if the filename specified
* exists and is executable.
@@ -19,4 +27,11 @@
*/
char *FindExecutable(const char *ExeName);
+/*
+ * This method finds the real `execve' call in the C library and executes the
+ * given program.
+ */
+int
+executeProgram(const char *filename, char *const argv[], char *const envp[]);
+
#endif