mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 15:32:52 +01:00
6ad21447f8
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 llvm-svn: 7911
23 lines
802 B
C
23 lines
802 B
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. *
|
|
* *
|
|
\*===----------------------------------------------------------------------===*/
|
|
|
|
#ifndef SYSUTILS_H
|
|
#define SYSUTILS_H
|
|
|
|
/*
|
|
* isExecutableFile - This function returns true if the filename specified
|
|
* exists and is executable.
|
|
*/
|
|
unsigned isExecutableFile(const char *ExeFileName);
|
|
|
|
/*
|
|
* FindExecutable - Find a named executable in the path.
|
|
*/
|
|
char *FindExecutable(const char *ExeName);
|
|
|
|
#endif
|