aboutsummaryrefslogtreecommitdiff
path: root/tools/llee/SysUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llee/SysUtils.h')
-rw-r--r--tools/llee/SysUtils.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/llee/SysUtils.h b/tools/llee/SysUtils.h
index 84e7f9d6b2..2e498a80e8 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 @@ unsigned isExecutableFile(const char *ExeFileName);
*/
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