aboutsummaryrefslogtreecommitdiff
path: root/tools/llee/SysUtils.h
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-08-15 23:31:16 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-08-15 23:31:16 +0000
commit593ece00509fe5ced9f6a44732cab0e45d03cf63 (patch)
tree7a942643230618914c92436e107902f7c2319984 /tools/llee/SysUtils.h
parenta1ee42ac8e4e31f06476233f89b2993868c2183b (diff)
A lot of changes were suggested by Chris.
ExecveHandler.c: * Use "" instead of <> for LLVM include files * Use raw I/O, we don't need buffering * Set errno = 0 before using open() * strlen() doesn't count NULL terminator in its size * Use memcmp() instead of strcmp() * Return result of the real execve(), not 0 * Search for path to bytecode file if not absolute/relative path SysUtils.c: * Convert all comments to C-style * Stop using `bool', use `unsigned' instead SysUtils.h: * Stop using `bool', use `unsigned' instead * Updated comment to FindExecutable() README.txt: * Describe the goal of LLEE and an application git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7911 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llee/SysUtils.h')
-rw-r--r--tools/llee/SysUtils.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/tools/llee/SysUtils.h b/tools/llee/SysUtils.h
index 89b647970e..84e7f9d6b2 100644
--- a/tools/llee/SysUtils.h
+++ b/tools/llee/SysUtils.h
@@ -1,4 +1,4 @@
-/*===- sysutils.h - Utilities to do low-level system stuff -------*- C -*--===*\
+/*===- SysUtils.h - Utilities to do low-level system stuff -------*- C -*--===*\
* *
* This file contains functions used to do a variety of low-level, often *
* system-specific, tasks. *
@@ -8,20 +8,14 @@
#ifndef SYSUTILS_H
#define SYSUTILS_H
-typedef unsigned bool;
-enum { false = 0, true = 1 };
-
/*
* isExecutableFile - This function returns true if the filename specified
* exists and is executable.
*/
-bool isExecutableFile(const char *ExeFileName);
+unsigned isExecutableFile(const char *ExeFileName);
/*
- * FindExecutable - Find a named executable, giving the argv[0] of program
- * being executed. This allows us to find another LLVM tool if it is built into
- * the same directory, but that directory is neither the current directory, nor
- * in the PATH. If the executable cannot be found, return an empty string.
+ * FindExecutable - Find a named executable in the path.
*/
char *FindExecutable(const char *ExeName);