mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 07:22:55 +01:00
488440afc8
* 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 llvm-svn: 8751
38 lines
1.1 KiB
C
38 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
|
|
|
|
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.
|
|
*/
|
|
unsigned isExecutableFile(const char *ExeFileName);
|
|
|
|
/*
|
|
* FindExecutable - Find a named executable in the path.
|
|
*/
|
|
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
|