mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7760 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
1.1 KiB
C
29 lines
1.1 KiB
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
|
|
|
|
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);
|
|
|
|
/*
|
|
* 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.
|
|
*/
|
|
char *FindExecutable(const char *ExeName);
|
|
|
|
#endif
|