1 /*===- SysUtils.h - Utilities to do low-level system stuff -------*- C -*--===*\
3 * This file contains functions used to do a variety of low-level, often *
4 * system-specific, tasks. *
6 \*===----------------------------------------------------------------------===*/
14 * isExecutable - This function returns true if given struct stat describes the
15 * file as being executable.
17 unsigned isExecutable(const struct stat *buf);
20 * isExecutableFile - This function returns true if the filename specified
21 * exists and is executable.
23 unsigned isExecutableFile(const char *ExeFileName);
26 * FindExecutable - Find a named executable in the path.
28 char *FindExecutable(const char *ExeName);
31 * This method finds the real `execve' call in the C library and executes the
35 executeProgram(const char *filename, char *const argv[], char *const envp[]);